| [reply] |
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. | [reply] [d/l] |
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.
| [reply] |
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
| [reply] [d/l] |
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)
| [reply] [d/l] |
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.
| [reply] [d/l] |