upgrade php in Freebsd 9.2

While upgrade freebsd to 9.2, when I tried to upgrade php from 5.4.16 to 5.4.21, I got below error message:

===>   Registering installation for php5-5.4.21
pkg-static: lstat(/usr/ports/lang/php5/work/stage/usr/local/include/php/sapi/cli/): No such file or directory
pkg-static: lstat(/usr/ports/lang/php5/work/stage/usr/local/include/php/sapi/): No such file or directory
*** [fake-pkg] Error code 74

Stop in /usr/ports/lang/php5.
*** [install] Error code 1

Stop in /usr/ports/lang/php5.
*** [reinstall] Error code 1

According to Freebsd bug report (http://www.freebsd.org/cgi/query-pr.cgi?pr=183157), to fix this problem, we need to add NO_STAGE=yes into make.conf.

Leave a Reply

Your email address will not be published. Required fields are marked *