List:MySQL and Perl« Previous MessageNext Message »
From:Ray Brighenti Date:April 12 1999 8:10pm
Subject:Dynalink Problem
View as plain text  
Hi,

I have been advised to submit the following to this list, if someone could
help me I'd be very grateful.

This is the error I've been getting (on a Debian Linux box)
install_driver(mysql) failed: Can't load
'/usr/lib/perl5/site_perl/i586-linux/auto/DBD/mysql/mysql.so' for module
DBD::mysql: File not found at
/usr/lib/perl5/i586-linux/5.00404/DynaLoader.pm line 166.

The results of perl -V are at the bottom if this helps.

Thanks

Ray


+---------------------------------------------------------------------------
---------+
Here is a Telnet session of the install

logger:/home/bargi/Msql-Mysql-modules-1.2014# make realclean
rm -f ./blib/script/dbimon
cd Mysql && test -f Makefile && make clean

make[1]: Entering directory `/home/bargi/Msql-Mysql-modules-1.2014/Mysql'
rm -rf mysql.c *.xsi ./blib Makefile.aperl
.././blib/arch/auto/DBD/mysql/extrali
bs.all perlmain.c mon.out core so_locations pm_to_blib *~ */*~ */*/*~ *.o
*.a pe
rl.exe mysql.bs mysql.bso mysql.def mysql.exp
mv Makefile Makefile.old > /dev/null 2>&1
make[1]: Leaving directory `/home/bargi/Msql-Mysql-modules-1.2014/Mysql'
rm -rf ./blib Makefile.aperl
./blib/arch/auto/Msql-Mysql-modules/extralibs.all p
erlmain.c mon.out core so_locations pm_to_blib *~ */*~ */*/*~ *.o *.a perl.exe
modules.bso modules.def modules.exp
mv Makefile Makefile.old > /dev/null 2>&1
cd Mysql && test -f Makefile.old && make -f Makefile.old realclean
make[1]: Entering directory `/home/bargi/Msql-Mysql-modules-1.2014/Mysql'
rm -rf mysql.c *.xsi ./blib Makefile.aperl
.././blib/arch/auto/DBD/mysql/extrali
bs.all perlmain.c mon.out core so_locations pm_to_blib *~ */*~ */*/*~ *.o
*.a pe
rl.exe mysql.bs mysql.bso mysql.def mysql.exp
mv Makefile Makefile.old > /dev/null 2>&1
make[1]: [clean] Error 1 (ignored)
rm -rf .././blib/lib/auto/DBD/mysql .././blib/arch/auto/DBD/mysql
rm -f .././blib/arch/auto/DBD/mysql/mysql.so
.././blib/arch/auto/DBD/mysql/mysql
.bs
rm -f .././blib/arch/auto/DBD/mysql/mysql.a
rm -f .././blib/lib/DBD/mysql.pm
rm -rf Makefile Makefile.old
make[1]: Leaving directory `/home/bargi/Msql-Mysql-modules-1.2014/Mysql'
cd Mysql && test -f Makefile && make  realclean
make: [realclean] Error 1 (ignored)
rm -rf ./blib/lib/auto/Msql-Mysql-modules ./blib/arch/auto/Msql-Mysql-modules
rm -f
rm -rf Makefile Makefile.old Mysql/Makefile.PL Msql/Makefile.PL
Msql1/Makefile.P
L .status
logger:/home/bargi/Msql-Mysql-modules-1.2014#


logger:/home/bargi/Msql-Mysql-modules-1.2014# perl Makefile.PL
Checking for DBI, 0.93 or later ... ok
Checking for Data::Dumper ... ok
Checking for Data::ShowTable ... ok
 
 
Which DBMS do you want to use?
 
  1) MySQL
  2) mSQL (1 or 2)
  3) Both MySQL and mSQL
 
  4) mSQL1 and mSQL2
  5) Everything (MySQL, mSQL1 and mSQL2)
 
Enter your choice:  [3] 1
 
 
Do you want to install the MysqlPerl emulation? You might keep your old
Mysql module (to be distinguished from DBD::mysql!) if you are concerned
about compatibility to existing applications! [n]
Which database should I use for testing the Mysql drivers? [test]
On which host is database test running (hostname,  ip address or host:port)
 [localhost] radius02.webfront.net.au
User name for connecting to database test? [undef] platypus
Password for connecting to database test? [undef]
Where is your mysql installed? Please tell me the directory that contains
the subdir include/. [/usr/local/mysql]
Creating Mysql files ....................
Checking if your kit is complete...
Looks good
Writing Makefile for DBD::mysql
Writing Makefile for Msql-Mysql-modules
logger:/home/bargi/Msql-Mysql-modules-1.2014# make
mkdir ./blib
mkdir ./blib/lib
mkdir ./blib/arch
mkdir ./blib/arch/auto
mkdir ./blib/arch/auto/Msql-Mysql-modules
mkdir ./blib/lib/auto
mkdir ./blib/lib/auto/Msql-Mysql-modules
mkdir ./blib/man1
make[1]: Entering directory `/home/bargi/Msql-Mysql-modules-1.2014/Mysql'
mkdir .././blib/lib/DBD
mkdir .././blib/arch/auto/DBD
mkdir .././blib/arch/auto/DBD/mysql
mkdir .././blib/lib/auto/DBD
mkdir .././blib/lib/auto/DBD/mysql
mkdir .././blib/man3
cp mysql.pm .././blib/lib/DBD/mysql.pm
cc -c -I/usr/lib/perl5/site_perl/i586-linux/auto/DBI
-I/usr/local/mysql/include/

mysql -I../dbd  -I/usr/lib/perl5/site_perl/i586-linux/auto/DBI
-I/usr/lib/perl5/
i586-linux/5.00404 -Dbool=char -DHAS_BOOL -I/usr/local/include -O2
-DVERSION=
\"2.0214\" -DXS_VERSION=\"2.0214\" -fpic
-I/usr/lib/perl5/i586-linux/5.00404/COR
E -DDBD_MYSQL -DMyConnect=mysql_dr_connect -DMyLogin=mysql_dr_login dbdimp.c
perl -p -e "s/\~DRIVER\~/mysql/g" <
/usr/lib/perl5/site_perl/i586-linux/auto/DBI
/Driver.xst > mysql.xsi
/usr/bin/perl -I/usr/lib/perl5/i586-linux/5.00404 -I/usr/lib/perl5
/usr/lib/perl
5/ExtUtils/xsubpp  -typemap /usr/lib/perl5/ExtUtils/typemap mysql.xs
>mysql.tc &
& mv mysql.tc mysql.c
cc -c -I/usr/lib/perl5/site_perl/i586-linux/auto/DBI
-I/usr/local/mysql/include/
mysql -I../dbd  -I/usr/lib/perl5/site_perl/i586-linux/auto/DBI
-I/usr/lib/perl5/
i586-linux/5.00404 -Dbool=char -DHAS_BOOL -I/usr/local/include -O2
-DVERSION=
\"2.0214\" -DXS_VERSION=\"2.0214\" -fpic
-I/usr/lib/perl5/i586-linux/5.00404/COR
E -DDBD_MYSQL -DMyConnect=mysql_dr_connect -DMyLogin=mysql_dr_login mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
LD_RUN_PATH="/usr/local/mysql/lib/mysql:/lib:/usr/lib/gcc-lib/i586-pc-linux-
gnul
ibc1/egcs-2.90.29" cc -o .././blib/arch/auto/DBD/mysql/mysql.so  -shared
-L/usr/
local/lib dbdimp.o mysql.o -L/usr/local/mysql/lib/mysql
-L/usr/local/mysql/li
b/mysql -lmysqlclient -lm
-L/usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29
 -lgcc
chmod 755 .././blib/arch/auto/DBD/mysql/mysql.so
cp mysql.bs .././blib/arch/auto/DBD/mysql/mysql.bs
chmod 644 .././blib/arch/auto/DBD/mysql/mysql.bs
Manifying .././blib/man3/DBD::mysql.3
make[1]: Leaving directory `/home/bargi/Msql-Mysql-modules-1.2014/Mysql'
Manifying ./blib/man1/dbimon.1
mkdir ./blib/script
cp dbimon ./blib/script/dbimon
/usr/bin/perl -I/usr/lib/perl5/i586-linux/5.00404 -I/usr/lib/perl5
-MExtUtils::M
akeMaker -e "MY->fixin(shift)" ./blib/script/dbimon
logger:/home/bargi/Msql-Mysql-modules-1.2014# make install
make[1]: Entering directory `/home/bargi/Msql-Mysql-modules-1.2014/Mysql'
make[1]: Leaving directory `/home/bargi/Msql-Mysql-modules-1.2014/Mysql'
Installing /usr/lib/perl5/site_perl/i586-linux/./auto/DBD/mysql/mysql.so
Skipping /usr/lib/perl5/site_perl/i586-linux/./auto/DBD/mysql/mysql.bs
(unchange
d)
Skipping /usr/lib/perl5/site_perl/./DBD/mysql.pm (unchanged)
Installing /usr/man/man1/./dbimon.1
Installing /usr/lib/perl5/man/man3/./DBD::mysql.3
Skipping /usr/bin/./dbimon (unchanged)
Writing /usr/lib/perl5/site_perl/i586-linux/auto/Msql-Mysql-modules/.packlist
Appending installation info to /usr/lib/perl5/i586-linux/5.00404/perllocal.pod
logger:/home/bargi/Msql-Mysql-modules-1.2014# make test
make[1]: Entering directory `/home/bargi/Msql-Mysql-modules-1.2014/Mysql'
make[1]: Leaving directory `/home/bargi/Msql-Mysql-modules-1.2014/Mysql'
make[1]: Entering directory `/home/bargi/Msql-Mysql-modules-1.2014/Mysql'
PERL_DL_NONLAZY=1 /usr/bin/perl -I.././blib/arch -I.././blib/lib
-I/usr/lib/perl
5/i586-linux/5.00404 -I/usr/lib/perl5 -e 'use Test::Harness qw(&runtests
$verbos
e); $verbose=0; runtests @ARGV;' t/*.t
t/00base............install_driver(mysql) failed: Can't load
'.././blib/arch/aut
o/DBD/mysql/mysql.so' for module DBD::mysql: File not found at
/usr/lib/perl5/i5
86-linux/5.00404/DynaLoader.pm line 166.
 
 at (eval 1) line 2
 
 at t/00base.t line 38
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 4-5

        Failed 2/5 tests, 60.00% okay
t/10dsnlist.........install_driver(mysql) failed: Can't load
'.././blib/arch/aut
o/DBD/mysql/mysql.so' for module DBD::mysql: File not found at
/usr/lib/perl5/i5
86-linux/5.00404/DynaLoader.pm line 166.
 
 at (eval 1) line 2
 
 at t/10dsnlist.t line 45
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-3
        Failed 3/3 tests, 0.00% okay
t/20createdrop......install_driver(mysql) failed: Can't load
'.././blib/arch/aut
o/DBD/mysql/mysql.so' for module DBD::mysql: File not found at
/usr/lib/perl5/i5
86-linux/5.00404/DynaLoader.pm line 166.
 
 at (eval 1) line 2
 
 at t/20createdrop.t line 47
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-5
        Failed 5/5 tests, 0.00% okay
t/30insertfetch.....install_driver(mysql) failed: Can't load
'.././blib/arch/aut
o/DBD/mysql/mysql.so' for module DBD::mysql: File not found at
/usr/lib/perl5/i5
86-linux/5.00404/DynaLoader.pm line 166.
 
 at (eval 1) line 2
 
 at t/30insertfetch.t line 48
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-11
        Failed 11/11 tests, 0.00% okay
t/40bindparam.......install_driver(mysql) failed: Can't load
'.././blib/arch/aut
o/DBD/mysql/mysql.so' for module DBD::mysql: File not found at
/usr/lib/perl5/i5
86-linux/5.00404/DynaLoader.pm line 166.
 
 at (eval 3) line 2
 
 at t/40bindparam.t line 64
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-24
        Failed 24/24 tests, 0.00% okay
t/40blobs...........install_driver(mysql) failed: Can't load
'.././blib/arch/aut
o/DBD/mysql/mysql.so' for module DBD::mysql: File not found at
/usr/lib/perl5/i5
86-linux/5.00404/DynaLoader.pm line 166.
 
 at (eval 1) line 2
 
 at t/40blobs.t line 68
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-11
        Failed 11/11 tests, 0.00% okay
t/40listfields......install_driver(mysql) failed: Can't load
'.././blib/arch/aut
o/DBD/mysql/mysql.so' for module DBD::mysql: File not found at
/usr/lib/perl5/i5
86-linux/5.00404/DynaLoader.pm line 166.
 
 at (eval 1) line 2
 
 at t/40listfields.t line 57
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-14
        Failed 14/14 tests, 0.00% okay
t/40nulls...........install_driver(mysql) failed: Can't load
'.././blib/arch/aut
o/DBD/mysql/mysql.so' for module DBD::mysql: File not found at
/usr/lib/perl5/i5
86-linux/5.00404/DynaLoader.pm line 166.
 
 at (eval 1) line 2
 
 at t/40nulls.t line 50
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-11
        Failed 11/11 tests, 0.00% okay
t/40numrows.........install_driver(mysql) failed: Can't load
'.././blib/arch/aut
o/DBD/mysql/mysql.so' for module DBD::mysql: File not found at
/usr/lib/perl5/i5

86-linux/5.00404/DynaLoader.pm line 166.
 
 at (eval 1) line 2
 
 at t/40numrows.t line 59
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-25
        Failed 25/25 tests, 0.00% okay
t/50chopblanks......install_driver(mysql) failed: Can't load
'.././blib/arch/aut
o/DBD/mysql/mysql.so' for module DBD::mysql: File not found at
/usr/lib/perl5/i5
86-linux/5.00404/DynaLoader.pm line 166.
 
 at (eval 1) line 2
 
 at t/50chopblanks.t line 57
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-35
        Failed 35/35 tests, 0.00% okay
t/50commit..........install_driver(mysql) failed: Can't load
'.././blib/arch/aut
o/DBD/mysql/mysql.so' for module DBD::mysql: File not found at
/usr/lib/perl5/i5
86-linux/5.00404/DynaLoader.pm line 166.
 
 at (eval 1) line 2
 
 at t/50commit.t line 64
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-16
        Failed 16/16 tests, 0.00% okay
t/60leaks...........skipping test on this platform
t/ak-dbd............install_driver(mysql) failed: Can't load
'.././blib/arch/aut
o/DBD/mysql/mysql.so' for module DBD::mysql: File not found at
/usr/lib/perl5/i5
86-linux/5.00404/DynaLoader.pm line 166.
 
 at (eval 1) line 2
 
 at t/ak-dbd.t line 58
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-76
        Failed 76/76 tests, 0.00% okay
t/dbdadmin..........install_driver(mysql) failed: Can't load
'.././blib/arch/aut
o/DBD/mysql/mysql.so' for module DBD::mysql: File not found at
/usr/lib/perl5/i5
86-linux/5.00404/DynaLoader.pm line 166.
 
 at (eval 1) line 2
 
 at t/dbdadmin.t line 60
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-22
        Failed 22/22 tests, 0.00% okay

Failed Test  Status Wstat Total Fail  Failed  List of failed
----------------------------------------------------------------------------
---
t/00base.t        2   512     5    2  40.00%  4-5
t/10dsnlist.t     2   512     3    3 100.00%  1-3
t/20createdrop.   2   512     5    5 100.00%  1-5
t/30insertfetch   2   512    11   11 100.00%  1-11
t/40bindparam.t   2   512    24   24 100.00%  1-24
t/40blobs.t       2   512    11   11 100.00%  1-11
t/40listfields.   2   512    14   14 100.00%  1-14
t/40nulls.t       2   512    11   11 100.00%  1-11
t/40numrows.t     2   512    25   25 100.00%  1-25
t/50chopblanks.   2   512    35   35 100.00%  1-35
t/50commit.t      2   512    16   16 100.00%  1-16
t/ak-dbd.t        2   512    76   76 100.00%  1-76
t/dbdadmin.t      2   512    22   22 100.00%  1-22
Failed 13/14 test scripts, 7.14% okay. 255/258 subtests failed, 1.16% okay.
make[1]: *** [test_dynamic] Error 2
make[1]: Leaving directory `/home/bargi/Msql-Mysql-modules-1.2014/Mysql'
make: *** [test] Error 2

+---------------------------------------------------------------------------
---------+
Here is perl -V

logger:/usr/lib/perl5/site_perl/i586-linux/auto/DBD/mysql# perl -V
Summary of my perl5 (5.0 patchlevel 4 subversion 4) configuration:
  Platform:
    osname=linux, osvers=2.0.33, archname=i586-linux
    uname='linux darkstar 2.0.33 #3 fri feb 20 21:11:15 cst 1998 i586
unknown '
    hint=recommended, useposix=true, d_sigaction=define
    bincompat3=y useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O2', gccversion=egcs-2.90.27 980315 (egcs-1.0.2
release)
    cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    stdchar='char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lndbm -lgdbm -ldbm -ldb -ldl -lm -lc
    libc=/lib/libc.so.5.4.38, so=so
    useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Built under linux
  Compiled at Mar 22 1998 23:24:20
  @INC:
    /usr/lib/perl5/i586-linux/5.00404
    /usr/lib/perl5
    /usr/lib/perl5/site_perl/i586-linux
    /usr/lib/perl5/site_perl
    .
+---------------------------------------------------------------------------
---------+

Here is a ls -l for the file it can't seem to find

logger:/usr/lib/perl5/site_perl/i586-linux/auto/DBD/mysql# ls -l
total 55
-r--r--r--   1 root     root            0 Apr  8 14:58 mysql.bs
-r-xr-xr-x   1 root     root        55027 Apr  8 14:58 mysql.so*
logger:/usr/lib/perl5/site_perl/i586-linux/auto/DBD/mysql#  



Thread
Dynalink ProblemRay Brighenti12 Apr