LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 03-23-2009, 09:56 AM   #1
hotsouce
LQ Newbie
 
Registered: Aug 2008
Posts: 5

Rep: Reputation: 0
make error : incompatible /usr/lib64/mysql/libmysqlclient_r.a when searching for -lmy


Hi,

a have problme below

Code:
make[2]: Entering directory `/root/SUSELinux/sysbench-0.4.10/sysbench'
/bin/sh ../libtool --tag=CC   --mode=link gcc -pthread -g -O2     -L/usr/lib64/mysql -o sysbench sysbench.o sb_timer.o sb_options.o sb_logger.o db_driver.o tests/fileio/libsbfileio.a tests/threads/libsbthreads.a tests/memory/libsbmemory.a tests/cpu/libsbcpu.a tests/oltp/libsboltp.a tests/mutex/libsbmutex.a drivers/mysql/libsbmysql.a -L/usr/lib64/mysql -lmysqlclient_r -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto   -lrt -laio -lm
gcc -pthread -g -O2 -o sysbench sysbench.o sb_timer.o sb_options.o sb_logger.o db_driver.o  -L/usr/lib64/mysql tests/fileio/libsbfileio.a tests/threads/libsbthreads.a tests/memory/libsbmemory.a tests/cpu/libsbcpu.a tests/oltp/libsboltp.a tests/mutex/libsbmutex.a drivers/mysql/libsbmysql.a -lmysqlclient_r -lz -lcrypt -lnsl -L/usr/lib64 -lssl -lcrypto -lrt -laio -lm
/usr/bin/ld: skipping incompatible /usr/lib64/mysql/libmysqlclient_r.a when searching for -lmysqlclient_r
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
make[2]: *** [sysbench] Error 1
make[2]: Leaving directory `/root/SUSELinux/sysbench-0.4.10/sysbench'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/SUSELinux/sysbench-0.4.10/sysbench'
make: *** [all-recursive] Error 1
I install sysbench and process instalaltion need mysql.

I don't now how resolve this
Code:
/usr/bin/ld: skipping incompatible /usr/lib64/mysql/libmysqlclient_r.a when searching for -lmysqlclient_r
/usr/bin/ld: cannot find -lmysqlclient_r
I have red hat 5 server enter. on ppc64
 
Old 03-23-2009, 04:13 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,403

Rep: Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529
Quote:
Originally Posted by hotsouce View Post
Hi,

a have problme below

Code:
/usr/bin/ld: cannot find -lmysqlclient_r
I install sysbench and process instalaltion need mysql.


I have red hat 5 server enter. on ppc64
Please write clearly, and your question answers itself. Your make is failing, because it can't find mysqlclient. Install it. You should have mysql server, client, common, and devel installed, mysqlclient is in one of them.

Since you don't say what version/distro of Linux you're using, where you get them, what provides it, and how to install it, is hard to say.
 
Old 03-25-2009, 04:57 PM   #3
hotsouce
LQ Newbie
 
Registered: Aug 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
Please write clearly, and your question answers itself. Your make is failing, because it can't find mysqlclient. Install it. You should have mysql server, client, common, and devel installed, mysqlclient is in one of them.

Since you don't say what version/distro of Linux you're using, where you get them, what provides it, and how to install it, is hard to say.
OK

I have Red Hat 5 for PPC64 (IBM POWER)

I installed
Quote:
You should have mysql server, client, common, and devel installed, mysqlclient is in one of them.
I have all what i need to install (usr/lib/mysql and usr/lib64/mysql) sysbench.

I find "/usr/bin/ld: cannot find -lmysqlclient_r" (32 and 64 version)

But i still have the same error
Quote:
make[2]: Entering directory `/root/SUSELinux/sysbench-0.4.10/sysbench'
/bin/sh ../libtool --tag=CC --mode=link gcc -pthread -g -O2 -L/usr/lib64/mysql -o sysbench sysbench.o sb_timer.o sb_options.o sb_logger.o db_driver.o tests/fileio/libsbfileio.a tests/threads/libsbthreads.a tests/memory/libsbmemory.a tests/cpu/libsbcpu.a tests/oltp/libsboltp.a tests/mutex/libsbmutex.a drivers/mysql/libsbmysql.a -L/usr/lib64/mysql -lmysqlclient_r -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto -lrt -laio -lm
gcc -pthread -g -O2 -o sysbench sysbench.o sb_timer.o sb_options.o sb_logger.o db_driver.o -L/usr/lib64/mysql tests/fileio/libsbfileio.a tests/threads/libsbthreads.a tests/memory/libsbmemory.a tests/cpu/libsbcpu.a tests/oltp/libsboltp.a tests/mutex/libsbmutex.a drivers/mysql/libsbmysql.a -lmysqlclient_r -lz -lcrypt -lnsl -L/usr/lib64 -lssl -lcrypto -lrt -laio -lm
/usr/bin/ld: skipping incompatible /usr/lib64/mysql/libmysqlclient_r.a when searching for -lmysqlclient_r
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
make[2]: *** [sysbench] Error 1
make[2]: Leaving directory `/root/SUSELinux/sysbench-0.4.10/sysbench'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/SUSELinux/sysbench-0.4.10/sysbench'
 
Old 03-26-2009, 10:40 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,403

Rep: Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529
Quote:
Originally Posted by hotsouce View Post
OK
I have Red Hat 5 for PPC64 (IBM POWER)

I have all what i need to install (usr/lib/mysql and usr/lib64/mysql) sysbench.

I find "/usr/bin/ld: cannot find -lmysqlclient_r" (32 and 64 version)

But i still have the same error
Right...because you have NOT installed "all what you need". From a very brief search on http://rpm.pbone.net, the mysqlclient package supplies what you need. Since you're getting an error...you haven't installed it.

And you say RedHat 5....do you mean RedHat 5, or RedHat ENTERPRISE Linux 5? The two are very different...the first being VERY old. And if you have RHEL, you can contact RedHat support...they can give you a link to the exact package for your system, since you're paying for it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
make error: /usr/bin/ld: cannot find -lXext ryedunn Linux - Software 20 11-16-2011 03:28 AM
Relocat /usr/lib and /usr/lib64 to a different path schokshi Fedora 3 08-30-2005 09:14 PM
KDevelop on FC4_x86_64 does not look in directory '/usr/lib64' seriesx4 Programming 0 08-09-2005 06:21 PM
warning : /usr/lib64/libavcodec.so: undefined symbol: awt586 Suse/Novell 2 07-19-2005 04:18 PM
/usr/bin/ld error recieved on make jmonolith2001 Linux - Software 4 12-28-2004 03:23 AM


All times are GMT -5. The time now is 01:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration