Monthly Archives: February 2012
在安装php的make时候,出现错误”chmod: cannot access `ext/phar/phar.phar’: No such file or directory”的解决办法
在对php进行configure的时候,只需要在./configure的后面加上–without-pear 即可.
编译php出错:error while loading shared libraries: libmysqlclient.so.18: cannot open shared object f
近日在编译php,make的时候出错:
/root/dev/php-5.3.6/sapi/cli/php: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
make: *** [ext/phar/phar.php] Error 127
===================================================
网上找到的解决办法是:
ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib/
照做后仍然报错,原因是该方法适用于32位系统,64位系统应使用下面的这行
ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib64/
另外:在编译的时候,不写mysql的路径,而使用mysqlnd代替,也可解决该问题的出现。
[教程]CentOS下安装lnmp教程(最新版2012-02-05)
2013-01-25 更新的安装shell脚本,这里使用的是nginx1.2.6。点击查看shell安装脚本,测试环境:
Centos 6.3 X86_64
PHP 5.3.10
Nginx-1.2.6
memcached-1.4.15.tar.gz
以下教程参考上次写的lnmp安装教程http://blog.haohtml.com/archives/6051整理的,部分细节由于软件版本的变更也同时进行了增加和修改.
以下基于x64位操作系统(64位操作系统,64位cpu).查看方法参考:http://blog.haohtml.com/archives/11093
安装环境及软件:
Centos6.1 X86_64
mysql-5.5.22-linux2.6-x86_64.tar.gz
php-5.3.10.tar.gz
nginx-1.2.0.tar.gz
以上软件全部为截止当前日期 2012-2-5 为止最新稳定版的软件.
前期准备工作
yum -y install wget make zip unzip patch