Hello there, I am new to Perl and DBI so forgive me if this is an easy
question. I have looked at the archives and the FAQ but I can't seem to find
a solution to my problem.
I am running Mandrake Linux 8.1 and I am trying to install the latest
DBD::mysql module ( I have downloaded the February 2002 release). I have
installed the Data Dumper 2.101, Data ShowTable 3.3. and DBI 1.21
successfuly but I am having problems trying to install the DBD::mysql
module.
I am following the exact instructions in the README (and INSTALL.html)
files. I have tried to install both the binary and the source formats with
perl -MCPAN -e 'install DBD:mysql' and with manually executing the
Makefile.PL and then "make" but they both (binary and source) fail with
exactly the same error message. The last part of the error message is shown
below (if you need all the whole message please let me know).
Checking if your kit is complete...
Looks good
Using DBI 1.21 installed in
/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/DBI
Writing Makefile for DBD::mysql
cp lib/DBD/mysql.pod blib/lib/DBD/mysql.pod
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Mysql.pm blib/lib/Mysql.pm
cc -c -I/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/DBI
-I'/usr/include/mysql' -fno-strict-aliasing -O3 -fomit-frame-pointer -pipe
-mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce
-DVERSION=\"2.1011\" -DXS_VERSION=\"2.1011\" -fpic
-I/usr/lib/perl5/5.6.1/i386-linux/CORE dbdimp.c
/usr/bin/perl -p -e "s/~DRIVER~/mysql/g" <
/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/DBI/Driver.xst > mysql.xsi
/usr/bin/perl -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1
/usr/lib/perl5/5.6.1/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.6.1/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc
mysql.c
Warning: duplicate function definition 'rows' detected in mysql.xs, line 289
cc -c -I/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/DBI
-I'/usr/include/mysql' -fno-strict-aliasing -O3 -fomit-frame-pointer -pipe
-mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce
-DVERSION=\"2.1011\" -DXS_VERSION=\"2.1011\" -fpic
-I/usr/lib/perl5/5.6.1/i386-linux/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/bin/perl myld cc -shared -L/usr/local/lib dbdimp.o
mysql.o -o blib/arch/auto/DBD/mysql/mysql.so -lmysqlclient -lz -lcrypt
-lnsl -lm
chmod 755 blib/arch/auto/DBD/mysql/mysql.so
chmod: getting attributes of `blib/arch/auto/DBD/mysql/mysql.so': No such
file or directory
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
I guess the error lies with the mysql.so file but I am not entirely sure.
Any help is greatly appreciated.
Kind regards
Panos
_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail.
http://www.hotmail.com