Problems Installing DBD::MySQL

From: Tony McCray (mccraya_at_cecs.pdx.edu)
Date: 12/24/04


To: dbi-users@perl.org
Date: Thu, 23 Dec 2004 18:07:55 -0800

I'm trying to install DBD::MySQL onto a SUSE Linux machine with the
2.4.19 kernel. I have perl 5.8.6 built for i686-linux and mysql Ver 14.7
Distribution 4.1.7 for pc-linux (i686). I have tried everything I can
find on this and other lists to try, and as far as I can tell I have
everything installed that I need. Here is what happens when I perl
Makefile.PL/make:

perl Makefile.PL
I will use the following settings for compiling and testing:
                                                                                                         
  cflags (mysql_config) = -I/usr/include/mysql -mcpu=i486
-fno-strength-reduce
  libs (mysql_config) = -L/usr/lib/mysql -lmysqlclient -lcrypt
-lnsl -lm -lz -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files
-lnss_dns -lresolv
  nocatchstderr (default ) = 0
  nofoundrows (default ) = 0
  ssl (guessed ) = 0
  testdb (default ) = test
  testhost (default ) =
  testpassword (default ) =
  testuser (default ) =
                                                                                                         
To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.
                                                                                                         
Using DBI 1.46 (for perl 5.008 on i586-linux-thread-multi) installed in
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/auto/DBI/
Writing Makefile for DBD::mysql

------------------------
make
cc -c
-I/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/auto/DBI/
-I/usr/include/mysql -mcpu=i486 -fno-strength-reduce -D_REENTRANT
-D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O3 --pipe -DVERSION=\"2.9004\"
-DXS_VERSION=\"2.9004\" -fPIC
"-I/usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE" dbdimp.c
cc -c
-I/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/auto/DBI/
-I/usr/include/mysql -mcpu=i486 -fno-strength-reduce -D_REENTRANT
-D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O3 --pipe -DVERSION=\"2.9004\"
-DXS_VERSION=\"2.9004\" -fPIC
"-I/usr/lib/perl5/5.8.0/i586-linux-thread-multi/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/lib/mysql:/lib" /usr/bin/perl myld cc -shared
dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so
-L/usr/lib/mysql -lmysqlclient -lcrypt -lnsl -lm -lz -lc -lnss_files
-lnss_dns -lresolv
-lc -lnss_files -lnss_dns -lresolv
/usr/lib/gcc-lib/i486-suse-linux/3.2.2/../../../../i486-suse-linux/bin/ld: cannot find -lnss_files
collect2: ld returned 1 exit status
chmod 755 blib/arch/auto/DBD/mysql/mysql.so
chmod: failed to get attributes of `blib/arch/auto/DBD/mysql/mysql.so':
No such file or directory
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1



Relevant Pages

  • Re: attempt to build 64 bit on Solaris fails
    ... > libraries needed to link with a 64-bit Tk. ... We were running a 32-bit version of Perl ... > Each section below is a summary of the commands used to install it. ...
    (comp.lang.perl.tk)
  • Re: attempt to build 64 bit on Solaris fails
    ... libraries needed to link with a 64-bit Tk. ... We were running a 32-bit version of Perl ... Each section below is a summary of the commands used to install it. ...
    (comp.lang.perl.tk)
  • Perl on Linux and SQL Server 2000 on Windows
    ... There was a time when I did a lot of searching on ways to use Perl ... sitting on Linux to connect SQL Server 2000 sitting on Windows. ... cpan> install DBI ... Install FreeTDS ...
    (comp.os.linux.misc)
  • RE: Please Help !!! Unable to install DBD-Oracle ( I am using perl 5.6 on solaris 8)
    ... Ron, I could be way off here, but the OP mayalready have Perl ... think the original issue was that he tried to use *PPM* to install ... I don't have any Solaris ... you are not the intended recipient, please notify the sender at Wipro ...
    (perl.dbi.users)
  • Re: Installing DBD::File via CPAN
    ... Do you use 'UNINST=1' in the build options for CPAN? ... >> Did you build Perl from source, or install via a RPM or binary distro? ... >>> sender of the delivery error by replying to this message, or notify us ...
    (perl.dbi.users)