MySQL Forums
Forum List  »  Perl

Re: DBD::mysql -- Perl Module wont install
Posted by: Alvin wong
Date: May 17, 2005 01:03PM

Hello,

After some struggle, I have successfully compiled and installed DBD::mysql.
My environment includes Solaris 9, MySQL 4.1.11, Perl 5.8.0, DBI-1.48.

Here are my steps:
=============
/tmp/DBD-mysql-2.9007> setenv LANG C
/tmp/DBD-mysql-2.9007> perl Makefile.PL \
--libs="-L/app/mysql/lib/mysql -lmysqlclient -lz" \
--cflags=-I/app/mysql/include/mysql \
--mysql_config=/app/mysql/bin/mysql_config

I will use the following settings for compiling and testing:

cflags (Users choice) = -I/app/mysql/include/mysql
libs (Users choice) = -L/app/mysql/lib/mysql -lmysqlclient -lz
mysql_config (Users choice) = /app/mysql/bin/mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
testuser (default ) =

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Checking if your kit is complete...
Looks good
Using DBI 1.48 (for perl 5.008 on sun4-solaris) installed in /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI/
Writing Makefile for DBD::mysql

/tmp/DBD-mysql-2.9007> make
/tmp/DBD-mysql-2.9007> make install

Hope it helps,

Alvin

Options: ReplyQuote


Subject
Written By
Posted
Re: DBD::mysql -- Perl Module wont install
May 17, 2005 01:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.