UPDATING

20100409:
 AFFECTS: users of lang/php5
 AUTHOR: ale@FreeBSD.org

 As of PHP 5.3, a few extensions were removed from or included into the core
 PHP5 package.  Follow the steps below to update your installation.

 1) Delete the following packages (if installed):

    - php5-dbase
    - php5-ncurses
    - php5-pcre
    - php5-spl
    - php5-ming
    - php5-mhash

 2) Rebuild lang/php5 and all ports that depend on it.

php5.3.3 の更新

blackcube# cp php.ini php.ini_20100818
blackcube# cd /usr/local/etc/php
blackcube# cp extensions.ini extensions.ini-20100818

http://blog.abacustech.co.jp/blogx/entry/32

devel/php5-pcre (port directory error)

by Engineer Z 2010/04/15 (木曜日) 使用タグ: freebsd, ports, update

PHP5のportupgrade中に

1. - devel/php5-pcre (port directory error)

が出たので、 /usr/ports/UPDATING を見ると、 php5-dbase php5-ncurses php5-pcre php5-spl php5-ming php5-mhash がコアになったから消して、php5と依存してるもの全部リビルドせいとのご指示。

1.# pkg_deinstall -f php5-dbase php5-ncurses php5-pcre php5-spl php5-ming php5-mhash
2.# portupgrade -f php5\*  [依存しているものたち...]

で無事完了。あとは一応php.iniを見直し。なお、php5に依存しているもの一覧はあらかじめ

1.# pkg_info -R /var/db/pkg/php5-5.*

あたりで取得。

portinstall databases/php5-mysql

===>  Building for php5-mysql-5.3.3
/bin/sh /usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/libtool --mode=compile cc  -I. -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/include -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/main -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/mysql  -DHAVE_CONFIG_H  -fno-strict-aliasing -pipe -O0   -c /usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/php_mysql.c -o php_mysql.lo
mkdir .libs
 cc -I. -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/include -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/main -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/mysql -DHAVE_CONFIG_H -fno-strict-aliasing -pipe -O0 -c /usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/php_mysql.c  -fPIC -DPIC -o .libs/php_mysql.o
In file included from /usr/local/include/php/main/../main/php_config.h:2824,
                 from /usr/local/include/php/Zend/zend_config.h:1,
                 from /usr/local/include/php/Zend/zend.h:51,
                 from /usr/local/include/php/main/php.h:34,
                 from /usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/php_mysql.c:32:
/usr/local/include/php/ext/php_config.h:2:29: error: ext/pcre/config.h: No such file or directory
/usr/local/include/php/ext/php_config.h:3:28: error: ext/spl/config.h: No such file or directory
*** Error code 1
1 error
*** Error code 1

Stop in /usr/ports/databases/php5-mysql.
--->  Installing the new version via the port
===>  Building for php5-mysql-5.3.3
/bin/sh /usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/libtool --mode=compile cc  -I. -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/include -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/main -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/mysql  -DHAVE_CONFIG_H  -fno-strict-aliasing -pipe -O0   -c /usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/php_mysql.c -o php_mysql.lo
 cc -I. -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/include -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/main -I/usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/mysql -DHAVE_CONFIG_H -fno-strict-aliasing -pipe -O0 -c /usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/php_mysql.c  -fPIC -DPIC -o .libs/php_mysql.o
In file included from /usr/local/include/php/main/../main/php_config.h:2824,
                 from /usr/local/include/php/Zend/zend_config.h:1,
                 from /usr/local/include/php/Zend/zend.h:51,
                 from /usr/local/include/php/main/php.h:34,
                 from /usr/ports/databases/php5-mysql/work/php-5.3.3/ext/mysql/php_mysql.c:32:
/usr/local/include/php/ext/php_config.h:2:29: error: ext/pcre/config.h: No such file or directory
/usr/local/include/php/ext/php_config.h:3:28: error: ext/spl/config.h: No such file or directory
*** Error code 1
1 error
*** Error code 1

Stop in /usr/ports/databases/php5-mysql.
*** Error code 1

Stop in /usr/ports/databases/php5-mysql.
===>  Cleaning for php5-mysql-5.3.3
blackcube# cd /usr/ports/databases/php5-mysql

/usr/local/include/php/ext/php_config.h

#include "ext/dba/config.h"
#include "ext/pcre/config.h"        ←削除
#include "ext/spl/config.h"        ←削除
#include "ext/pdo_sqlite/config.h"
#include "ext/xmlreader/config.h"
#include "ext/xmlrpc/config.h"

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS