PHP52: Please update your ports tree and try again

Автор: | 17/12/2011
 

При попытке установить PHP 5.2 сборка остановилась с ошибкой:

# make install clean
===> NOTICE:

This port is deprecated; you may wish to reconsider installing it:
PHP 5.2 series is not supported anymore, migrate now.
It is scheduled to be removed on or after 2012-03-01.
===> php52-5.2.17_4 has known vulnerabilities:
=> php — NULL byte poisoning.
Reference: http://portaudit.FreeBSD.org/3761df02-0f9c-11e0-becc-0022156e8794.html
=> Please update your ports tree and try again.
*** Error code 1

Stop in /usr/ports/lang/php52.
*** Error code 1

Обновление портов не помогло, после выполнения:

# portsnap fetch update

сообщение об ошибке осталось. Как вариант, раз установить все-таки необходимо не смотря ни на что, выполнить установку так:

# DISABLE_VULNERABILITIES=yes make install clean

Уже когда установка началась – я нажал ctrl+C, и прервал установку. А при попытке запустить её вновь – получил такое сообщение об ошибке:

# make install clean
===> php52-5.2.17_4 depends on file: /usr/local/sbin/apxs – found
===> php52-5.2.17_4 depends on file: /usr/local/bin/autoconf-2.68 – found
===> php52-5.2.17_4 depends on executable: pkg-config – found
===> php52-5.2.17_4 depends on shared library: xml2.5 – found
===> Configuring for php52-5.2.17_4
rm: /usr/ports/lang/php52/work/php-5.2.17/configure: No such file or directory
*** Error code 1

Stop in /usr/ports/lang/php52.
*** Error code 1

Stop in /usr/ports/lang/php52.

Помогла очистка от промежуточных сборок и скачанных файлов:

# make clean

и

# make distclean