ubuntu 下编译安装 mysql php nginx 及常见错误 (持续添加)
2016-09-10 22:49
931 查看
mysql
mysql 可以使用mysql 官方提供的apt源进行安装 参见这里
php 安装前先安装一些常见库
sudo apt-get install libpng16-16 libpng16-dev libiconv-hook1 libiconv-hook-dev libjpeg9 libjpeg9-dev libjpeg9-dbg libgd3 bzip2 harfbuzz
安装 freetype
freetype 没有找到apt-get 方式的安装办法, 只能编译安装
下载freetype , 然后解压, 进入 freetype 文件夹
./configure --prefix=/usr/local/freetype
sudo make
sudo make install
php编译安装时常见错误
Q: configure: error: Please reinstall the BZip2 distribution
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
mysql 可以使用mysql 官方提供的apt源进行安装 参见这里
php 安装前先安装一些常见库
sudo apt-get install libpng16-16 libpng16-dev libiconv-hook1 libiconv-hook-dev libjpeg9 libjpeg9-dev libjpeg9-dbg libgd3 bzip2 harfbuzz
安装 freetype
freetype 没有找到apt-get 方式的安装办法, 只能编译安装
下载freetype , 然后解压, 进入 freetype 文件夹
./configure --prefix=/usr/local/freetype
sudo make
sudo make install
php编译安装时常见错误
Q: configure: error: Please reinstall the BZip2 distribution
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
相关文章推荐
- ubuntu 安装nginx,php,mysql。常见错误解决
- [转]Ubuntu 11.10编译安装nginx、PHP 5.3.8、mysql
- 编译安装php及编译安装mysql常见错误总结及解决办法 网上找的
- Ubuntu 14 编译安装 PHP 5.4.45 + Nginx 1.4.7 + MySQL 5.6.26 笔记
- linux 编译安装php及编译安装mysql常见错误总结及解决办法
- ubuntu源码编译安装php常见错误解决办法
- ubuntu 12.04 编译安装nginx,php,mysql
- ubuntu源码编译安装php常见错误解决办法
- (转)ubuntu源码编译安装php常见错误解决办法
- 编译安装php及编译安装mysql常见错误总结及解决办法
- ubuntu源码编译安装php常见错误解决办法
- Ubuntu 11.04编译安装nginx、PHP 5.3、mysql、mongodb、memcached、ssl、smtp
- 【转】ubuntu源码编译安装php常见错误解决办法
- 64位centos上nginx,php编译安装遇configure: error: Cannot find libmysqlclient under /usr 错误解决
- Ubuntu编译安装nginx,php,mysql
- UBUNTU 安装PHP+MYSQL+NGINX
- ubuntu 10.10 源码安装 nginx php mysql
- linux中源码编译安装mysql常见错误
- php编译安装常见错误
- Ubuntu 11.04下Nginx+PHP+Mysql+Tomcat安装配置