07/01/18 18:10:18
--prefix=/usr/local でも --with-apxs(=/usr/sbin/apxs) なら libphp4.so は /usr/libexec/httpd に入るから影響するよ。
>>120
こんな感じでいけるはず。とりあえず make までは試した。
1. autoconf やら automake やらをインストール
2. PHP-4.4 系のソースコードを入手
3. tar xfj php-4.4.4.tar.bz2
4. cd php-4.4.4/ext/gd
5. /usr/bin/phpize
6. ./configure --with-php-config=/usr/bin/php-config --with-gd \
--with-jpeg-dir=/hoge --with-png-dir=/hoge --with-zlib-dir=/hoge --with-freetype-dir=/hoge
7. make
8. sudo make install
9. sudo cp /etc/php.ini.default /etc/php.ini
10. /etc/php.ini を編集
extension_dir = "./" をコメントアウト (行頭に ; を入れる)
extension=gd.so と一行追加
11. システム環境設定でパーソナルWeb共有を停止→開始
GD ライブラリはインストール不要っていうか PHP バンドル版の GD を使ったほうが使える関数が多いので configure でパスを指定しない。