Chinaunix首页 | 论坛 | 博客
  • 博客访问: 14333654
  • 博文数量: 7460
  • 博客积分: 10434
  • 博客等级: 上将
  • 技术积分: 78178
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-02 22:54
文章分类

全部博文(7460)

文章存档

2011年(1)

2009年(669)

2008年(6790)

分类: BSD

2008-12-25 16:15:55

upgrade php 5.2.6到5.2.8的时候会遇到这样的问题:
*** Error code 1

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

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

Stop in /usr/ports/lang/php5.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.42275.0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=php5-pcre-5.2.6_2 UPGRADE_PORT_VER=5.2.6_2 make reinstall
---> Restoring the old version
pkg_add: warning: package 'php5-pcre-5.2.6_2' requires 'php5-5.2.8', but 'php5-pcre-5.2.6_2' is installed
** Fix the installation problem and try again.
[Updating the pkgdb
in /var/db/pkg ... - 62 packages found (-0 +1) . done]
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! lang/php5 (php5-pcre-5.2.6_2) (install error)

从5.2.7开始,pcre这个模块不再是独立的模块,因此需要这样解决:
# pkg_delete -f php5-pcre-5.2.6
# pkgdb -F
# portupgrade php5-pcre
如果用portmaster,则可以这样做:
# pkg_delete -f php5-pcre\*
# portmaster php5\*
如果要用pecl,那么需要把它也upgrade一下:
# portupgrade -f pecl\*
或者# portmaster pecl\*
还有这几个也需要:
# portupgrade -o archivers/php5-zip archivers/pecl-zip
# portupgrade -o devel/php5-json devel/pecl-json
# portupgrade -o security/php5-hash security/pecl-hash
或者这样:
# portmaster -o archivers/php5-zip archivers/pecl-zip
# portmaster -o devel/php5-json devel/pecl-json
# portmaster -o security/php5-hash security/pecl-hash
最后需要更新下ports的索引
# cd /usr/ports
# make index
阅读(4746) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~