LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 02-09-2007, 08:05 PM   #1
SimonT
Member
 
Registered: Oct 2004
Posts: 33
Thanked: 0
The MySQL library cannot be found


[Log in to get rid of this advertisement]
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 :-)
SimonT is offline  
Tag This Post , ,
Reply With Quote
Old 02-09-2007, 08:57 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :}
Posts: 18,846
Blog Entries: 1
Thanked: 160
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
Tinkster is offline     Reply With Quote
Old 02-09-2007, 10:41 PM   #3
SimonT
Member
 
Registered: Oct 2004
Posts: 33
Thanked: 0

Original Poster
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..
SimonT is offline     Reply With Quote
Old 02-09-2007, 10:47 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :}
Posts: 18,846
Blog Entries: 1
Thanked: 160
The next question would be what version of mysql the program
you're trying to install requires.


Cheers,
Tink
Tinkster is offline     Reply With Quote
Old 02-09-2007, 10:54 PM   #5
SimonT
Member
 
Registered: Oct 2004
Posts: 33
Thanked: 0

Original Poster
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
SimonT is offline     Reply With Quote
Old 02-09-2007, 11:50 PM   #6
SimonT
Member
 
Registered: Oct 2004
Posts: 33
Thanked: 0

Original Poster
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.  */
SimonT is offline     Reply With Quote
Old 02-11-2007, 05:44 PM   #7
SimonT
Member
 
Registered: Oct 2004
Posts: 33
Thanked: 0

Original Poster
Any one have any ideas >?
SimonT is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 4 05-04-2009 09:50 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 07:37 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration