Installing DBI and DBD::mysql in 10.4 Tiger, with MySQL 5.0

After some discussion here http://discussions.apple.com/thread.jspa?threadID=546982&tstart=0
I wanted to document what was required to get Bundle::DBI and DBD::mysql installed.
I started off with the helpful info found on the following two pages, but I had to do more to get it working:
http://www.truerwords.net/articles/osx/installdbdmysql.html
http://www.gyford.com/phil/writing/2004/06/07/installingdbia.php
Note: I am working with mysql-standard-5.0.15-osx10.4-powerpc,
downloaded and configured according to the MySQL site instructions.
If you are using an earlier version of MySQL, then you will need to adjust accordingly. The articles I link to above, may work for you verbatim.
1. Download DBI 1.51 from CPAN:
http://search.cpan.org/~hoymich/DBI-1.45-5.8.4/
2. Unpack the file, eg: tar -xzvf DBI-1.51.tar.gz
3. cd into the directory
4. Type perl Makefile.PL
5. Type make && make test
6. sudo make install (NB: See below !)
7. IMPORTANT: to get DBD to install, you may need to specify the location of your mysql_config file:
perl Makefile.PL --testdb=test --testuser=nameused --testpassword=actualpasswdused --testhost=localhost --mysqlconfig=/usr/local/mysql/bin/mysqlconfig
If something goes wrong, backup by typing:
make clean
Another note: I granted full priveleges for the "test" user on the "test" database, which is accepting local connections only and will be removed after everything is configured.
# now for DBD
8. Download DBD::mysql from CPAN http://search.cpan.org/~capttofu/DBD-mysql-3.0006
9. unpack the archive & cd into it
10. perl Makefile.PL --testdb=test --testuser=nameused --testpassword=actualpwdused --testhost=localhost
11. make && make test
12. sudo make install
That's what it took, hopefully this will help others who need it, and not offend those who know more about it

Hi David!
I'm trying to help my incredibly frustrated boyfriend, who's trying to upgrade to Tiger on his 12" PB (1.3 MHz single processor).
He does a lot of web design and development, so he formatted his drive as HFS+, case-sensitive, journaled, and has installed his Adobe apps on a dmg, which works great.
BUT (and he says this is always a problem) installing DBD::mySQL is proving near-impossible! His install is failing 98% of the tests run during maketest. He thinks the problem may actually be occurring when he runs Makefile. Here's the error message he's getting, even after reading your posts:
During Makefile.PL:
Can't exec "mysql_config": No such file or directory at Makefile.PL line 450.
Do you have any idea of a direction to point him in? He's so frustrated he can't even post to the forum - language not suitable for family viewing at this time.
Thanks!
Natalie
Dual 867MHz G4 MDD   Mac OS X (10.3.6)  

