Thread: [Cppcms-users] mysql_backend.cpp:20:19: error: mysql.h: No such file or directory
Brought to you by:
artyom-beilis
From: augustin <aug...@ov...> - 2010-12-24 06:47:56
|
Hello, I am trying to compile the latest svn update of cppdb, but: [ 70%] Building CXX object CMakeFiles/cppdb_mysql.dir/drivers/mysql_backend.cpp.o cppdb/drivers/mysql_backend.cpp:20:19: error: mysql.h: No such file or directory although the file is properly installed by the relevant ubuntu package: $ locate mysql.h /usr/include/mysql/mysql.h As far as I am aware, it is in a standard place. Is it a problem in the cppdb makefile, or a configuration problem on my machine? Thanks, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: augustin <aug...@ov...> - 2010-12-24 06:51:41
|
On Friday 24 December 2010 02:48:59 pm augustin wrote: > Is it a problem in the cppdb makefile, or a configuration problem on my > machine? I may be wrong, but it looks like a problem with cppdb, because I had successfully compiled cppcd with the mysql backend 4 days ago, prior to doing svn update to catch the latest bug fixes: /usr/local/lib$ ll libcppdb_mysql* -rw-r--r-- 1 root root 1.1M 2010-12-20 16:15 libcppdb_mysql.a lrwxrwxrwx 1 root root 19 2010-12-20 16:16 libcppdb_mysql.so -> libcppdb_mysql.so.0 lrwxrwxrwx 1 root root 23 2010-12-20 16:16 libcppdb_mysql.so.0 -> libcppdb_mysql.so.0.0.0 -rw-r--r-- 1 root root 546K 2010-12-20 16:15 libcppdb_mysql.so.0.0.0 -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2010-12-24 10:29:57
|
Make sure that you rebuild the project from the scratch. i.e. - Remove build directory - Rerun CMake with parameters you need. - Run make and make install as u Artyom ----- Original Message ---- > From: augustin <aug...@ov...> > To: cpp...@li... > Sent: Fri, December 24, 2010 8:48:59 AM > Subject: [Cppcms-users] mysql_backend.cpp:20:19: error: mysql.h: No such file >or directory > > > Hello, > > I am trying to compile the latest svn update of cppdb, but: > > > > > [ 70%] Building CXX object > CMakeFiles/cppdb_mysql.dir/drivers/mysql_backend.cpp.o > > > > cppdb/drivers/mysql_backend.cpp:20:19: error: mysql.h: No such file or > directory > > although the file is properly installed by the relevant ubuntu package: > > $ locate mysql.h > /usr/include/mysql/mysql.h > > As far as I am aware, it is in a standard place. > > Is it a problem in the cppdb makefile, or a configuration problem on my >machine? > > Thanks, > > Augustin. > > > > > -- > Friends: http://www.reuniting.info/ http://activistsolutions.org/ > My projects: > http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ > > http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ > http://openteacher.info/ http://minguo.info/ > http://www.wechange.org/ http://searching911.info/ > > > > > > > > > > > > > . > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: augustin <aug...@ov...> - 2010-12-24 13:08:58
|
On Friday 24 December 2010 06:29:49 pm Artyom wrote: > Make sure that you rebuild the project from the scratch. i.e. > > - Remove build directory > Thanks. It worked this way. I should have tried that, because it's not the first time re-building from scratch solved a compile problem (I had a similar problem with cppcms, solved in the same fashion). Blessings, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |