LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-24-2012, 05:29 AM   #1
mmem700
LQ Newbie
 
Registered: Jan 2012
Posts: 27

Rep: Reputation: Disabled
MySQL Up and Running, but libmysqlclient Not Found


I'm new to compiling on Linux so please be patient.


I'm compiling Cyrus SASL and it's saying:

Code:
gcc -shared  sql.lo sql_init.lo plugin_common.lo  -L/usr/include/mysql -lmysqlclient -lresolv -lresolv -lc  -Wl,-soname -Wl,libsql.so.2 -o .libs/libsql.so.2.0.23
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[2]: *** [libsql.la] Error 1
make[2]: Leaving directory `/home/russ/build/cyrus-sasl-2.1.23/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/russ/build/cyrus-sasl-2.1.23'
make: *** [all] Error 2
So I assume it's looking for libmysqlclient.a - Is that correct?


If so, here's the issue. I installed MySQL 5.5 like this:

Code:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
yum --enablerepo=remi,remi-test list mysql mysql-server
yum --enablerepo=remi,remi-test install mysql mysql-server mysql-devel

The MySQL server is up and running fine, but the problem is, I can't find libmysqlclient.a anywhere.

What is my next move - i.e. How do I generate a copy of libmysqlclient.a - preferably without having to reinstall MySQL?

Last edited by mmem700; 01-24-2012 at 07:31 AM.
 
Old 01-24-2012, 07:58 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,714
Blog Entries: 1

Rep: Reputation: 221Reputation: 221Reputation: 221
It's better to use your package manager to install software. If you told us what distro you were using, someone could tell you how to do that. It's possible your distro splits the server and client software.
 
Old 01-24-2012, 08:25 AM   #3
mmem700
LQ Newbie
 
Registered: Jan 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
Thanks for responding...

I'm on CentOS 5.6 - a GoDaddy dedicated server.
 
Old 01-26-2012, 03:48 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,714
Blog Entries: 1

Rep: Reputation: 221Reputation: 221Reputation: 221
Did you look to see if there is a mysqlclient package in the package manager?
 
  


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
libmysqlclient not found when trying to start EnsimPro mignonnedavis Red Hat 2 06-27-2011 12:09 PM
centos problems running mysql-community-server missing libmysqlclient klabacita Linux - Server 3 08-12-2010 11:50 AM
mysql and libmysqlclient.so.10 tolindsey Linux - General 6 01-19-2006 05:06 PM
libmysqlclient.so.10()(64bit) not found PhilipMac Linux - Software 5 11-02-2004 05:48 PM
libmysqlclient.so.10()(64bit) not found; is there though PhilipMac Linux - General 3 09-23-2004 01:17 PM


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