Similar Messages

  • Get sql*net to use perl module (DBI and DBD::Oracle)

    Hi,
    I'm doing a perl script which tests oracle database availability
    Now to install it on a Unix computer i need some Oracle files to use the DBI and DBD::Oracle module
    I saw in differents forums that i need to install SQL*NET to have those files but i know few things about Oracle products and then i don't know which package i have to download to have it.
    If someone have the answer please mail me !!([email protected])
    Thanks a lot
    Nicolas Minant

    Ok, so i got it working as below. putting the details steps for someone to refer (or may myself in future if i forget)
    - Install Perl DBI module
    - install below 3 rpm for oracle instant client from (http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html)
    oracle-instantclient11.2-basic-11.2.0.3.0-1
    oracle-instantclient11.2-devel-11.2.0.3.0-1
    oracle-instantclient11.2-sqlplus-11.2.0.3.0-1
    I am using 64 bit linux box, so choose your RPM accordingly.
    - set below variables:
    LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib
    ORACLE_HOME=/usr/lib/oracle/11.2/client64
    also add ORACLE_HOME to your PATH variable
    - download DBD::Oracle ver 1.44 from
    - untar the module and run below commands in given sequence:
    perl Makefile.PL
    make
    make install
    DONE !!!
    Issues I had faced were due to the wrong LD_LIBRARY_PATH. i had set it to "/usr/lib/oracle/11.2/client64" whereas the correct value is "/usr/lib/oracle/11.2/client64/lib"
    certainly, this was a great learning for a newbie like me. i have spent 8 years as Linux sysadmin and have done a lot of perlscripting bt never had to deal with oracle stuff ever. hence this was a learning for me.
    Thanks everyone for your responses. you guys pushed me to right direction. thanks for the Great HELP.

  • Perl DBI and DBD::Oracle

    Has anyone had any exerience with using Perl, DBI and DBD::Oracle to access Oracle databases on NT? I'll be starting a project that requires this kind of configuration and I was wondering if anyone has pointers.
    TIA!

    try cpan.org

  • HT4623 i have installed ios7 and when 'i agree to terms' etc, with sub menu....nothing happens. please tell me if i have missed something

    i have installed ios7 and when 'i agree to terms' etc, with sub menu....nothing happens. please tell me if i have missed something

    By the way, the safari setting is: private browsing off and accept cookies from visited. Much help is appreciated!

  • HT5304 Hi Guys, I'm running snow leopard 10.6.3  recently had update which left me with a DMSL launch problem. Rei installed software and now can't connect to Internet  with cable or wifi ! can see network and router,. Help

    Hi Guys, I'm running snow leopard 10.6.3  recently had update which left me with a DMSL launch problem. Re installed software and now can't connect to Internet  with cable or wifi ! can see network and router. Have tried many things and now pulling my hair out !  

    recently had update
    Care to share which update?
    Have tried many things
    Care to share?
    Please detail ALL you have done so far in the way of troubleshooting?   Need this info to avoid the been there done that scenarios.

  • I recently bought a new laptop, installed iTunes and imported my library during a sync with my iPhone. Now I've noticed that any tracks that were ripped into my library from a CD won't play on my iPhone. They're visible but with a red circle next to them.

    I recently bought a new laptop, installed iTunes and imported my library during a sync with my iPhone. Now I've noticed that any tracks that were ripped into my library from a CD won't play on my iPhone. They're visible but with a red circle next to them.

    Hi, BartleyBauer. 
    If the media that you are attempting to sync plays in iTunes, try removing the preference to sync music as this remove the media from the device.  Once this is done, try syncing the media again. 
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    http://support.apple.com/kb/ph12313
    Cheers,
    Jason H. 

  • Perl DBI and DBD

    I know there has been a thread for this but there does not to be an answer to this.
    I have a new mac mini with Snow Leopard which I installed MYSQL 5 64 bit. I am trying to run perl scripts that connect to MYSQL but Perl throws an error regarding the DBD module. I have tried using CPAN to update the modules which seems to be successfull in regards updating but still I get the DBD module error. I have tried installing the modules manually but still I get the same error. Also I tried 32 bit MySQL but still it does not work.
    Has anyone solved this problem at all? I have rolled back my Mac using timemachine to the stock build so I am ready to try this all again!
    Regards
    Chris.
    Message was edited by: BigChrisUK01

    BigChrisUK01 wrote:
    to be honest I am not totally sure what I am doing.
    Unfortunately, you are going to have to find out. You are trying to get 4 very complex systems (MacOS X, MySQL, Perl, and CPAN) all working together. Plus, you have chosen to do so on a brand-new OS.
    If you want people to be able to help you can't just say things like "an error", "does not work", or "a web site". You must be explicit. What error are you getting? Use copy and paste. If you try it a different way, what error is that? What web site were you looking at? Maybe it was from 2002.
    Your first step is to find out just what is installed on your system. Use the command "file" to find out what architecture your mysqlclient libraries are. Also find out about your DBD files.

  • I recently installed Mavericks and now I can't video chat with sister who has ichat, is there a fix?

    Is ichat on an older machine compatible with Mavericks Messages video chatting?  Is there something I can do to video chat with someone who has ichat on an older machine?  They aren't going to upgrade so am I stuck with Skype?  We really liked ichat.

    Yes, I can video chat with someone on Skype.  I only ichat with my younger sister and she doesn't ichat with anyone else.  I don't have anyone else to try out the video chatting with in Messages.  She's not tech savy and doesn't feel comfortable doing anything to her program.  A friend may try to get her up and running on Skype, we just liked chatting with the Mac programs.

  • Can't install Perl DBI or DBD::mysql after Mountain Lion upgrade

    I recently upgraded to Mountain Lion and found that my Perl DBI scripts stopped working, with the error message "Can't locate DBD/mysql.pm in @INC".
    The last time this happened, after upgrading to Lion, the solution was to install the new version of Xcode. Then I was able to use the Perl CPAN module to install DBI and DBD::mysql. (MySQL is already installed and running with no problem on the Mountain Lion machine.)
    Now I have installed Xcode 4.5.1, and tried
    mrb% sudo perl -MCPAN -e shell
    [then CPAN configures itself]
    cpan[1]> install DBI
    and it fails with this final message:
    /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:583:11: fatal error:
          'sys/types.h' file not found
    #       include <sys/types.h>
                    ^
    1 error generated.
    make: *** [Perl.o] Error 1
      TIMB/DBI-1.622.tar.gz
      /Developer/usr/bin/make -- NOT OK
    'YAML' not installed, will not store persistent state
    Running make test
      Can't test without successful make
    Running make install
      Make had returned bad status, install seems impossible
    Failed during this command:
    TIMB/DBI-1.622.tar.gz                        : make NO
    Can anybody help?

    Here is a link to a resolution in Lion. It may also solve your Mountain Lion Perl DBD issue as well.
    If you run the command below before executing your Perl script the library is found and all is well!
    export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"
    Put this in your .bashrc or .bash_profile.
    On Apple StackExchange, Matthew Weiss had another approach.
    I found on another website the following command
    $ sudo perl -MCPAN -e 'CPAN::Shell->notest(install => CPAN::Shell->r)'
    This updated all my perl modules and all is back to normal. Not sure why or what, but don't care that it is working now.

  • I am using a new imac with osx lion 10.7.5 and have bought a copy of Apple iLife 11 on dvd a so that I can install iWeb and idvd, when I click on install iLife I get a message saying "iLife.kpg was signed with an invalid certificate

    I am using a new imac with osx lion 10.7.5 and have just bought Apple iLife 11 on dvd so that I can install iWeb and iDVD, as macs no longer ship with these apps. When I click on install iLife I get a message saying "iLife.kpg was signed with an invalid certificate.
    Next problem is that when moving through the installer and get to custom install, as I only want to install iDVD and iWeb, I am presented with the option to install iDVD, Sounds & Jingles and iWeb, but not sure what is going on with the other 3 options iLife Support etc, they seem to be greyed out but still look like they may install over the top of the newer versions already on my imac. Is it ok for me to just go ahead and hit install? Or do I have a problem?

    Yep, just install iDVD (plus sounds and jingles) and iWeb if you want it (but note that iWeb apparently won't work if you upgrade to Mountain Lion).
    Then use Software Update to get any late iDVD updates.

  • How to Install OBIEE and BIP on a machine with Windows XP ?

    Hi,
    I am very new to OBIEE and want to learn it by myself.
    Can I install OBIEE and BI Publisher on my home PC with Windows XP ? Can I install client and server on the same PC?
    If no, what are the other options ?
    Please help!!
    Thanks!
    Yogini

    Thanks for the link, but I am referring the same to install OBIEE.
    The pre-requisites section says :
    Client operating systems:
    - Microsoft Windows 2000 Professional with Service Pack 3 or later
    - Microsoft Windows 2003 Professional with Service Pack 1 or later (32-bit only)
    - Microsoft Windows XP Professional with Service Pack 1 or later
    Server operating systems:
    - For Oracle BI Server: Microsoft Windows 2000 Service Pack 4/2003 Server
    Thats why I wonder if I can install client and server on the same machine with Windows XP ?
    Please do let me know.
    Regards,
    Yogini

  • My W500 can not install Rescue and Recovery

    Hi guys,
    Has anyone encountered the same problem as I did when I tried to install Rescue and Recovery?
    The process always stopped with error code 6.
    I am using Win7 X64.
    W500 T9900 8GB + TBs imageries

    I was also having the exact same problem on my W500, but I did not have to download the full multilingual package to get it to work.  First I reinstalled windows, and used the "clean all" command before the install. 
    At the first setup screen during the Windows 7 install hold Shift+F10 - this will bring up the command prompt.  Type in "diskpart" then type "list disk"  then type "select disk 0" This number may be different depending on how many drives your machine has in.  It will then tell you "disk 0 is now the selected disk"  After this type "clean all".  You will see just a flashing cursor in the command window to tell you it is running.  This will take some time, and   WARNING:it will fully erase -write zeroes- to the entire drive.  Your data will be unrecoverable, and ALL PARTITIONS will be deleted.  Once it's finised it will give you a message saying Diskpart succeded in cleaing the disk.  Now the important part, type in "select disk 0" once again, then type "create partition primary"  This will prevent Windows from automaticaly created the 100MB partition on the drive durring the install.  After that type 'exit' and 'exit' again, and you can continue the setup as normal. 
    Once Windows is up you need to install Microsoft Visual C++ 2008  from here: http://www.microsoft.com/downloads/en/details.aspx​?FamilyID=ba9257ca-337f-4b40-8c14-157cfdffee4e&dis​...
    Once that is installed, restart and it should let you install Rescue and Recovery.
    This worked perfectly for me, even though it is a little more complicated.

  • TS1368 I have tried uninstalling and re-installing and my pc still will not connect with the iTunes Store. I have tried just about every suggestion on the web to no avail, please help.

    I have tried uninstalling and re-installing iTunes and my pc still will not connect with the iTunes Store. I have tried just about every suggestion on the web to no avail, please help.

    When I click on the store it just never opens, I do not receive any message. I try to "refresh the page" and nothing. While having the store selected I go to "help" and check for updates and i get a message; "The iTunes updatte server could not be contacted" and it prompts me to check my internet connection which is fine. None of the items under the "Store" respond with anything.
    I ran a iTunes Diagnostics/ Under "Which Tests do you want to run" I check only "Network Connections" and the results that I receive is...
    Network connectivity:
         Network interfaces, verified
    iTunes Store connectivity:
         Internet connection, verified
         Secure link to iTunes Store, FAILED
    Does this help?

  • Comparison of Installing HCM and Campus Solution 9.0 with Linux and Windows

    Folks,
    Hello. I am installing HCM and Campus Solution 9.0 Revision 5 with PeopleTools 8.53.
    PeopleSoft Internet Architecture is WebLogic11g/Tuxedo11g/OracleDatabase11g with OS Oracle Linux 5.10.
    In the process of seting up its database instance named "HRCS90" using /opt/PT8.53/setup/PsMpDbInstall/setup.sh, there is a step as below:
    Database Create Type:
    1) Demo
    2) System
    3) PeopleTools System
    Either select Demo or System, the next step "select PeopleSoft Applications" has only one item:
    1) PeopleSoft HRCS Demo Database - US English.
    When set up "HRCS90" with SQL Server 2005 and Windows Server 2003, there is one more item: PeopleSoft HRCS Database - US English.
    I don't need Demo database. I need HRCS database only because Demo database occupies much more disk space.
    The document "PeopleSoft Human Capital Management and Campus Solutions 9.0 Revision 5 Installation Guide" does not state the detailed process to set up HRCS database instance.
    I cannot find other PeopleSoft documents regarding set up HRCS database instance.
    My questions are:
    First, how much more disk space does "HRCS Demo database" occupy than "HRCS database" ? Is there "HRCS database" for Linux and Oracle Database ?
    Second, can you find PeopleSoft document regarding the process of seting up HRCS 9.0  database instance with Linux and Oracle Database ?
    Thanks.

    It could come from how you installed the software itself (options checked). Have a look to that thread, it could help.
    Nicolas.

  • CHKDSK fails on fresh install of Windows 7 x64 on mid-2009 MBP with SSD

    There was an earlier post about this that has been archived prematurely that I will reproduce below. The main issue is a flaw in the Windows 7 x64 CHKDSK of the SSD drive in the mid-2009 MBP= 5,2. With fresh OSX installs, bootcamp 3.1, Windows 7 x64 all updates, the CHKDSK operation checks files at about 1 per second in stage 4 of 5, verifying file data.
    Moderators: please leave this open until it is actually resolved.
    Earlier posts:
    Panajev
    Posts: 4
    From: ITALY
    Registered: Oct 14, 2009
    Windows 7 x64, MacBook Pro, frequent CHKDSK after HDD firmware update
    Posted: Nov 2, 2009 6:45 AM
    Hello, I have been having filesystem problems on my Windows 7 partition since the HDD related firmware update (the latest Performance update) was released and installed onto this mid 2009 MacBook Pro.
    The HDD is a 500 GB 7200 RPM model, but it never gave me any troubles under OS X before the "fix" and I know other users had intermittent problems with the HDD on their MacBook Pro's related to the HDD making noises and pausing.
    The fix was released, I installed it and I started seeing my first problem in Windows 7 x64 a few days after... I cleanly shut the OS down, but when I booted it back it asked me to perform a coherency check to the Filesystem... I thought that the problem was related to the fact that I was using the RC1 build of Windows 7... although that problem never manifested itself in the weeks before the Performance Update (HDD firmware fix) was installed and Windows 7 x64 RC1 had been on there and used frequently.
    I recently purchased Windows 7 retail a few days ago and after a bit of trouble-free operation I started having problems again... always shutting the PC down carefully and I was asked to run the CHKDSK utility at boot twice already.
    What to do?
    Message was edited by: Panajev
    MacBook Pro (2009) Mac OS X (10.6.1) Windows 7 x64, Bootcamp 3.0, recent HDD update
    nicegom
    Posts: 6
    Registered: Nov 12, 2009
    Re: Windows 7 x64, MacBook Pro, frequent CHKDSK after HDD firmware update
    Posted: Nov 12, 2009 1:40 AM in response to: Panajev
    Hi there,
    I have a different experience. I installed Windows 7 before the "performance update 1.0" came out. I actually experienced the chkdsk launch problem with Windows 7. I had done repartitioning and clean-install several times but cannot solve the problem. So I tried to install XP and Vista on my MBA (Mid 2009 with SSD) and found that these two OS doesn't introduce such problem.
    To be honest, I'm not sure which caused such problem, Windows 7, a bootcamp driver, or EFI. But I'm sure that CHKDSK in Windows 7 has an obvious bug that needs to be patched (memory leak and maybe this problem as well). So now I'm using Windows Vista SP2. And I'm happy with Vista SP2 (seems to become faster and stable now).
    Cheer,
    Message was edited by: nicegom
    Macbook Air Windows Vista MBA of Mid 2009 with SSD

    Windows 7 x64 all updates
    Just doublechecking. Does that include the recent chkdsk hotfixes?
    [The Chkdsk.exe program does not start correctly on a Windows 7-based computer|http://support.microsoft.com/kb/975778]

Maybe you are looking for

  • How do I get my HP Officejet Pro 8500 won't print from a program called "The Print Shop 12"?

    I can not get my printer to print from this one program I have called "The Print Shop 12." I don't get an error message, it acts like it want to print but then nothing.

  • Adobe Acrobat XI Pro

    Hallo Ich besitze seit 1,5 Jahren das Programm Adobe Acrobat XI Pro. Das Programm lief bis jetzt super. Nach einen Defekt am PC, musste ich alle Programme wieder neu aufspielen. Danach funktionierte die Software nicht mehr Richtung, und der Produkt K

  • TV green in HDMI 1080p 60hz I mean all green... Ok in 1080i 46XV640UZ

    46XV640UZ All in green can't run and is flashing when in HDMI 1080p 60hz. I just bought a computer to plug to it and figure out it can't run 1080p... any idea of the problem? Attachments: IMG_20130220_215701.jpg ‏101 KB

  • Importing and saving

    When importing DV from my camcorder how do I get it to import straight to my external Hard Drive. Becuase I would like to do video editing and movie making without using ANY space on my internal hard drive. EVERYTHING on the external Hard Drive. And

  • Posting Area 1090/1091

    Hello Experts, I had been trying to understand the functionality of posting area 1090/1091 but i am really confused. Can you guys kindly put some light on this process and how does it work by giving an example I am trying to reverse an invoice(EA13)