PHPを5.3にアップデートしました。しかし、gd拡張機能をインストールできません(freebsd 8.3で)
エラー行:
# cd /usr/ports/graphics/php5-gd/
# make install clean
===> php5-gd-5.3.11 depends on file: /usr/local/bin/phpize - found
===> php5-gd-5.3.11 depends on file: /usr/local/bin/autoconf-2.69 - found
===> php5-gd-5.3.11 depends on shared library: freetype.9 - found
===> php5-gd-5.3.11 depends on shared library: png.6 - not found
===> Verifying install for png.6 in /usr/ports/graphics/png
===> Returning to build of php5-gd-5.3.11
Error: shared library "png.6" does not exist
*** Error code 1
Stop in /usr/ports/graphics/php5-gd.
*** Error code 1
Stop in /usr/ports/graphics/php5-gd.
png libの更新とインストールを試みました
# cd /usr/ports/graphics/png/
# make deinstall
# cd make install clean
それから私は見ました:
100% tests passed, 0 tests failed out of 2
Total Test time (real) = 25.96 sec
===> Installing for png-1.5.10
===> Generating temporary packing list
===> Checking if graphics/png already installed
===> png-1.5.10 is already installed
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of graphics/png
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** Error code 1
Stop in /usr/ports/graphics/png.
*** Error code 1
Stop in /usr/ports/graphics/png.
*** Error code 1
Stop in /usr/ports/graphics/php5-gd.
*** Error code 1
Stop in /usr/ports/graphics/php5-gd.
ディレクティブ FORCE_PKG_REGISTER で開始すると、「"png.6" は存在しません」というメッセージが再度表示されます。私はそうしportupgrade
ましたが、それも役に立ちませんでした。このエラーを正しく回避する方法はありますか?