PHP5.3.3源代码编译安装(Linux CentOS 5.5)
yum -y install libevent libevent-devel
yum -y install libxml2 libxml2-devel
yum -y install libmcrypt libmcrypt-devel
yum -y install curl-devel
yum -y install libpng-devel
yum -y install libtool-ltdl-devel
#2. create user and group for fpm(fastcgi process manager)
groupadd fpm
useradd --shell /sbin/nologin -g fpm fpm
#3. download, configure and install php5.3.3
wget https://www.PHP.net/distributions/php-5.3.3.tar.gz
tar zxvf php-5.3.3.tar.gz
cd php-5.3.3
./configure --prefix=/usr/local/php /
--enable-fpm /
--with-fpm-user=fpm /
--with-fpm-group=fpm /
--with-MySQL=mysqlnd /
--with-mysqli=mysqlnd /
--with-pdo-mysql=mysqlnd /
--without-pdo-sqlite /
--without-sqlite3 /
--without-sqlite /
--with-mysql-sock=/tmp/mysql.sock /
--with-curl /
--enable-mbstring /
--with-mhash /
--with-mcrypt /
--with-openssl /
--with-gd /
--enable-sockets /
--with-gettext /
--with-zlib /
--enable-zip /
--enable-soap /
--with-xmlrpc
make && make install
install apc
install memcached
编译安装PHP5.3.3过程中出现的错误,及解决办法。
view source print ?
1 错误: configure: error: libevent >= 1.4.11 could not be found
2 解决: yum -y install libevent libevent-devel
view source print ?
1 错误: configure: error: xml2-config not found. Please check your libxml2 installation.
2 解决: yum -y install libxml2 libxml2-devel
view source print ?
1 错误: configure: error: mcrypt.h not found. Please reinstall libmcrypt.
2 解决: yum install libmcrypt libmcrypt-devel
view source print ?
1 错误: configure: error: Please reinstall the libcurl distribution -
2 easy.h should be in /include/curl/
3 解决: yum -y install curl-devel
4
view source print ?
1 错误: If configure fails try --with-jpeg-dir=
2 configure: error: libpng.(a|so) not found.
3 解决: yum -y install libpng-devel
view source print ?
1 错误: /usr/bin/ld: cannot find -lltdl
2 collect2: ld returned 1 exit status
3 解决: yum -y install libtool-ltdl-devel
推荐阅读
-
CentOS 7.x编译安装Nginx1.10.3+MySQL5.7.16+PHP5.2 5.3 5.4 5.5 5.6 7.0 7.1多版本全能环境
-
详解Lamp环境搭建Linux CentOS6.5编译安装mysql5.6
-
Linux CentOS 5.5 服务器安装图文教程 推荐
-
Linux centOS编译安装Apache报APR not found.错误的解决办法
-
Linux+php+apache+oracle环境搭建之CentOS下源码编译安装PHP
-
CentOS 7.x编译安装Nginx1.10.3+MySQL5.7.16+PHP5.2 5.3 5.4 5.5 5.6 7.0 7.1多版本全能环境
-
PHP5.3.3源代码编译安装(Linux CentOS 5.5)
-
CentOS下的编译源代码安装软件( 以安装python3为例 )
-
详解Lamp环境搭建Linux CentOS6.5编译安装mysql5.6
-
【原创】centos6.4编译安装mysql5.5并为其安装Sphinx引擎支持