2007年10月7日日曜日

PHP5.2.4+GD拡張

CentOS4.5

GD拡張をPHP5.2.4にインストールする際、下記の事項に注意すること
下記は、ld.so.conf.d内に/usr/libへのパスが無い為なのかもしれない。
  1. --with-freetype-dir=/usr/lib の指定
  2. --with-xpm-dir=/usr/lib の指定
  3. --with-jpeg-dir=/usr/lib の指定
  4. --with-gd の前に --with-jpeg-dir を指定すること
  5. 上記4は4.4での問題かもしれないが、念のため指定しておく
参考サイト
コンパイルオプション(動的モジュールの場合)
--with-php-config は適宜置き換えること

./configure --with-php-config=/usr/local/php524/bin/php-config --enable-gd-native-ttf --enable-gd-jis-conv --with-freetype-dir=/usr/lib --with-xpm-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-gd

0 件のコメント: