我将 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
- 但它也没有帮助。任何想法如何正确避免此错误?