php
■PHPインストールの前に、
jpeg,zlib,libpng,freetype,GD最新版を準備する。
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
■jpeg
$ tar -zxvf jpegsrc.v6b.tar.gz
$ cd jpeg-6b/
$ ./configure --enable-shared
$ make
$ su
# mkdir /usr/local/include
# make install
■zlib
> tar xzvf zlib-1.1.3.tar.gz
> cd zlib-1.1.3
次に、configure を実行します。共有ライブラリもコンパイルしたい場合は、--shared オプションをつけます。
> ./configure --shared
make します。
> make
root ユーザになってインストールを行います。
> su
# make install
■libpng
次に、PNG ライブラリです。ソースを展開し、展開したディレクトリに移動します。
> tar xIvf libpng-1.2.5.tar.gz
> cd libpng-1.2.5
次に、各プラットフォームにあった Makefile をコピーします。
> cp scripts/makefile.linux Makefile
次にインストールしてある zlib などの位置を指定するために、Makefile を編集します。
ZLIBLIB=/usr/local/lib
ZLIBINC=/usr/local/include
変更が終わったら、make します。
> make
root ユーザになってインストールを行います。
> su
# make install
■freetype
$ tar -zxvf freetype-2.1.7.tar.gz
$ cd freetype-2.1.7
$ ./configure
$ make
$ su
# make install
■GD
$ tar xvfz gd-2.0.22.tar.gz
$ cd gd-2.0.22
$ ./configure --with-png --with-freetype --with-jpeg --with-xpm
$ make
$ su
# make install
#
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
■PHP4.3.8
通常版
#./configure --with-apxs=/usr/local/apache/bin/apxs --with-pgsql=/usr/local/pgsql --with-mysql=/usr/local/mysql --enable-mbstring
GD付加版
#./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --enable-mbstring --enable-gd-native-ttf --with-gd=/usr/local --with-freetype-dir=/usr/local --with-jpeg-dir=/usr/local --with-zlib=/usr/local --with-png-dir=/usr/local
■PHP4.3.9(gd-2.0.28含む)
#make distclean
※cp /usr/local/src/gd-2.0.28/gd.h /usr/local/lib(エラーの場合)
#./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --enable-mbstring --enable-gd-native-ttf --with-gd --with-freetype-dir=/usr/local/lib --with-zlib-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib
DSOでインストール、日本語と
PostgreSQLを有効にしています。Apache 2.0では--with-apxsの代わりに--with-apxs2を指定する必要があります。
Apache2.0は、十分な検証はされてないため、E-PARLORでは、1.3.29 を利用する。
$ make
# /usr/local/apache/bib/apachectl stop
# make install
# /usr/local/apache/bin/apachectl startssl
phpinfo にて確認する。
Apacheの設定ファイル(conf/httpd.conf)に次の行を追加します。
AddType application/x-httpd-php .php
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
■PHP5.0.2(gd-2.0.28含む)
libxml2 が必要
libxml2-2.6.14 (2004.10.10)
#.configure
#make
#makeinstall
#make distclean
#./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --enable-mbstring --enable-gd-native-ttf --with-gd --with-freetype-dir=/usr/local/lib --with-zlib-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib
There are no comments on this page. [Add comment]