ubuntu 下編譯安裝 mysql php nginx 及常見錯誤 (持續添加)

mysql php

mysql 能夠使用mysql 官方提供的apt源進行安裝 參見這裏mysql

php 安裝前先安裝一些常見庫nginx

sudo apt-get install libpng16-16 libpng16-dev libiconv-hook1 libiconv-hook-dev libjpeg9 libjpeg9-dev libjpeg9-dbg libgd3 bzip2 harfbuzzsql

安裝 freetypeubuntu

freetype 沒有找到apt-get 方式的安裝辦法, 只能編譯安裝curl

下載freetype  , 而後解壓, 進入 freetype 文件夾ide

 ./configure --prefix=/usr/local/freetype
 sudo make
 sudo make install ui

php編譯安裝時常見錯誤url

Q: configure: error: Please reinstall the BZip2 distribution.net

A: sudo apt-get install libbz2-dev bzip2

------------------------------------------------------------------------------

Q: ubuntu configure: error: Please reinstall the libcurl distribution

A: sudo apt-get install libcurl4-gnutls-dev curl

------------------------------------------------------------------------------

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

A: sudo apt-get install libssl-dev 

------------------------------------------------------------------------------

Q: configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.

A: sudo apt-get install libsnmp-dev  libperl-dev

------------------------------------------------------------------------------

Q: 待續...

nginx

nginx 編譯過程當中遇到的錯誤彙總

Q:  ./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option, or install the PCRE library into the system, or build the PCRE library statically from the source with nginx by using --with-pcre=<path> option

A: sudo apt-get install libpcre3 libpcre3-dev 

相關文章
相關標籤/搜索