找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 10655|回复: 0

php5.6.9编译安装手迹

[复制链接]
发表于 2015-5-22 15:22:42 | 显示全部楼层 |阅读模式
环境准备:7 l+ U) o7 x: T- @
yum groupinstall "Development tools"! W4 X; X# L, E' ]
yum install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel
2 J1 ?! t' l$ O8 a4 u5 ?8 A( `; n
软件包:
3 c% S- [) ~# W, ~+ xwget http://us3.php.net/get/php-5.6.9.tar.gz/from/cn2.php.net/mirror
' }/ d( E; {5 y' S4 z7 x; ]0 Itar -xvf php-5.6.9.tar.gz  q" O5 B8 x7 n& R
cd php-5.6.99 R0 x9 G. ?$ I, Q# q8 }  }0 x4 A0 q
6 C5 |' T) B! P  ]
编译安装 php 5.6.9 的参数:6 r! H. N' X) Q) N+ w1 z
) {9 S8 c; c5 @2 p! S* W
[Bash shell] 纯文本查看 复制代码
./configure --prefix=/webserver/php-5.6.9 --with-config-file-path=/webserver/php-5.6.9/etc --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zlib --with-curl --with-ldap --with-imap --with-kerberos --with-imap-ssl --with-gettext --with-gd --enable-gd-native-ttf --with-freetype-dir --with-jpeg-dir --with-png-dir --with-openssl --with-iconv=/usr/local --with-pcre-dir --with-mhash --with-mcrypt --with-xmlrpc --with-imap --enable-xml --enable-ftp --enable-mbstring --enable-soap --enable-sockets --enable-fpm --enable-zip --disable-debug --enable-calendar --enable-static --enable-inline-optimization --enable-wddx --enable-opcache --enable-bcmath --enable-shmop --enable-sysvsem --enable-mbregex --enable-pcntl --without-pear --enable-ctype
0 `$ z: M' V; d" k7 m- q4 P; M
* t7 J8 Z4 k9 D! Z5 G) t( N, y  s
make
0 c: F! ?* N( d( H8 X* J- qmake install0 o$ U$ j, a# Y9 ~
--enable-maintainer-zts  此句意思有线程安全版本,开启后ZendGuardLoader不能使用!% W" m0 M. E2 V8 m: e
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|第一站论坛 ( 蜀ICP备06004864号-6 )

GMT+8, 2025-9-14 05:24 , Processed in 0.065192 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表