因為自己懶得寫完整的安裝文件,所以就記簡易的過程,
把以下的資料存成一個檔,再一樣一樣的安裝進行,會比
較不會出問題。
有空再寫解釋囉...


#!/bin/sh
#20050507
#4.3.11

# ext install
# step1. install libmcrypt
# step2. install jpeg-6b
# step3. install libpng
# step4. install zlib
# step5. install gd
# step6. install freetype2

# install libmcrypt
tar -zxvf libmcrypt*.*
cd libmcrypt*
./configure
make
make install
cd ..

# install jpeg-6b
tar zxvf jpeg*.*
cd jpeg*
./configure --enable-shared
make
make install
cd ..

# install libpng
tar jxvf libpng*
cd libpng*
cp scripts/makefile.std make file
make
make install
cd ..

# install zlib
tar zxvf zlib*.*
cd zlib*
./configure
make
make install
cd ..

# install gd
tar zxvf gd*.*
cd gd*
./configure
make
make install

# install freetype2
tar zxvf freetype-2.*
cd freetype*
./configure --prefix=/usr
make
make install


./configure --prefix=/usr/local/php4
--with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/local/mysql
--with-config-file-path=/usr/local/php4
--enable-mbstring
--with-xml
--with-iconv
--with-mcrypt=/usr/local/include
--with-gd
--with-freetype2-dir=/usr
--with-zlib-dir=/usr/local
--with-png-dir=/usr/local/lib
--with-jpeg-dir=/usr/local

arrow
arrow
    全站熱搜

    tern 發表在 痞客邦 留言(0) 人氣()