Развернул чистую freebsd 8.4, поднял последние свежие apache/php/mysql, перенес работающий сайт с кучей контента, убедился, что древний движок не работает по человечески с php 5.4, удалил php и пытаюсь поставить версию 5.2:
/usr/ports/lang/php52 # make install clean
- получаю такую простыню ошибок:
Код: Выделить всё
====> Compressing man pages (compress-man)
===> Installing for php52-5.2.17_13
===> Checking if lang/php52 already installed
===> Registering installation for php52-5.2.17_13
pkg-static: lstat(/usr/ports/lang/php52/work/stage/usr/local/bin/php): No such file or directory
pkg-static: lstat(/usr/ports/lang/php52/work/stage/usr/local/bin/php-cgi): No such file or directory
pkg-static: lstat(/usr/ports/lang/php52/work/stage/usr/local/bin/php-config): No such file or directory
pkg-static: lstat(/usr/ports/lang/php52/work/stage/usr/local/bin/phpize): No such file or directory
pkg-static: lstat(/usr/ports/lang/php52/work/stage/usr/local/etc/php.conf): No such file or directory
pkg-static: lstat(/usr/ports/lang/php52/work/stage/usr/local/etc/php.ini-dist): No such file or directory
.............
pkg-static: lstat(/usr/ports/lang/php52/work/stage/usr/local/include/php/): No such file or directory
pkg-static: lstat(/usr/ports/lang/php52/work/stage/usr/local/lib/php/build/): No such file or directory
pkg-static: lstat(/usr/ports/lang/php52/work/stage/usr/local/lib/php/): No such file or directory
*** Error code 74
Stop in /usr/ports/lang/php52.
/usr/ports/lang/php52-extensions # make
получаю вообще непонятное:
Код: Выделить всё
"/usr/ports/Mk/bsd.php.mk", line 378: Malformed conditional (${_USE_PHP_VER${PHP_VER}:Myes} != "")
"/usr/ports/Mk/bsd.php.mk", line 378: Malformed conditional (${_USE_PHP_VER${PHP_VER}:Mctype} != "")
"/usr/ports/Mk/bsd.php.mk", line 378: Malformed conditional (${_USE_PHP_VER${PHP_VER}:Mdom} != "")
"/usr/ports/Mk/bsd.php.mk", line 378: Malformed conditional (${_USE_PHP_VER${PHP_VER}:Mfilter} != "")
"/usr/ports/Mk/bsd.php.mk", line 378: Malformed conditional (${_USE_PHP_VER${PHP_VER}:Mhash} != "")
"/usr/ports/Mk/bsd.php.mk", line 385: if-less else
"/usr/ports/Mk/bsd.php.mk", line 397: if-less endif
"/usr/ports/Mk/bsd.php.mk", line 378: Malformed conditional (${_USE_PHP_VER${PHP_VER}:Miconv} != "")
"/usr/ports/Mk/bsd.php.mk", line 385: if-less else
"/usr/ports/Mk/bsd.php.mk", line 397: if-less endif
"/usr/ports/Mk/bsd.php.mk", line 378: Malformed conditional (${_USE_PHP_VER${PHP_VER}:Mjson} != "")
"/usr/ports/Mk/bsd.php.mk", line 385: if-less else
"/usr/ports/Mk/bsd.php.mk", line 397: if-less endif
..............
"/usr/ports/Mk/bsd.port.mk", line 1890: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 6566: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 6569: if-less endif
make: fatal errors encountered -- cannot continue
Может, как-нибудь поставить его через бинарные пакеты pkgng? Мне правда надо с модулями, но хоть бы как-нибудь поставить.
Как там должен называться пакет?
# pkg install lang/php5 - ставит 5.4
У меня установлены версии софта:
Код: Выделить всё
# pkg info
aide-0.15.1_1 Replacement and extension for Tripwire
ap24-mod_mpm_itk-2.4.7 This MPM allows you to run each vhost under a separate uid and gid
apache24-2.4.10 Version 2.4.x of Apache web server
apr-1.5.1.1.5.3_2 Apache Portability Library
autobackupmysql-1.4 Make daily, weekly, and monthly backups of your MySQL databases
autoconf-2.69 Automatically configure source code on many Un*x platforms
autoconf-wrapper-20131203 Wrapper script for GNU autoconf
bash-4.3.18_2 The GNU Project's Bourne Again SHell
bison-2.7.1,1 Parser generator from FSF, (mostly) compatible with Yacc
db41-4.1.25_4 The Berkeley DB package, revision 4.1
dialog4ports-0.1.5_2 Console Interface to configure ports
en-freebsd-doc-41380_1,1 Documentation from the FreeBSD Documentation Project
expat-2.1.0_1 XML 1.0 parser written in C
gettext-0.18.3.1_1 GNU gettext package
glib-2.36.3_3 Some useful routines of C programming (current stable version)
gmake-3.82_1 GNU version of 'make' utility
gmake-lite-3.82 Minimalist version of gnu make
help2man-1.43.3_1 Automatically generating simple manual pages from program output
indexinfo-0.2 Utility to regenerate the GNU info page index
libexecinfo-1.1_3 Library for inspecting program's backtrace
libffi-3.0.13_1 Foreign Function Interface
libiconv-1.14_3 Character set conversion library
libltdl-2.4.2_3 System independent dlopen wrapper
libmcrypt-2.5.8_1 Multi-cipher cryptographic library (used in PHP)
libslang2-2.2.4_6 Routines for rapid alpha-numeric terminal applications development
libssh2-1.4.3_2,2 Library implementing the SSH2 protocol
libxml2-2.9.1_1 XML parser library for GNOME
libyaml-0.1.6 A YAML 1.1 parser and emitter written in C
m4-1.4.17_1,1 GNU m4
mc-4.8.12_2 Midnight Commander, a free Norton Commander Clone
mhash-0.9.9.9_2 Easy-to-use library for strong hashes such as MD5 and SHA1
mysql51-client-5.1.73_1 Multithreaded SQL database (client)
mysql51-server-5.1.73_1 Multithreaded SQL database (server)
oniguruma4-4.7.1 BSDL Regular Expressions library compatible with POSIX/GNU/Perl
p5-Locale-gettext-1.05_3 Message handling functions
pcre-8.34_1 Perl Compatible Regular Expressions library
perl5-5.16.3_11 Practical Extraction and Report Language
pkg-1.3.3 Package manager
pkgconf-0.9.6 Utility to help to configure compiler and linker flags
png-1.5.18 Library for manipulating PNG images
portupgrade-2.4.12_1,2 FreeBSD ports/packages administration and management tool suite
python27-2.7.8 Interpreted object-oriented programming language
readline-6.3.6_1 Library for editing command lines as they are typed
rsync-3.1.1_2 Network file distribution/synchronization utility
ruby-1.9.3.484_2,1 Object-oriented interpreted scripting language
ruby19-bdb-0.6.6_3 Ruby interface to Oracle Berkeley DB revision 2 or later