Ubuntu中安装Nginx+php+mysql+memcache+eaccelerator笔记

基本上是参考张宴的http://blog.s135.com/nginx_php_v5/ 来操作的
但是对方主要是写的在CentOS 和RedHat 的安装方法,在Ubuntu下有很多不同之处.

在Ubuntu9.10 Beta下安装成功

1. 安装php之前 应该先安装php的支持库,能避免后面出现的数个错误.
主要有

代码:
apt-get install libxml2 libldap-2.4-2 libmhash2 libmysqlclient16 curl libpng3 libjpeg62 libsasl2-2 libmcrypt4 libltdl7 autoconf


2.安装openssl

代码:
sudo apt-get install libssl0.9.8
sudo apt-get install libssl-dev
sudo apt-get install openssl


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

代码:
apt-get install curl
apt-get install libcurl3
apt-get install libcurl4-gnutls-dev


4.
Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!

代码:
apt-get install libmysql++-dev



5.configure: error: freetype.h not found.

代码:
apt-get install libfreetype6-dev



6.checking for termcap functions library… configure: error: No curses/termcap library found

代码:
apt-get install libncurses5-dev



7.安装libpng/libjpeg

代码:
apt-get install libpng12-dev
apt-get install libjpeg62-dev




8.安装autoconf 不安装的话,memcache等扩展无法编译

代码:
apt-get install autoconf



9.编译php的时候 configure: error: sasl.h not found!

apt-get install libsasl2-dev

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值