LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   make error : incompatible /usr/lib64/mysql/libmysqlclient_r.a when searching for -lmy (http://www.linuxquestions.org/questions/red-hat-31/make-error-incompatible-usr-lib64-mysql-libmysqlclient_r-a-when-searching-for-lmy-713808/)

hotsouce 03-23-2009 09:56 AM

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

TB0ne 03-23-2009 04:13 PM

Quote:

Originally Posted by hotsouce (Post 3485041)
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.

hotsouce 03-25-2009 04:57 PM

Quote:

Originally Posted by TB0ne (Post 3485406)
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'

TB0ne 03-26-2009 10:40 AM

Quote:

Originally Posted by hotsouce (Post 3487750)
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:18 PM.