PDA

View Full Version : MySQL++ install woes



CaptainPatent
January 17th, 2008, 10:05 AM
I'm using Xubuntu and ran a build-essential in order to install gcc,

I also (of course) installed MySQL using an apt-get update and then sudo apt-get install mysql-server.

Those are from the debian packages so I'm pretty sure it's the latest versions, but when I go to grab the latest code for MySQL++ it won't configure properly (and thus cannot be made)

The error I get is:
checking for MySQL library directory... configure: error: Didn't find mysqlclient library in '/usr/lib64 /usr/lib /usr/lib64/mysql /usr/lib/mysql /usr/local/lib64 /usr/local/lib /usr/local/lib/mysql /usr/local/mysql/lib /usr/local/mysql/lib/mysql /opt/mysql/lib /opt/mysql/lib/mysql

I tried doing a apt-get install mysql-client, but after installing the server it says I already have one (don't know if that's actually correct)

I tried directing it to where (I think) the client is - var/lib/mysql/mysql - but once again I'm not too sure on that one, and because it didn't work, probably not.

Is there some inherent known problem with a debian or Ubuntu-based MySQL++ install? Am I doing anything wrong? If you need any information or have potential solutions, let me know!

geirha
January 17th, 2008, 12:21 PM
You probably need to install libmysqlclient-dev. When you compile stuff, you generally need the packages ending with -dev of the dependencies.

CaptainPatent
January 17th, 2008, 07:02 PM
That was it exactly! I think I had problems with that earlier (it's called libmysqlclient15-dev now and I missed that) so after an apt-get install libmysqlclient15-dev it configured and made perfectly!

Many thanks geirha!