CentOS 5.4环境下的php5.3.1手动安装
Cent自带的版本是5.1.16,现下载php5.3.1安装包tar.gz,解压到/usr/local/src中
执行下述命令:
Cent自带的版本是5.1.16,现下载php5.3.1安装包tar.gz,解压到/usr/local/src中
执行下述命令:
./configure \
"--prefix=/usr/local/php" \
"--with-apxs2=/usr/sbin/apxs" \
"--with-config-file-path=/usr/local/php/etc" \
"--with-mysql=/usr/local/mysql" \
"--with-mysqli" \
"--with-libxml-dir=/usr/lib/libxml" \
"--with-gd" \
"--with-pdo-mysql" \
"--with-pdo-sqlite" \
"--with-jpeg-dir" \
"--with-png-dir" \
"--with-bz2" \
"--with-pear=/usr/lib/pear" \
"--with-freetype-dir" \
"--with-iconv-dir" \
"--with-zlib-dir " \
"--with-mcrypt=/usr/lib/libmcrypt" \
"--enable-sockets" \
"--enable-soap" \
"--enable-sqlite-utf8" \
"--enable-gd-native-ttf" \
"--enable-ftp" \
"--enable-mbstring" \
"--enable-exif" \
"--disable-ipv6" \
"--disable-cgi"
"--prefix=/usr/local/php" \
"--with-apxs2=/usr/sbin/apxs" \
"--with-config-file-path=/usr/local/php/etc" \
"--with-mysql=/usr/local/mysql" \
"--with-mysqli" \
"--with-libxml-dir=/usr/lib/libxml" \
"--with-gd" \
"--with-pdo-mysql" \
"--with-pdo-sqlite" \
"--with-jpeg-dir" \
"--with-png-dir" \
"--with-bz2" \
"--with-pear=/usr/lib/pear" \
"--with-freetype-dir" \
"--with-iconv-dir" \
"--with-zlib-dir " \
"--with-mcrypt=/usr/lib/libmcrypt" \
"--enable-sockets" \
"--enable-soap" \
"--enable-sqlite-utf8" \
"--enable-gd-native-ttf" \
"--enable-ftp" \
"--enable-mbstring" \
"--enable-exif" \
"--disable-ipv6" \
"--disable-cgi"
作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:https://jackxiang.com/post/2640/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!
最后编辑: jackxiang 编辑于2010-1-26 19:01
你好:
我交叉編譯PHP5.2.9時出現很多錯誤或交叉編譯成功時在 arm板上不能運行,希望能和你討論一下,謝謝!
我的email地址是: hkantse@gmail.com
我的QQ是: 971561400