TESTLINK 1.8.3でグラフ表示しない。

TESTLINK1.7.14ではグラフ表示していたのだが、TESTLINK 1.8.3にアップデート後、グラフ表示しなくなった。
PHPのエラーを見てみると。

CentOS5の場合、PHPのエラーは httpd のエラーログに出力されています。
httpd のエラーログは
/var/log/httpd/error_log


[Tue Sep 08 19:09:56 2009] [error] [client 172.16.1.25] PHP Fatal error: Call to undefined function imageftbbox() in /var/www/html/testlink/third_party/pchart/pChart/pChart.class on line 2404

と出ている。

imageftbboxですか?PHPのマニュアルを引いてみると・・


imageftbbox
(PHP 4 >= 4.0.7, PHP 5)
imageftbbox — freetype2 によるフォントを用いたテキストを囲む箱を取得する

注意: この関数は、GD 2.0.1 以降を必要とします (2.0.28 以降を推奨します)。
注意: この関数は、PHPFreeType サポート (--with-freetype-dir=DIR) を有効にしてコンパイルされている場合のみ使用可能です。

ソースからコンパイルしなおしだ。


./configure --with-apxs2=/usr/sbin/apxs --enable-mbstring --with-mysql --with-mysqli --enable-pdo --with-pdo-mysql --with-gd --enable-gd-native-ttf --with-freetype-dir=/usr

んーconfigureがうまくいかん。 

http://www.yokada.net/blog/797を参考に

yum -y install freetype
yum -y install freetype-devel
追加する。


rpm -ql freetypeでパッケージのインストールディレクトリを確認する。


TESTLINK1.8.3のイベントを確認したら、ローカライズディレクトリの下にあるstrings.txtの最後の一行が空白行だった。PHPはこれがあるのね・・・

再び
./configure --with-apxs2=/usr/sbin/apxs --enable-mbstring --with-mysql --with-mysqli --enable-pdo --with-pdo-mysql --with-gd --enable-gd-native-ttf --with-freetype-dir=/usr

make clean
make
make install
でうまく表示される。