PHP5.3.3源代码编译安装(Linux CentOS 5.5)
2012-12-05 14:21
871 查看
PHP5.3.3源代码编译安装(Linux CentOS 5.5)
编译安装PHP5.3.3过程中出现的错误,及解决办法。
01 | #1. install libs needed |
02 | yum -y install libevent libevent-devel |
03 | yum -y install libxml2 libxml2-devel |
04 | yum -y install libmcrypt libmcrypt-devel |
05 | yum -y install curl-devel |
06 | yum -y install libpng-devel |
07 | yum -y install libtool-ltdl-devel |
08 |
09 | #2. create user and group for fpm(fastcgi process manager) |
10 | groupadd fpm |
11 | useradd --shell /sbin/nologin -g fpm fpm |
12 |
13 | #3. download, configure and install php5.3.3 |
14 | wget http://www.php.net/distributions/php-5.3.3.tar.gz |
15 | tar zxvf php-5.3.3.tar.gz |
16 | cd php-5.3.3 |
17 |
18 | ./configure --prefix=/usr/local/php \ |
19 | --enable-fpm \ |
20 | --with-fpm-user=fpm \ |
21 | --with-fpm-group=fpm \ |
22 | --with-mysql=mysqlnd \ |
23 | --with-mysqli=mysqlnd \ |
24 | --with-pdo-mysql=mysqlnd \ |
25 | --without-pdo-sqlite \ |
26 | --without-sqlite3 \ |
27 | --without-sqlite \ |
28 | --with-mysql-sock=/tmp/mysql.sock \ |
29 | --with-curl \ |
30 | --enable-mbstring \ |
31 | --with-mhash \ |
32 | --with-mcrypt \ |
33 | --with-openssl \ |
34 | --with-gd \ |
35 | --enable-sockets \ |
36 | --with-gettext \ |
37 | --with-zlib \ |
38 | --enable-zip \ |
39 | --enable-soap \ |
40 | --with-xmlrpc |
41 |
42 | make && make install |
43 |
44 | #4. install apc |
45 | #5. install memcached |
1 | 错误: configure: error: libevent >= 1.4.11 could not be found |
2 | 解决: yum -y install libevent libevent-devel |
1 | 错误: configure: error: xml2-config not found. Please check your libxml2 installation. |
2 | 解决: yum -y install libxml2 libxml2-devel |
1 | 错误: configure: error: mcrypt.h not found. Please reinstall libmcrypt. |
2 | 解决: yum install libmcrypt libmcrypt-devel |
1 | 错误: configure: error: Please reinstall the libcurl distribution - |
2 | easy.h should be in <curl-dir>/include/curl/ |
3 | 解决: yum -y install curl-devel |
4 | </curl-dir> |
1 | 错误: If configure fails try --with-jpeg-dir= |
2 | configure: error: libpng.(a|so) not found. |
3 | 解决: yum -y install libpng-devel |
1 | 错误: /usr/bin/ld: cannot find -lltdl |
2 | collect2: ld returned 1 exit status |
3 | 解决: yum -y install libtool-ltdl-devel |
相关文章推荐
- PHP5.3.3源代码编译安装(Linux CentOS 5.5)
- PHP5.3.3源代码编译安装(Linux CentOS 5.5)
- CentOS 编译安装php5.5, 并配制支持apach,nignx核心代码
- Linux_Centos_PHP编译安装
- CentOS编译安装php5.5 libiconv libmcrypt libevent memcached redis以及扩展
- 生产环境Centos LNMP编译安装nginx-1.6 MySQL-5.6 php-5.5
- Linux+php+apache+oracle环境搭建之CentOS下源码编译安装PHP
- Linux(CentOS 5.5) Redis 安装及RedisPHP拓展安装应用
- Linux(Centos5.5) redis 安装及redisphp拓展安装应用
- CentOS 5.5 编译安装Apache+MySQL+PHP
- Linux(CentOS)下PHP扩展PDO编译安装的方法
- 64位Linux下编译搭建Nginx1.5与PHP5.5(CentOS6.4)
- 64位linux centOS 5.5 安装 Apache+Mysql+PHP+GD
- CentOS 5.5 编译安装Apache+MySQL+PHP(转)
- Linux\CentOS系统下的服务器搭建,下载编译环境,安装vsFtpd、nginx、MySQL、JDK、Tomcat、PHP
- 解决在X64 RedHat5.1、centos、linux 下以编译方式安装PHP 出现的种种问题(转)
- linux(centos)下编译安装php性能测试工具xhprof笔记
- Linux(CentOS 5.5) Redis 安装及RedisPHP拓展安装应用
- Linux(CentOS6.5)下编译安装PHP5.6.22时报错”configure: error: ZLIB extension requires gzgets in zlib”的解决方式(确定已经编译安装Zlib,并已经指定Zlib路径)
- Amazon Linux 编译安装 Apache 2.4 + PHP 5.5