Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Compile PHP with MySQL support.

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
User avatar
kaurikk
Posts: 4
Joined: 2007-05-09 06:58
Location: Estonia

Compile PHP with MySQL support.

#1 Post by kaurikk »

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
chrismortimore
Posts: 849
Joined: 2007-04-24 06:34
Location: Edinburgh, UK

#2 Post by chrismortimore »

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
kaurikk
Posts: 4
Joined: 2007-05-09 06:58
Location: Estonia

#3 Post by kaurikk »

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

Thanks a lot :) And again a little bit smarter :)

User avatar
chrismortimore
Posts: 849
Joined: 2007-04-24 06:34
Location: Edinburgh, UK

#4 Post by chrismortimore »

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

Post Reply