作者:shunz,出处:http://shunz.net/2006/06/gentoo_upgrade.html
这两天将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就是方便!
2 条评论了已经
发表评论
字体为 粗体 是必填项目,邮箱地址 永远不会 公布。
允许部分 HTML 代码:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URIs must be fully qualified (eg: http://www.shunz.net/) and all tags must be properly closed.
超出部分系统将会自动分段及换行。
请保证评论内容是与日志或 Blog 内容相关的,灌水、攻击性或不恰当的评论 may 会被编辑或删除。













分类归档一名称:“房事记录”,好象用词不当;“房事”与性有关
嘿嘿,怎么这么没有幽默感呢