Problem installing DBD::mysql

Problem installing DBD::mysql

am 31.08.2003 20:15:00 von Pierre-Luc Soucy

Hi,

I tried to install DBD::mysql this morning, and encountered some
problems. First of all, the install couldn't find mysql.h, so I put a
copy in /usr/local/include/mysql (cp -R /usr/local/mysql/include/mysql
/usr/local/include/mysql). That seemed to make it happy, but it failed
later in the compilation process.

The MySQL version is 4.1-alpha; PERL is 5.80 on Debian (kernel 2.4.21).

The CPAN installation output is below.

Do you have any idea on what may be wrong and what needs to be done to
correct this?

Thanks,

Pierre-Luc Soucy

===================
cpan> clean DBD::mysql
Running clean for module DBD::mysql
Running make clean
make clean already called once

cpan> install DBD::mysql
Running install for module DBD::mysql
Running make for R/RU/RUDY/DBD-mysql-2.9002.tar.gz
Is already unwrapped into directory /root/.cpan/build/DBD-mysql-2.9002

CPAN.pm: Going to build R/RU/RUDY/DBD-mysql-2.9002.tar.gz

I will use the following settings for compiling and testing:

cflags (mysql_config) = -I'/usr/local/include/mysql'
libs (mysql_config) = -L/usr/local/lib/mysql -lmysqlclient
-lz -lcrypt -lnsl -lm -L/usr/local/lib/ -lssl -lcrypto
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 1
testdb (default ) = test
testhost (default ) =
testpassword (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.38 installed in /usr/local/lib/perl/5.8.0/auto/DBI
Writing Makefile for DBD::mysql
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql.pm blib/lib/Mysql.pm
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cc -c -I/usr/local/lib/perl/5.8.0/auto/DBI -I'/usr/local/include/mysql'
-DDBD_MYSQL_WITH_SSL -D_REENTRANT -D_GNU_SOURCE -DDEBIAN
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O3 -DVERSION=\"2.9002\"
-DXS_VERSION=\"2.9002\" -fPIC "-I/usr/lib/perl/5.8.0/CORE" dbdimp.c
/usr/bin/perl -p -e "s/~DRIVER~/mysql/g"
/usr/local/lib/perl/5.8.0/auto/DBI/Driver.xst > mysql.xsi
/usr/bin/perl /usr/share/perl/5.8.0/ExtUtils/xsubpp -typemap
/usr/share/perl/5.8.0/ExtUtils/typemap mysql.xs > mysql.xsc && mv
mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 193
Warning: duplicate function definition 'rows' detected in mysql.xs, line 291
cc -c -I/usr/local/lib/perl/5.8.0/auto/DBI -I'/usr/local/include/mysql'
-DDBD_MYSQL_WITH_SSL -D_REENTRANT -D_GNU_SOURCE -DDEBIAN
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O3 -DVERSION=\"2.9002\"
-DXS_VERSION=\"2.9002\" -fPIC "-I/usr/lib/perl/5.8.0/CORE" mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/usr/local/lib" /usr/bin/perl myld cc -shared
-L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so
-L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm
-L/usr/local/lib/ -lssl -lcrypto
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

cpan>
====================


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org