itoigawabass

itoigawaのブログ

php gdインストール

2008-09-28

libjpegのインストール
tar zxfv jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure --enable-shared
make
libtoolがないといわれるので
vi config.status
s%@LIBTOOL@%/usr/bin/libtool%g
make
make install
make install-lib

libpngのインストール
tar zxfv libpng-1.2.32
cd libpng-1.2.32
./configure
make
make install

freetype2のインストール
tar zxfv freetype-2.3.7.tar.gz
cd freetype-2.3.7
./configure
make
make install

phpのインストール
cd php-5.2.6
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=/usr/local/bin/mysql_config --with-mysql=/usr/local/ --enable-mbstring --enable-mbregex --with-curl=/usr/local/ --with-curlwrappers --with-gd --with-jpeg-dir --with-png-dir --with-zlib --with-zlib-dir --with-freetype-dir --enable-gd-native-ttf --without-sqlite --disable-cgi --with-mcrypt
make
make install

phpのmake時にltdlがないといわれる
cd libmcrypt-2.5.8
cd libltdl
./configure --enable-ltdl-install
make
make install

カテゴリー:blog
タグ: