incompatible /usr/lib/libmysqlclient.so
"Campbell, Scott" <[email protected]> Wed, 16 Jul 2008 16:36:45 -0400
| Newsgroups | gmane.comp.db.mysql.perl |
|---|---|
| Message-ID | <B229D801DD0B3841B2B247772CBF287D04A24365@EXCHANGEVS.ad.WrightExpress.com> |
Hi, I've been searching the archives, but still haven't found a solution
to my problem.
I have a new RedHat Enterprise 5.2 system. I installed the
5.0.51a-0.rhel5 rpms of MySQL devel/server/shared/client community.
I compiled perl 5.10.0 (x86_64-linux) without any problems.
I downloaded and compiled/installed DBI-1.605 from CPAN without issue.
I am now trying to install DBD-mysql-4.007. I keep getting the
following errors when I run "make":
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when
searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /lib/libmysqlclient.so when searching
for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when
searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1
Does anyone have any suggestions?
Thank you,
Scott
Here is the full output/history:
[root@pwm-wex-1030 DBD-mysql-4.007]# perl Makefile.PL
I will use the following settings for compiling and testing:
cflags (mysql_config) = -I/usr/include/mysql -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables
embedded (mysql_config) =
libs (mysql_config) = -L/usr/lib/mysql -lmysqlclient -lz
-lcrypt -lnsl -lm
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
Use of uninitialized value in printf at Makefile.PL line 171, <PIPE>
line 93.
testuser ( ) = root
To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.
Using DBI 1.605 (for perl 5.010000 on x86_64-linux) installed in
/usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux/auto/DBI/
Writing Makefile for DBD::mysql
[root@pwm-wex-1030 DBD-mysql-4.007]# make
cc -c -I/usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux/auto/DBI
-I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
-mtune=generic -fasynchronous-unwind-tables
-DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -DVERSION=\"4.007\" -DXS_VERSION=\"4.007\"
-fPIC "-I/usr/local/lib/perl5/5.10.0/x86_64-linux/CORE" dbdimp.c
cc -c -I/usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux/auto/DBI
-I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
-mtune=generic -fasynchronous-unwind-tables
-DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -DVERSION=\"4.007\" -DXS_VERSION=\"4.007\"
-fPIC "-I/usr/local/lib/perl5/5.10.0/x86_64-linux/CORE" mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
/usr/local/bin/perl myld cc -shared -O2 -L/usr/local/lib dbdimp.o
mysql.o -o blib/arch/auto/DBD/mysql/mysql.so \
-L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm
\
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when
searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /lib/libmysqlclient.so when searching
for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when
searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1
Scott Campbell
Systems Engineer
Wright Express
http://www.wrightexpress.com <http://www.wrightexpress.com/>
(207) 523-7402