首页 > Web开发 > 详细

php的安装

时间:2017-01-12 02:29:02      阅读:160      评论:0      收藏:0      [点我收藏+]

./configure --prefix=/data/usr/local/php \
--with-config-file-path=/data/usr/local/php/etc \
--with-iconv-dir=/data/usr/local/libiconv \
--with-freetype-dir \
--with-jpeg-dir \
--with-png-dir \
--with-zlib \
--with-gd \
--enable-gd-native-ttf \
--with-libxml-dir=/usr \
--enable-xml \
--enable-libxml \
--disable-rpath \
--enable-safe-mode \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--with-t1lib=/data/usr/local/t1lib \
--with-curl \
--enable-ftp \
--with-curlwrappers \
--enable-mbregex \
--enable-fpm \
--enable-fastcgi \
--enable-force-cgi-redirect \
--enable-mbstring \
--with-mcrypt \
--with-openssl \
--with-mhash \
--enable-pcntl \
--enable-sockets \
--with-ldap \
--with-ldap-sasl \
--with-xmlrpc \
--with-gettext \
--enable-zip \
--enable-soap \
--enable-session \
--enable-ctype \
--without-pear


报错
在Linux下安装PHP过程中,
编译时出现
(1)
configure: error: libjpeg.(a|so) not found 错误的解决办法
[root@10-19-73-64 php-5.3.0]# ln -s  /usr/lib64/libjpeg.so /usr/lib/libjpeg.so

(2)
configure: error: libpng.(a|so) not found.
[root@10-19-73-64 php-5.3.0]# ln -s  /usr/lib64/libpng.so /usr/lib/libpng.so

(3)
configure: error: Cannot find ldap libraries in /usr/lib.
[root@10-19-73-64 php-5.3.0]# cp -frp /usr/lib64/libldap*  /usr/lib


这里5.3.0这个版本安装不上openssl扩展,所以这里我的升级一下版本

我们这里再装一下安装t1lib图片生成函数库
 wget http://down.linuxprobe.com/Tools/t1lib-5.1.2.tar.gz(因为之前遇到过安装这个的时候报错。这里我们按照下面的方法装一下依赖包)
yum -y install texlive-latex
yum -y install texlive-metapost
yum -y install texlive-collection-fontsrecommended
yum install -y apr* autoconf automake bison bzip2 bzip2* cloog-ppl compat* cpp curl curl-devel fontconfig fontconfig-devel freetype freetype* freetype-devel gcc gcc-c++ gtk+-devel gd gettext gettext-devel glibc kernel kernel-headers keyutils keyutils-libs-devel krb5-devel libcom_err-devel libpng libpng* libpng-devel libjpeg* libsepol-devel libselinux-devel libstdc++-devel libtool* libgomp libxml2 libxml2-devel libXpm* libX* libtiff libtiff* make mpfr ncurses* ntp openssl nasm nasm* openssl-devel patch pcre-devel perl php-common php-gd policycoreutils ppl telnet t1lib t1lib* wget zlib-devel
tar -xf t1lib-5.1.2.tar.gz
chown root.root t1lib-5.1.2 -R
mkdir /data/usr/local/t1lib
cd t1lib-5.1.2
./configure --prefix=/data/usr/local/t1lib --enable-shared
make
make install

 

 

 

参考链接地址:


lnmp环境部署
http://bbs.qcloud.com/thread-9296-1-1.html
http://www.cnblogs.com/mchina/archive/2012/05/17/2507102.html
技术分享


http://www.osyunwei.com/archives/7891.html

php包的下载路径
http://soft.vpser.net/web/php/
phpfpm的下载路径
http://soft.vpser.net/web/phpfpm/


依赖包
http://blog.csdn.net/u014086788/article/details/27525607

php的安装

原文:http://www.cnblogs.com/smail-bao/p/6273867.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!