# 下面是分别编译各扩展
# bcmath filter json mysql shmop tidy
# bz2 ftp mbstring pcntl soap tokenizer
# calendar gd mcrypt pdo_mysql sockets [xcache]
# ctype gettext [memcache] pdo sqlite xmlreader
# curl gmp mhash posix sysvmsg xmlwriter
# dom hash mime_magic recode sysvsem xsl
# exif iconv mysqli session sysvshm zip
cd ../bcmath
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --enable-bcmath
make && sudo make install
cd ../bz2
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --with-bz2
make && sudo make install
cd ../calendar
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --enable-calendar
make && sudo make install
cd ../ctype
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config
make && sudo make install
cd ../curl
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --with-curl --with-curlwrappers
make && sudo make install
cd ../dom
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --with-libxml-dir=/opt/server/lib/libxml
make && sudo make install
cd ../exif
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --enable-exif
make && sudo make install
cd ../filter
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config
make && sudo make install
cd ../ftp
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --enable-ftp
make && sudo make install
cd ../gd
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --enable-gd-native-ttf --enable-gd-jis-conv --with-gd=/opt/server/lib/gd --with-freetype-dir=/opt/server/lib/freetype --with-jpeg-dir=/usr/local --with-png-dir=/usr
make && sudo make install
cd ../gettext
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --with-gettext
make && sudo make install
cd ../gmp
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --with-gmp
make && sudo make install
cd ../hash
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config
make && sudo make install
cd ../iconv
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config
make && sudo make install
cd ../json
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config
make && sudo make install
cd ../mbstring
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --enable-mbstring
make && sudo make install
cd ../mcrypt
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --with-mcrypt
make && sudo make install
cd ../mhash
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --with-mhash
make && sudo make install
cd ../mime_magic
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config
make && sudo make install
cd ../mysql
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --with-mysql=/opt/server/mysql5/
make && sudo make install
cd ../mysqli
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --with-mysqli=/opt/server/mysql5/bin/mysql_config
make && sudo make install
cd ../pcntl
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --enable-pcntl
make && sudo make install
cd ../pdo
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config
make && sudo make install
cd ../pdo_mysql
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --with-pdo-mysql=/opt/server/mysql5/
make && sudo make install
cd ../pdo_sqlite
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config
make && sudo make install
cd ../posix
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config
make && sudo make install
cd ../recode
/opt/server/php5/bin/phpize
./configure --with-php-config=/opt/server/php5/bin/php-config --with-recode
make && sudo make install
