>  Which modules i have to install in order to connect
> perl with mysql ?, in what order ?, My perl
> installation is on solaris 9.  I already have mysql
> installed.  Thanks for the help.

Here's what I wrote up while installing under OS X, should be pretty
similar:

> To install perl support for MySQL:
> 
> - Make sure you have the OS X developer tools installed
> 
> - Go to <http://www.cpan.org/modules/by-module/DBI/> and download the latest
> released DBI (1.38 as of this writing).  Read the associated readme for
> installation instructions.
> 
> - Then go to <http://www.cpan.org/modules/by-module/DBD/> and download a mysql
> version of the DBD that looks good (mysql-2.1028 as of this writing).  Try the
> instructions, but if they don't work, you may need to fix the Makefile (likely
> necessary for OS X 10.3).  To do this:
> 
> % perl Makefile.PL --testdb=test --testuser=testuser --testpassword=testuser
> --testhost=localhost --cflags=-I/usr/local/mysql/include/
> --libs="-L/usr/local/mysql/lib -lmysqlclient -lz"
> % perl -pi -e's/MACOSX/env MACOSX/' Makefile
> (or replace -r MACOSX 'env MACOSX' Makefile)
> % make
> % make test
> % sudo make install
> 
> Now remove both source directories and you're all set!

- B


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to