スポンサーリンク


概要

  • DebianでPHP5のインストール時に
    # aptitude update
    # aptitude install php5 libapache2-mod-php5 php5-mysql php-pear php5-gd
    のようにすると
    Fatal error: Call to undefined function ImageRotate() in /home/hogehoge.php on line 198
    といったエラーが発生する。
  • GDライブラリのImageRotate()が使えないようなので、リビルドしてインストールする。

インストール

debian:~# cd /tmp/
debian:~# mkdir php5
debian:~# cd php5
debian:~# aptitude update
debian:~# apt-get build-dep php5
debian:~# sudo apt-get install devscripts
debian:~# sudo apt-get install fakeroot
debian:~# sudo apt-get install shtool
debian:~# apt-get source php5
debian:~# cd php5-5.2.0+dfsg/
debian:~# emacs debian/rules
--with-gd=shared,/usr --enable-gd-native-ttf \
↓
--with-gd=shared --enable-gd-native-ttf \
debian:~# debchange -i
debian:~# dpkg-buildpackage -rfakeroot
〜ここでしばらく、いや、かなり時間がかかる〜
debian:~# sudo dpkg -i ../*.deb
debian:~# dpkg -l
debian:~# /etc/init.d/apache2 restart

phpinfo

  • リビルド前
    gd-before.png
  • リビルド後
    gd-after.png

参考


ImageRotate GDライブラリ php5 使えない Debian エラー
Total:7252 / Today:1 / Yesterday:1


スポンサーリンク


添付ファイル: filegd-before.png 2202件 [詳細] filegd-after.png 2222件 [詳細]

トップ   差分 バックアップ リロード   一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2010-03-16 (火) 23:36:42