php を久しく入れなおし

phpを使うことになり入れなおしました。
インストールは以前と同様の方法ですが今回のMakefileは以下のようにしました。

./configure \
--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--enable-mbstring \
--enable-mbsrt-enc-trans \
--enable-mbregex \
--enable-trans-sid \
--with-mysql=/usr/local/mysql \
--with-mysql-sock=/tmp/mysql.sock \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-zlib-dir=/usr/local/lib \
--with-png-dir=/usr/local/lib \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-gd=/usr/local/ \
--enable-gd-native-ttf \
--with-curl \
--with-mcrypt=/usr/local/lib

これ実行すると以下のサイトと同様にあれがないこれがないと
なりました。

違う点は

yum -y install libpng-devel
yum -y install freetype*
yum -y install gd*
yum -y install *mcrypt*
--with-gd=/usr/local/ではなく--with-gdに

で、ないものはgetしました。
しかしgd*は思いのほかいろんなものをインストールしてしまった。
gd-develとかでよかったかも(それだけでいいの分からないので何とも言えないけど)

参考になれば・・・*1
しかもgd.hがないとかもうね。。
やってるうちに気付きましたが前方後方一致でインストールした方がいいですね。
名前に規則性があるようですが、それでもこっちのほうが一発ではいる
でもgdはURL外さないとだめだった
そもそもwith-gdはdirじゃないのか?
まぁ知識の無さをひけらかすのは終わりにして無事に入ったので良しよする:-)


http://home.kendomo.net/diary.php/2004-01-13/2 :PHP のコンパイル --with-gd
http://www.yamada-lab.org/doc/linux/php5/index.html :Apache2.0+PHP5のインストール(Linux環境)
対応も同様にしました。

*1:Installed: gd-devel.i386 0:2.0.33-2 gd-progs.i386 0:2.0.33-2 gda-mysql.i386 1:1.2.0-5.2 gda-odbc.i386 1:1.2.0-5.2 gda-postgres.i386 1:1.2.0-5.2 gdeskcal.noarch 0:0.57.1-4 gdesklets.i386 0:0.35.4-1.fc4 gdk-pixbuf-devel.i386 1:0.22.0-18.fc4.2 gdk-pixbuf-gnome.i386 1:0.22.0-18.fc4.2 gdl.i386 0:0.8.11-2.fc4 gdome2.i386 0:0.8.1-4.fc4 gdome2-devel.i386 0:0.8.1-4.fc4
Dependency Installed: ImageMagick.i386 0:6.2.2.0-3.fc4.2 ImageMagick-c++.i386 0:6.2.2.0-3.fc4.2 ORBit.i386 1:0.5.17-15 ORBit-devel.i386 1:0.5.17-15 alsa-lib-devel.i386 0:1.0.10-3.FC4 audiofile-devel.i386 1:0.2.6-2 esound-devel.i386 1:0.2.36-0.fc4.1 fftw.i386 0:3.1.1-1.fc4 fontconfig-devel.i386 0:2.2.3-13 glib-devel.i386 1:1.2.10-16 gnome-libs.i386 1:1.4.1.2.90-46 gnome-libs-devel.i386 1:1.4.1.2.90-46 gnome-python2-gconf.i386 0:2.10.0-1 gsl.i386 0:1.6-2 gtk+-devel.i386 1:1.2.10-39 hdf5.i386 0:1.6.5-4.fc4 imlib-devel.i386 1:1.9.13-24 lasi.i386 0:1.0.5-2.fc4 libgda.i386 1:1.2.0-5.2 libjpeg-devel.i386 0:6b-34 libpng10.i386 0:1.0.18-2 libtiff-devel.i386 0:3.7.1-6.fc4.3 libtool-ltdl.i386 0:1.5.16.multilib2-3 libungif-devel.i386 0:4.1.3-3.fc4.2 libwmf.i386 0:0.2.8.3-8.2 mysqlclient10.i386 0:3.23.58-6 plplot.i386 0:5.6.1-3.fc4 postgresql-libs.i386 0:8.0.8-1.FC4.1 qhull.i386 0:2003.1-5.fc4 unixODBC.i386 0:2.2.11-3.FC4.1 xorg-x11-devel.i386 0:6.8.2-37.FC4.49.2.1
Complete!