以下的步驟是特別為了我自己的環境而設計的configure. 倘若沒有用到MSSQL, 可以將--with-mssql=/usr/local/freetds \ 以及 --with-pdo-dblib=/usr/local/freetds \ 給拿掉.
- wget http://hk.php.net/get/php-5.2.11.tar.gz/from/this/mirror
- cp php-5.2.11.tar.gz ..
- cd ..
- gunzip -cd php-5.2.11.tar.gz | gtar xvpf -
- cd php-5.2.11
./configure --prefix=/usr/local/php \
--with-apxs2=/usr/apache2/bin/apxs \
--with-mysql=/usr/local/mysql/ --with-libxml-dir=/usr/slocal \
--with-config-file-path=/usr/local/php/ \
--with-gnu-ld \
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib --enable-mbstring --enable-pdo --enable-mbstring \
--with-pdo-sqlite \
--with-pdo-mysql=/usr/local/mysql \
--with-mssql=/usr/local/freetds \
--with-pdo-dblib=/usr/local/freetds \
--with-gettext \
--with-curl \
--with-openssl=/usr/local/ssl \
--with-pspell=/usr \
--enable-calendar \
--enable-magic-quotes \
--enable-zend-multibyte
完成之後...
- gmake
- gmake install
留言
張貼留言