sh$ perl -MCPAN -e 'shell'
cpan> get DBI
cpan> get DBD::mysql
cpan> exit
sh$ sudo perl -MCPAN -e 'install DBI'
sh$ cd ~/.cpan/build/DBD-mysql-[hit TAB]
sh$ cat README.OSX
After reading the solution at https://discussions.apple.com/thread/3932531?start=0&tstart=0&fb_source=message
sh$ sudo install_name_tool -id /usr/local/mysql-5.6.11-osx10.7-x86_64/lib/libmysqlclient.18.dylib /usr/local/mysql-5.6.11-osx10.7-x86_64/lib/libmysqlclient.18.dylib
sh$ perl Makefile.PL --mysql_config=/usr/local/mysql/bin/mysql_config --testuser=root
sh$ make
sh$ make test
sh$ sudo make install
Michal, thank you. You helped me.
ReplyDeleteThanks! You saved me.
ReplyDeleteThis my friend has helped me so much. I was using the Net::Mysql, but i found it slow, this actually made things much easier. Cheers mate.
ReplyDeleteAfter three days doing google, I found your blog. A big thanks to you.
ReplyDeletethanks, that was very useful as it has been a while that i did not install perl modules and frankly never on a mac .. this surely saved me some precious time. gracias.
ReplyDeleteThank you so much for posting this! I wish I'd found it about 8 hours ago . . .
ReplyDelete