Author Topic: MySQL Problem compiling the server.  (Read 392 times)

psyche

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
MySQL Problem compiling the server.
« on: February 17, 2005, 01: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.

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #1 on: February 17, 2005, 01: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
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

psyche

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
(No subject)
« Reply #2 on: February 17, 2005, 02: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 ...

Aerig

  • Hydlaa Resident
  • *
  • Posts: 76
    • View Profile
(No subject)
« Reply #3 on: February 18, 2005, 10:16:08 am »
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\" ;

psyche

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
(No subject)
« Reply #4 on: February 19, 2005, 04: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.