There is a lack of documentation on how to do this, I guess they assume that you must know a lot IF you are trying to use this library.
But here are step by step instructions on how to do it.
What you need
Root access to your server.
An SSH client, like putty, it’s free.
Let’s do it
1 – Run your SSH client and connect to your server using root.
2 – Do:
cd /
Note: I always make a folder like this
mkdir Tools
cd Tools
Note: This is version 3.0.9 obviously, it’s best if you check this web page and download the latest source code: http://www.tangentsoft.net/mysql++/
wget http://www.tangentsoft.net/mysql++/releases/mysql++-3.0.9.tar.gz
tar xvfz mysql++-3.0.9.tar.gz
cd mysql++-3.0.9
./configure
make
make install
3 – Now, in order for:
#include <mysql++.h>To work, you will have to add a line to your ld.so.conf; you will find this file (hopefully) in /etc so go to:
/etc
And edit ld.so.conf and add this line to the end of it:
/usr/local/lib
Note: If ld.so.conf is not in /etc you can try “whereis ld.so.conf” (no quotes)
Save it and run:
ldconfig
And you are all set.
Please also note that, this worked on my CentOS and might not work exactly like this on your distribution.
Hamid Alipour is a partner in Codehead, LLP with his wife, Tess. Hamid speaks 12 markup and programming languages [Yes, 12: PHP, CSS, Ajax, JavaScript, HTML/XHTML, Java, Python, C/C++, ASP, Visual Basic, Scheme and Action Script]; has a penchant for solving the unsolvable; an affinity for clean, hand-written code and is a Zend Certified 
[...] wrote a post about how to install MySQL++ and I thought I will write a quick tutorial on how to use it [...]
Pingback
I am using your excellent installation manual, but I have a problem. I am using Anjuta 2.4.2 because I need to develop a user interface with Gtkmm and also use mysql and my sql++ to be able to write in c++. My problem is that I tried to edit ld.so.conf, adding /usr/include/mysql++, hoping that would be enough for the compiler. But it was not. I get the error message mysql++.h: No such file or directory.
I have tried to modify the compiler and linker settings but I can find no such settings in my Anjuta version.
If you have some ideas about how to work around this problem I would be gratefull. I have googled Anjuta without finding any solution.
Comment
You will have to create the Makefile and use make to compile your code like explained in the post …
Comment
I’m beginner level user of linux. I’m trying to install mysql++ on my machine. I do everything you said. in ld.so file, ” include ld.so.conf.d/*.conf”
was writen.I made it “include ld.so.conf.d/*.conf
/usr/local/lib/ “. then I write “ldconfig” to console when I was under /etc. but it didn’t work. How do I run ldconfig? Am I need a different command to run it? It’s the third week I’m using Linux and I’m trying to learn it by myself. If you tell me what to do in a simple way, I’ll be glad.
Comment