in reply to Re: DBI Installation Mac
in thread DBI Installation Mac

Yes, I have installed the module. The only issue I have is how to get the mysql_config file into my execution path... This is where I am at now: http://search.cpan.org/~capttofu/DBD-mysql-4.027/lib/DBD/mysql/INSTALL.pod#Mac_OS_X

Replies are listed 'Best First'.
Re^3: DBI Installation Mac
by Anonymous Monk on Mar 31, 2014 at 16:04 UTC
Re^3: DBI Installation Mac
by frozenwithjoy (Priest) on Mar 31, 2014 at 16:26 UTC
    Hi. What exactly do you mean when you say "I have installed the module"? Which module are you referring to? Can you confirm that MySQL is installed on your machine by typing mysql in Terminal? Thanks.

      I followed these steps listed on this website: http://www.quicomm.com/apm_dbddbi.htm

      At step 3 of the tutorial listed on the site ("Install the Perl MySQL DBD module:"), I get the mysql_config error. But, I tried typing mysql into the terminal, and a 'command not found' is printed.

        Cool. This probably makes things a lot easier. The reason that config file is not found is that it is part of MySQL, which you don't have installed. Goto http://brew.sh, install Homebrew, then use Homebrew to install MySQL with this command: brew install mysql

      For some reason, I cannot reply to your message below...there is no reply button. I was going to try Homebrew, as you suggested, but I have gone too far to turn back lol.

      However, I managed to get the mysql_config file working...I followed this exactly using Mysql binary from Oracle (mysql-5.6.17-osx10.7-x86): http://search.cpan.org/dist/DBD-mysql/lib/DBD/mysql/INSTALL.pod#Mac_OS_X

      Now, I get this error when I go to run my script:

      dyld: lazy symbol binding failed: Symbol not found: _mysql_init Referenced from: /Library/Perl/5.12/darwin-thread-multi-2level/auto/ +DBD/mysql/mysql.bundle Expected in: flat namespace dyld: Symbol not found: _mysql_init Referenced from: /Library/Perl/5.12/darwin-thread-multi-2level/auto/ +DBD/mysql/mysql.bundle Expected in: flat namespace Trace/BPT trap: 5

      Google tells me its a 32-bit 64-bit issue between perl and DBI. But, both are 64 bit (computer is intel core 2 duo 64 bit-->see http://support.apple.com/kb/ht3696 and, well, oracle says their binary is 64-bit)

        First, can you confirm for me by typing mysql in terminal to verify that whatever you installed actually installed MySQL?

        Second, you are running OS X 10.8.4, but whatever you installed is for OS X 10.7. I really think you should use Homebrew.