用户工具

站点工具


develop:php:start

PHP

Install

libxml2-2.7.1.tar.gz jpegsrc.v7.tar.gz libpng-1.4.0.tar.gz libiconv-1.14.tar.gz freetype-2.3.11.tar.gz libmcrypt-2.5.8.tar.gz curl-7.19.7.tar.gz

InstallPrefix=/data/home/gavinyao/bin
MYSQL_PATH=/usr/local/services/mysql-5.0.26-client

./configure --prefix=${InstallPrefix}/php  \
--with-config-file-path=${InstallPrefix}/php/etc \
--enable-ftp \
--enable-zend-multibyte \
--enable-mbstring \
--enable-sockets \
--enable-exif \
--enable-pcntl \
--enable-sigchild \
--enable-sysvmsg \
--enable-gd-native-ttf \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--disable-ipv6 \
--with-gd \
--with-png-dir \
--with-jpeg-dir \
--with-freetype-dir \
--with-iconv=/usr/local/services/plugins/libiconv-1.14 \
--with-iconv-dir \
--with-zlib-dir \
--with-bz2 \
--with-libxml-dir \
--with-mcrypt \
--with-curl \
--with-apxs2=${InstallPrefix}/apache22/bin/apxs \
--with-mysql=${MYSQL_PATH} \
--with-pdo-mysql=/usr/local/mysql \
--without-pear

220 上的编译参数

PHP_PREFIX=/data/home/gavinyao/bin
./configure '--prefix${PHP_PREFIX}' \
'--without-pear' \
'--enable-sockets' \
'--enable-pcntl' \
'--enable-shared' \
'--enable-static' \
'--enable-sysvmsg' \
'--enable-tokenizer' \
'--enable-sysvshm' \
'--enable-sysvsem' \
'--enable-bcmath' \
'--enable-ctype' \
'--enable-filter' \
'--enable-hash' \
'--enable-json' \
'--enable-posix' \
'--enable-sockets' \
'--enable-calendar' 
'--enable-calendar' \
'--enable-soap' \
'--with-libxml-dir=/usr/local/services/plugins/libxml2-2.7.1' \
'--enable-dom' \
'--enable-simplexml' \
'--enable-xml' \
'--enable-xmlreader' \
'--enable-xmlwriter' \
'--with-jpeg-dir=/usr/local/services/plugins/jpeg-7' \
'--with-png-dir=/usr/local/services/plugins/libpng' \
'--with-iconv=/usr/local/services/plugins/libiconv-1.13.1' \
'--with-freetype-dir=/usr/local/services/plugins/freetype2-2.3.11' \
'--with-mysqli=/usr/local/services/plugins/mysql-5.0.26-client/bin/mysql_config' \
'--with-mysql=/usr/local/services/plugins/mysql-5.0.26-client' \
'--with-apxs2=/usr/local/services/apache-2.4.3/bin/apxs' \
'--with-zlib' \
'--without-pear' \
'--with-gd' \
'--enable-pcntl' \
'--enable-mbstring' \
'--enable-sysvmsg' \
'--enable-sysvsem' \
'--enable-soap' \
'--enable-bcmath' \
'--with-mcrypt=/usr/local/services/plugins/libmcrypt' \
'--with-mhash' \
'--with-tidy=/usr/local/services/plugins/tidy' \
'--with-xsl=/usr/local/services/plugins/libxslt' \
'--enable-sysvshm' \
'--with-pdo-mysql=/usr/local/mysql' \
'--with-curl=/usr/local/services/plugins/curl-7.20.0'

在 Makefile 的 88 行, EXTRA_LIBS= 后加上 -liconv

Refrence

The PHP Benchmark

vim:ft=dokuwiki

develop/php/start.txt · 最后更改: 2017/07/20 17:24 (外部编辑)

页面工具