LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 02-09-2007, 08:05 PM   #1
SimonT
Member
 
Registered: Oct 2004
Posts: 33

Rep: Reputation: 15
The MySQL library cannot be found


I am running ./configure for a program that I am about to compile but it fails with
the following.



Code:
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking for main in -lmysqlclient... no
configure: error: The MySQL library cannot be found.
I have MYSQL installed and use it all the time but yet when the check was made it say the client can not be found

type mysql at the command line works linux noob so please go slow :-)
 
Old 02-09-2007, 08:57 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
What's your distro?

If you do an ldconfig -v and look for libmysql ... can you see
it - which directory is it in.




Cheers,
Tink
 
Old 02-09-2007, 10:41 PM   #3
SimonT
Member
 
Registered: Oct 2004
Posts: 33

Original Poster
Rep: Reputation: 15
Thank you for the fast reply here is the output of that command
libmysqlclient is in /usr/lib/mysql

Code:
[root@]# ldconfig -v
/usr/lib/mysql:
        libmysqlclient_r.so.14 -> libmysqlclient_r.so.14.0.0
        libmysqlclient.so.14 -> libmysqlclient.so.14.0.0
Quote:
CentOS release 4.4 (Final)
OS type: Linux i686
Kernel: 2.6.9-42.0.3.EL 05:59:54
Processor: 1 GenuineIntel 534MHz Celeron(Mendocino)
Memory: 254988 kB Swap: 779144 kB

Last edited by SimonT; 02-10-2007 at 09:07 PM.
 
Old 02-09-2007, 10:47 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
The next question would be what version of mysql the program
you're trying to install requires.


Cheers,
Tink
 
Old 02-09-2007, 10:54 PM   #5
SimonT
Member
 
Registered: Oct 2004
Posts: 33

Original Poster
Rep: Reputation: 15
I dont know I looked on there website but found nothing the server is a trixbox server so dont want to hack up the MYSQL install too much

Code:
mysql -V
mysql  Ver 14.7 Distrib 4.1.20, for redhat-linux-gnu (i686) using readline 4.3
 
Old 02-09-2007, 11:50 PM   #6
SimonT
Member
 
Registered: Oct 2004
Posts: 33

Original Poster
Rep: Reputation: 15
Here is what is in the configure file for the mysql check

Code:
echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
echo $ECHO_N "checking for main in -lmysqlclient... $ECHO_C" >&6
if test "${ac_cv_lib_mysqlclient_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmysqlclient  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
 
Old 02-11-2007, 05:44 PM   #7
SimonT
Member
 
Registered: Oct 2004
Posts: 33

Original Poster
Rep: Reputation: 15
Any one have any ideas >?
 
  


Reply

Tags
compile, programing


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
mysqld - /var/log/mysql/mysql-bin.index not found robin.w Linux - Software 5 02-10-2011 02:00 AM
library qt-mt not found Sjaaksken Linux - Software 5 09-18-2006 04:48 PM
library not found errors help cranium2004 Linux - Software 4 01-25-2006 01:02 AM
error: Qt (>= Qt 3.0.2) (library qt-mt) not found bogdanf25 Linux - Newbie 16 04-03-2005 03:53 AM
Qt 3.2 library qt-mt not found. CrazyF Linux - Software 7 10-20-2004 03:03 PM


All times are GMT -5. The time now is 05:16 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration