重慶分公司,新征程啟航
為企業提供網站建設、域名注冊、服務器等服務
為企業提供網站建設、域名注冊、服務器等服務
阿里云上 源碼編譯 php 報錯的集中整理
[root@localhost php-5.5.31]# ./configure --prefix=/module/application/php-5.5/--enable-pcntl --enable-fpm --enable-posix --enable-mysqlnd --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --enable-bcmath --enable-zip --enable-ftp --enable-soap --enable-xml --enable-mbstring --disable-rpath --disable-debug --disable-fileinfo --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zend-vm=GOTO --with-pcre-regex --with-iconv --with-zlib --with-mcrypt --with-gd --enable-gd-native-ttf --with-t1lib=/usr/local --with-xpm-dir=/usr/local --with-jpeg-dir=/usr/local --with-zlib-dir=/usr --with-png-dir=/usr/local --with-freetype-dir=/usr/local --with-openssl --with-mhash --with-xmlrpc --with-curl --with-imap-ssl --with-libxml-dir --with-gettext --enable-maintainer-zts --enable-opcache
報錯
configure: error: xml2-config not found. Please check your libxml2 installation.
解決方法
yum install ibxml2* -y libxml2-devel
報錯
configure: error: Please reinstall the libcurl distribution -
easy.h should be in
解決方法
yum install libcurl* libcurl-devel -y
報錯
configure: error: jpeglib.h not found.
解決方法
yum -y install libjpeg-devel
報錯
checking for jpeg_read_header in -ljpeg... Yes configure: error: png.h not found.
解決方法
yum install libpng-devel
報錯
configure: error: xpm.h not found.
解決方法
yum -y install libXpm-devel
報錯
configure: error: freetype-config not found
解決方法
yum install freetype-devel -y
報錯
configure: error: Your t1lib distribution is not installed correctly. Please reinstall it
解決方法
yum install t1lib* -y
報錯
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
解決方法
yum install mcrypt -y
yum install libmcrypt libmcrypt-devel
另外有需要云服務器可以了解下創新互聯cdcxhl.cn,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業上云的綜合解決方案,具有“安全穩定、簡單易用、服務可用性高、性價比高”等特點與優勢,專為企業上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。