一、安装完成后缺少php-fpm文件。
解决方法:
使用./configure编译得时候少了许多得配置
./configure --prefix=/usr/local/php --with-fpm-user=www --with-fpm-group=www --with-curl --with-freetype-dir --with-gd --with-gettext --with-iconv-dir --with-kerberos --with-libdir=lib64 --with-libxml-dir --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-pdo-sqlite --with-pear --with-png-dir --with-jpeg-dir --with-xmlrpc --with-xsl --with-zlib --with-bz2 --with-mhash --enable-fpm --enable-bcmath --enable-libxml --enable-inline-optimization --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-sysvshm --enable-xml --enable-zip --enable-fpm
二、报configure: error: Please reinstall the BZip2 distribution
解决方法:
使用yum install bzip2 bzip2-devel 下载即可
三、报Cannot find OpenSSL’s <evp.h>
解决方法:
使用yum install openssl openssl-devel 下载即可
四、报make: *** No targets specified and no makefile found. Stop.
这个没有找到解决方法
仅供参考:
该错误是因为进行make时,没有找到makefile文件,所以执行错误,我这边得解决方法是,./configure时,后面得参数减少了几条,然后生成了makefile,就可以真常编译了
五、报error: off_t undefined; check your library configuration
解决思路:
vim /etc/ld.so.conf
#添加如下几行
/usr/local/lib64
/usr/local/lib
/usr/lib
/usr/lib64
#保存退出
:wq
ldconfig -v # 使之生效