这两天将gentoo升级到了最新版本,升级过程中碰到了一些问题,记下来以免遗忘。
升级Gentoo的方法:
先用 emerge –sync 更新portage信息,然后用下面方法更新系统
emerge –update –deep –newuse world
emerge –depclean
revdep-rebuild
更新完毕后可能要运行 etc-update 来更新配置文件。
更新后碰到的问题:
1、gentoo现在默认安装php5,修改办法,编辑/etc/portage/package.mask,增加
>=dev-lang/php-5
2、php安装方式变换,dev-php/mod_php被取消了,直接使用dev-lang/php来安装了。
3、php要安装在apache2的mpm-worker模式下的话,必须加上threads这个USE flags
4、php的mbstring扩展支持在gentoo下是用unicode这个USE flags
5、升级后,启动apache的时候出现以下出错信息:
~ # /etc/init.d/apache2 start
* Re-caching dependency info (mtimes differ)…
* Re-caching dependency info (mtimes differ)…
* Re-caching dependency info (mtimes differ)…
* Re-caching dependency info (mtimes differ)…
* Starting apache2 … [ ok ]
解决办法:
touch /etc/init.d/*
/sbin/depscan.sh –update
ok,一切搞定,gentoo就是方便!
本文转自
http://shunz.net/2006/06/gentoo_upgrade.html