Страница 1 из 1

обновить PHP до версии 5.3.15

Добавлено: 2012-08-13 14:51:57
pin
Всем доброго времени суток!
Имеется сервер на FreeBSD 8.2 в состоянии крайней запущенности по актуальным версиям софта. После обновления дерева портов задумался, как обновить php до 5.3.15 ибо часть приложений на 5.4.xx работать категорически отказываются (ну, кто бы сомневался :ROFL: ).
Использовать:

Код: Выделить всё

portupgrade -Rf php5-\*
нельзя, ибо

Код: Выделить всё

pkg_version -v -L=
php5-5.3.10                         <   needs updating (port has 5.4.5)
php5-bz2-5.3.10                     <   needs updating (port has 5.4.5)
php5-ctype-5.3.10                   <   needs updating (port has 5.4.5)
php5-dom-5.3.10                     <   needs updating (port has 5.4.5)
php5-extensions-1.6                 <   needs updating (port has 1.7)
php5-filter-5.3.10                  <   needs updating (port has 5.4.5)
php5-gd-5.3.10                      <   needs updating (port has 5.4.5)
php5-hash-5.3.10                    <   needs updating (port has 5.4.5)
php5-iconv-5.3.10                   <   needs updating (port has 5.4.5)
php5-json-5.3.10                    <   needs updating (port has 5.4.5)
php5-mbstring-5.3.10                <   needs updating (port has 5.4.5)
php5-mcrypt-5.3.10                  <   needs updating (port has 5.4.5)
php5-mysql-5.3.10                   <   needs updating (port has 5.4.5)
php5-mysqli-5.3.10                  <   needs updating (port has 5.4.5)
php5-openssl-5.3.10                 <   needs updating (port has 5.4.5)
php5-pdo-5.3.10                     <   needs updating (port has 5.4.5)
php5-pdo_sqlite-5.3.10              <   needs updating (port has 5.4.5)
php5-phar-5.3.10                    <   needs updating (port has 5.4.5)
php5-posix-5.3.10                   <   needs updating (port has 5.4.5)
php5-session-5.3.10                 <   needs updating (port has 5.4.5)
php5-simplexml-5.3.10               <   needs updating (port has 5.4.5)
php5-sqlite3-5.3.10                 <   needs updating (port has 5.4.5)
php5-tokenizer-5.3.10              <   needs updating (port has 5.4.5)
php5-xml-5.3.10                     <   needs updating (port has 5.4.5)
php5-xmlreader-5.3.10               <   needs updating (port has 5.4.5)
php5-xmlwriter-5.3.10               <   needs updating (port has 5.4.5)
php5-zip-5.3.10                     <   needs updating (port has 5.4.5)
php5-zlib-5.3.10                    <   needs updating (port has 5.4.5)
...и соответственно пытается обновиться до 5.4.xx со всеми вытекающими :cz2:

Код: Выделить всё

portupgrade -fo lang/php53 lang/php5
приводит к

Код: Выделить всё

** Detected a package name change: php5 (lang/php5) -> 'php53' (lang/php53)
--->  Upgrading 'php5-5.3.13' to 'php53-5.3.15' (lang/php53)
--->  Building '/usr/ports/lang/php53'
===>  Cleaning for php53-5.3.15

===>  php53-5.3.15 conflicts with installed package(s):
      php5-5.3.13

      They install files into the same place.
      You may want to stop build with Ctrl + C.
===>  Found saved configuration for php53-5.3.15

===>  php53-5.3.15 conflicts with installed package(s):
      php5-5.3.13

      They will not build together.
      Please remove them first with pkg_delete(1).
*** Error code 1

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

Stop in /usr/ports/lang/php53.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20120813-71531-10eniwg-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=php5-5.3.13 UPGRADE_PORT_VER=5.3.13 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! lang/php53 (php5-5.3.13)      (unknown build error)
в /etc/make.conf прописано DEFAULT_PHP_VERSION=53
Куда копать?

Re: обновить PHP до версии 5.3.15

Добавлено: 2012-09-02 2:36:48
Electronik
идём в /usr/ports/lang/php53 и делаем
make
потом в идём в /usr/ports/lang/php53-extensions и тоже делаем
make
потом делаем pkg_delete -f php5-\*
после в /usr/ports/lang/php53 и /usr/ports/lang/php53-extensions делаем
make install && make clean