php编译错误Note that the MySQL client library is not bundled anymore或者cannot find mysql header file
2013-07-28 16:37
447 查看
rpm -ivh MySQL-devel-community-5.1.57-1.sles10.x86_64.rpm
export PATH=/usr/local/services/libxml2-2.7.2/bin:$PATH
cp /usr/lib64/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so
./configure --prefix=/usr/local/services --with-mysql=/usr/include/mysql/ --with-curl=/usr/local/services/curl-7.15.0 --with
-libxml-dir=/usr/local/services/libxml2-2.7.2 --enable-fastcgi --enable-fpm --with-mcrypt=/usr/local/services/libmcrypt-
2.5.8 --with-zlibwhere
make
make install
/////////////////////////////////////
php编译错误Note that the MySQL client library is not bundled anymore!
##### install php
##download http://jp.php.net/downloads.php
wget http://jp.php.net/get/php-5.2.9.tar.gz/from/this/mirror
rpm -qa | grep php
rpm -e php-ldap-5.1.6-20.el5 php-5.1.6-20.el5
tar -zxvf php-5.2.9.tar.gz
cd php-5.2.9
./configure --prefix=/usr/local/php --with-mysql=/usr/local/src/mysql-5.1.14-beta-linux-i686-glibc23/include/ --with-
apxs2=/usr/local/apache2/bin/apxs
到最后报错:
configure: error: Cannot find MySQL header files under /usr/local/src/mysql-5.1.14-beta-linux-i686-glibc23/include/.
Note that the MySQL client library is not bundled anymore!
解决方法。
1. 查看系统有没有安装mysql header
find / -name mysql.h
如果有。请指定--with-mysql=/跟正常路径。
如果没有。请看下一步。
2.redhat安装
rpm -ivh MySQL-devel-community-5.1.33-0.rhel5.i386.rpm
3.最后一步php的配置选项添加--with-mysql=/usr即可!
完整的编译参数:
/configure --with-apxs2=/usr/local/apache2/bin/apxs --includedir=/usr/local/include --enable-force-cgi-redirect --enable-
mailparse --enable-mbstring --enable-mbregex --enable-mbstr-enc-trans --enable-trans-sid --enable-shmop --enable-exif --with
-gd --with-jpeg-dir=/usr/local/lib/ --with-png-dir=/usr/local/lib/ --with-zlib-dir=/usr/include/ --enable-gd-native-ttf --
enable-gd-jis-conv --with-pgsql=/usr/local/pgsql --with-mysql=/usr/local/mysql --enable-sockets --enable-ftp --with-
curl=/usr/local/ --enable-memcache --enable-openssl
export PATH=/usr/local/services/libxml2-2.7.2/bin:$PATH
cp /usr/lib64/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so
./configure --prefix=/usr/local/services --with-mysql=/usr/include/mysql/ --with-curl=/usr/local/services/curl-7.15.0 --with
-libxml-dir=/usr/local/services/libxml2-2.7.2 --enable-fastcgi --enable-fpm --with-mcrypt=/usr/local/services/libmcrypt-
2.5.8 --with-zlibwhere
make
make install
/////////////////////////////////////
php编译错误Note that the MySQL client library is not bundled anymore!
##### install php
##download http://jp.php.net/downloads.php
wget http://jp.php.net/get/php-5.2.9.tar.gz/from/this/mirror
rpm -qa | grep php
rpm -e php-ldap-5.1.6-20.el5 php-5.1.6-20.el5
tar -zxvf php-5.2.9.tar.gz
cd php-5.2.9
./configure --prefix=/usr/local/php --with-mysql=/usr/local/src/mysql-5.1.14-beta-linux-i686-glibc23/include/ --with-
apxs2=/usr/local/apache2/bin/apxs
到最后报错:
configure: error: Cannot find MySQL header files under /usr/local/src/mysql-5.1.14-beta-linux-i686-glibc23/include/.
Note that the MySQL client library is not bundled anymore!
解决方法。
1. 查看系统有没有安装mysql header
find / -name mysql.h
如果有。请指定--with-mysql=/跟正常路径。
如果没有。请看下一步。
2.redhat安装
rpm -ivh MySQL-devel-community-5.1.33-0.rhel5.i386.rpm
3.最后一步php的配置选项添加--with-mysql=/usr即可!
完整的编译参数:
/configure --with-apxs2=/usr/local/apache2/bin/apxs --includedir=/usr/local/include --enable-force-cgi-redirect --enable-
mailparse --enable-mbstring --enable-mbregex --enable-mbstr-enc-trans --enable-trans-sid --enable-shmop --enable-exif --with
-gd --with-jpeg-dir=/usr/local/lib/ --with-png-dir=/usr/local/lib/ --with-zlib-dir=/usr/include/ --enable-gd-native-ttf --
enable-gd-jis-conv --with-pgsql=/usr/local/pgsql --with-mysql=/usr/local/mysql --enable-sockets --enable-ftp --with-
curl=/usr/local/ --enable-memcache --enable-openssl
相关文章推荐
- Note that the MySQL client library is not bundled anymore!
- Eclipse错误提示:The project was not built since its build path is incomplete. Cannot find the class file
- 错误提示: The project was not built since its build path is incomplete. Cannot find the class file for j
- MySQL client library is not bundled anymore
- 64位centos上nginx,php编译安装遇configure: error: Cannot find libmysqlclient under /usr 错误解决
- 编译PHP错误Cannot find MySQL header files under yes.
- 安装PHP出现错误:Cannot find MySQL header
- 编译php时出现“configure: error: Cannot find MySQL header files under”
- 编译php时提示“Cannot find MySQL header files”的解决方法
- 编译安装php时提示Cannot find MySQL header files的解决方法
- 编译安装php, Cannot find libmysqlclient under /usr
- 编译时出现fatal error C1853: "debug/xxx.pch" is not a precomplied header file with......错误的原因及解决办法(转)
- PHP编译报错configure: error: Cannot find libmysqlclient under 解决方法
- The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.报该错误的一种原因。
- 编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
- Cannot find bin/catalina.sh The file is absent or does not have execute permission
- The project was not built since its build path is incomplete. Cannot find the class file for java.la
- 编译PHP时提示:configure: error: Cannot find MySQL header files under /usr. 解决
- was not built since its build path is incomplete. Cannot find the class file
- 编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法