PlaneShift

Development => Development Deliberation => Topic started by: psyche on February 17, 2005, 07:19:22 pm

Title: MySQL Problem compiling the server.
Post by: psyche on February 17, 2005, 07:19:22 pm
When I try to configure Planeshift, I\'v got this warning message :

checking for libmysqlclient... ***
*** mysqlclient test source had problems, check your config.log ..
*** Also try one of the following switches :
***   --with-mysqlclient-prefix=PFX
***

The client work perfectly, but when I try to execute the server (psserver), this error append :

Initialize:
  Could not create database or connect to it.

Mysql runs without any problem on my computer, I use it for other things, but I heard my distibution is something special about mysql : it is the Suse 9.2 ...

If anyone could help ...
Thank you.
Nicolas E.
Title:
Post by: acraig on February 17, 2005, 07:44:52 pm
Possibly your mysql install is in a location that is not searched by the configure scripts. This is why it suggests using  --with-mysqlclient-prefix.  Find out where the mysql headers and libraries are installed on your machine and use that path in the -with
Title:
Post by: psyche on February 17, 2005, 08:31:00 pm
Thank you for your answer. I already did it, but even if all the packages were installed and even if mysql worked perfectly fine, I didn\'t found the headers and libraries files usually used to build mysql applications.

Maybe I will have to install mysql from the sources ...
Title:
Post by: Aerig on February 18, 2005, 04:16:08 pm
If you do find the include and library files and ./configure still does not, look in the jamconfig file and make sure that the following lines are present and pointing to where you found the stuff

MYSQLCLIENT.AVAILABLE ?= \"yes\" ;
MYSQLCLIENT.CFLAGS ?= \"-I/f/mysql/include\" ;
MYSQLCLIENT.LFLAGS ?= \"-L/f/mysql/lib -lmysqlclient\" ;
Title:
Post by: psyche on February 19, 2005, 10:19:29 am
This problem was finally resolved by installing the mysql-devel package (not include in my distribution but available on the web ...). Thank  to everyone who helped me.