關於源碼安裝PHP所遇到得問題

一、安裝完成後缺少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 # 使之生效
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章