日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

PHP编译遇到的问题

發布時間:2025/6/16 45 豆豆
生活随笔 收集整理的這篇文章主要介紹了 PHP编译遇到的问题 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

編譯php的時候遇到的問題:


編譯代碼:

./configure --prefix=/server/php-5.4-nginx --with-config-file-path=/server/php-5.4-nginx --with-mysql=/server/mysql-5.5/ --with-mysqli=/server/mysql-5.5/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fpm --enable-mbstring ?--with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets ?--with-xmlrpc --enable-zip --enable-soap ?--with-mcrypt=/usr/local/

報錯信息:configure: error: Please reinstall the libcurl distribution -

? ? easy.h should be in <curl-dir>/include/curl/


解決辦法:yum install curl-devel



再次編譯報錯:

configure: error: jpeglib.h not found.

解決方法:

檢查之后發現已經安裝了libjpeg

[root@localhost php-5.2.14]#?yum list installed|grep libpng
libpng.x86_64?????????? 2:1.2.49-1.el6_2

或者:

[root@localhost php-5.2.14]#?rpm -qa|grep libjpeg
libjpeg-turbo-1.2.1-3.el6_5.x86_64

如果沒有安裝則需要:

yum install libjpeg libpng freetype libjpeg-devel libpng-devel freetype-devel -y

若是64位系統
解決方法:
yum install libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 -y

安裝完后再安裝libjpeg-devel

安裝libjpeg-devel

yum?-y install libjpeg-devel

記住一點就好了:編譯過程中出現錯誤不可怕,出現一個解決一個就好了。



本文轉自 維度2018 51CTO博客,原文鏈接:http://blog.51cto.com/xinsz08/1795763,如需轉載請自行聯系原作者

總結

以上是生活随笔為你收集整理的PHP编译遇到的问题的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。