Compile PHP with MySQL support.

Need help with C, C++, perl, python, etc?

Compile PHP with MySQL support.

Postby kaurikk » 2007-05-09 07:10

Just compiled Apache 2.2.4 and PHP 5.2.2 from source.

But if i try to compile PHP with MySQL supporte it throws error:

Compile command:
Code: Select all
./configure --prefix=/srv/php --with-apxs2=/srv/apache/bin/apxs --with-config-file-path=/srv/php --with-zlib-dir=/usr/lib --enable-mbstring --with-mysql

Error:
Code: Select all
...
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... /var/run/mysqld/mysqld.sock
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!


Installed MySQL packages:
* mysql-client
* mysql-common
* mysql-server


Where are MySQL header files located or what packages am i missing?

Note: Under Fedora works perfect.
User avatar
kaurikk
 
Posts: 4
Joined: 2007-05-09 06:58
Location: Estonia

Postby chrismortimore » 2007-05-09 10:10

libmysql++-dev and libmysqlclient15-dev should give you what you want.
Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 5x320GB WD 7200rpm Caviar RE2 (RAID5), Nvidia 6600GT 256MB
Laptop: Intel Pentium M 1.5GHz, 512MB PC2700, 60GB 5400rpm IBM TravelStar, Nvidia 5200Go 64MB
User avatar
chrismortimore
 
Posts: 862
Joined: 2007-04-24 06:34
Location: Edinburgh, UK

Postby kaurikk » 2007-05-09 10:28

chrismortimore wrote:libmysql++-dev and libmysqlclient15-dev should give you what you want.



Thanks a lot :) And again a little bit smarter :)
User avatar
kaurikk
 
Posts: 4
Joined: 2007-05-09 06:58
Location: Estonia

Postby chrismortimore » 2007-05-09 11:10

You're welcome
Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 5x320GB WD 7200rpm Caviar RE2 (RAID5), Nvidia 6600GT 256MB
Laptop: Intel Pentium M 1.5GHz, 512MB PC2700, 60GB 5400rpm IBM TravelStar, Nvidia 5200Go 64MB
User avatar
chrismortimore
 
Posts: 862
Joined: 2007-04-24 06:34
Location: Edinburgh, UK


Return to Programming

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable