ITPub博客

首页 > Linux操作系统 > Linux操作系统 > linux下编译安装php

linux下编译安装php

原创 Linux操作系统 作者:goolen 时间:2014-12-09 11:45:40 0 删除 编辑
下载安装包:
[root@goolen goolen]# ls php-5.6.3.tar.gz 
php-5.6.3.tar.gz
[root@goolen]# tar zxfv php-5.6.3.tar.gz 
[root@goolen php-5.6.3]# cd php-5.6.3         
[root@goolen php-5.6.3]#./configure --prefix=/usr/local/php --with-mysql=/tol/mysql/
报错:
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
configure: error: Cannot find MySQL header files under /tol/mysql.
Note that the MySQL client library is not bundled anymore!

[root@goolen php-5.6.3]# locate mysql.h      
/root/Percona-Server-5.5.18-rel23.0/include/mysql.h
/root/Percona-Server-5.5.18-rel23.0/include/mysql.h.pp

[root@goolen php-5.6.3]# echo $MYSQL_HOME
/tol/mysql/home

[root@goolen php-5.6.3]#./configure --prefix=/usr/local/php --with-mysql=/tol/mysql/home

[root@goolen php-5.6.3]# make ; make install

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23249684/viewspace-1361759/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-10-20

  • 博文量
    121
  • 访问量
    731655