Red Hat This forum is for the discussion of Red Hat Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-23-2009, 09:56 AM
|
#1
|
LQ Newbie
Registered: Aug 2008
Posts: 5
Rep:
|
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
|
|
|
03-23-2009, 04:13 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,824
|
Quote:
Originally Posted by hotsouce
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.
|
|
|
03-25-2009, 04:57 PM
|
#3
|
LQ Newbie
Registered: Aug 2008
Posts: 5
Original Poster
Rep:
|
Quote:
Originally Posted by TB0ne
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'
|
|
|
|
03-26-2009, 10:40 AM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,824
|
Quote:
Originally Posted by hotsouce
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.
|
|
|
All times are GMT -5. The time now is 04:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|