LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-05-2002, 09:28 AM   #1
JAMESBEATTY
LQ Newbie
 
Registered: Oct 2002
Posts: 5

Rep: Reputation: 0
Make, Gcc And Mysql Compilation


My make command is failing.

I have taken the embedded server command example from the mysql documentation plus the make command.

error is ..

/usr/bin/ld cannot find -lmysqlclient
collect 2 : ld returned 1 exit status

ANy ideas ?

I am using redhat 7.3. Mysql is installed.
I am a newbie.

Do I need to set my PATH to something ?
Is mysqlclient supposed to be a filename or a function within a file name ?
Presumably MYSQL does not need to be running at compilation time ?
Maybe I need to configure MYSQL to use an embed option - but surely this would cause a runtime error rather than MAKE compilation error.

Any ideas ? (ps. make confuses me entirely).
 
Old 11-05-2002, 09:35 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well what the error literally means is that it can not find the mysqlclient library. it is after a file called libmysqlclient.so.10 (10 is thie most recent afaik) this could come from a number of places, depending on where you are installnig from. if it's from rpm on redhat then it should be in the mysql-3.23.49-3.i386.rpm package. do a locate or find for the file (eg find / -iname libmysql*) and see what turns up. if it's not there, install it, if it is then ensure that it's path is defined in /etc/ld.so.conf (the rpm info on rpmfind.net says it should be at /usr/lib/mysql/libmysqlclient.so.10 for your system). so add /usr/lib/mysql and try again, after running ldconfig.
 
  


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
compilation prob with gcc srinis Programming 4 03-15-2005 05:53 AM
GCC Compilation Trouble Permaximus Linux - Software 3 11-03-2004 03:17 AM
should I use gcc-2.95.3 for kernel compilation shanenin Linux From Scratch 9 07-25-2004 11:24 PM
GCC 3.4.0 Compilation Crashes derryp Linux From Scratch 3 06-11-2004 05:22 PM
gcc compilation error Proger Programming 1 03-22-2003 01:32 PM


All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration