Re: Installing DBD::mysql on Mac OS 10.6.3 Snow Leopard
[email protected] (Michael Ludwig)
| Newsgroups | perl.dbi.users |
|---|---|
| Message-ID | <[email protected]> |
Am 06.04.2010 um 17:14 schrieb Bobby: > Hello, > I am very new to the DBI module. I am trying to connect to a > mysql installation on a server over the internet, however I cannot get > the DBD::mysql driver installed properly. You need a libmysqlclient on your local machine. One way to get one is to install the server. Are you using Darwin Ports [1]? Might be easier. That would allow you to just do: port install p5-dbd-mysql [1] http://darwinports.com/ > When I try to install via > CPAN with the command 'sudo -H cpan -i DBD::mysql' I get the error: > '/usr/bin/perl Makefile.PL' returned status 512, won't make This seems to indicate that you've encountered errors on a previous run, and the logic decides it doesn't want to run against the wall a second time. > Can't exec "mysql_config": No such file or directory at Makefile.PL > line 464. It looks like you either don't have an installation of MySQL, or it is not in your PATH. > I have MAMP installed and running. Also I don't care about connecting > to localhost, is there a way to run the drop table tests ect on a > server over the internet? Thanks. So MAMP may be installed and running, but your Perl doesn't seem to know about it. You should get connections to localhost to work, else why have you installed MAMP in the first place? -- Michael.Ludwig (#) XING.com