yum install -y openssl.x86_64 openssl-devel.x86_64
4.
error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
yum install -y curl.x86_64 libcurl-devel.x86_64
5.checking whether to enable JIS-mapped Japanese font support in GD... no
If configure fails try --with-vpx-dir=
yum install libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 -y
测试结果:
6.
configure: error: jpeglib.h not found.
这个搓错误,不是安装libjpeg 和libjpeg-devel
应该是:
yum install -y libjpeg-turbo.x86_64 libjpeg-turbo-devel.x86_64
7.
mcrypt.h not found. Please reinstall libmcrypt.
发现yum源没有这个安装包,就要扩展yum源了:
yum install -y epel-release.noarch
然后查找文件
yum install -y libmcrypt.x86_64 libmcrypt-devel.x86_64
8.
error: Cannot find MySQL header files under /usr/local/mysql.
Note that the MySQL client library is not bundled anymore!
9.启动的时候的错误:
[root@ip5php-5.5.34]# service php-fpm start
Starting php-fpm [27-Apr-2016 17:24:21] ERROR: failed to open configuration file '/usr/local/php/etc/php-fpm.conf': No such file or directory (2)
[27-Apr-2016 17:24:21] ERROR: failed to load configuration file '/usr/local/php/etc/php-fpm.conf'
[27-Apr-2016 17:24:21] ERROR: FPM initialization failed
failed
说明是没有启动php-fpm 的配置文件,那么,我们只需要去其安装路径中重命名:php-fpm.conf.defult 重名为:php-fpm.conf
10.启动php的-fpm的时候,出现:
启动php-fpm的时候,这个提示不知道为啥?
[root@daiqing php-5.5.31]# service php-fpm start
Starting php-fpm [14-Jan-2016 06:16:59] ERROR: [pool www] cannot get uid for user 'php-fpm'
[14-Jan-2016 06:16:59] ERROR: FPM initialization failed
failed
原因分析i:
创建用户没有成功,useradd -s /sbin/nologin php-fpm
11.编译的时候i,出现参数:
--enable-zend-multibyte :
该编译参数已经不存在了。
12. 查看php的编译参数:
/usr/local/php/bin/php -i |head