LNMP安裝報錯解決方案

來源:互聯網
上載者:User

標籤:解決方案   include   should   error   

configure: error: no acceptable cc found in $PATH

解決方案:yum install -y gcc


configure: error: xml2-config not found. Please check your libxml2 installation.

解決方案:yum install -y libxml2-devel


configure: error: Cannot find OpenSSL‘s <evp.h>

解決方案:yum install -y openssl-devel


configure: error: Please reinstall the libcurl distribution -easy.h should be in <curl-dir>/include/curl/

解決方案:yum install -y curl-devel


configure: error: jpeglib.h not found

解決方案:yum install -y libjpeg-turbo-devel

或者yum install -y libjpeg-devel


configure: error: png.h not found.

解決方案:yum install -y libpng-devel


configure: error: freetype.h not found.

解決方案:yum install -y freetype-devel


configure: error: mcrypt.h not found. Please reinstall libmcrypt.

解決方案:yum install -y libmcrypt-devel

要是不能用yun安裝的話 ,就要去下載個gz包自己編譯安裝

解決方案:cd /usr/local/src/

wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz

tar -zxvf libmcrypt-2.5.7.tar.gz

cd libmcrypt-2.5.7 

mkdir -p /usr/local/libmcrypt

./configure prefix=/usr/local/libmcrypt/

make

make install

然後再編譯PHP時將--with-mcrypt改為

--with-mcrypt=/usr/local/libmcrypt/

#########################################################################################

編譯make

/usr/bin/ld: cannot find -lltdl

collect2: ld returned 1 exit status

make: *** [sapi/fpm/php-fpm] 錯誤 1

解決方案:yum install -y libtool-ltdl-devel

#########################################################################################

nginx編譯報錯

./configure: error: the HTTP rewrite module requires the PCRE library.

解決方案:yum -y install pcre-devel


本文出自 “時不待我!” 部落格,請務必保留此出處http://zengweidao.blog.51cto.com/8342699/1535579

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.