公升級gentoo碰到的幾個問題及解決辦法

2021-04-17 14:25:57 字數 1107 閱讀 7661

這兩天將gentoo公升級到了最新版本,公升級過程中碰到了一些問題,記下來以免遺忘。

公升級gentoo的方法:

先用 emerge –sync 更新portage資訊,然後用下面方法更新系統

emerge –update –deep –newuse world

emerge –depclean

revdep-rebuild

更新完畢後可能要執行 etc-update 來更新配置檔案。

更新後碰到的問題:

>=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就是方便!

本文**

mysql碰到的幾個問題

create table user username varchar 16 not null primary key,passwd char 16 not null,admin enum no yes not null 此表正確。create table user username varchar ...

c 碰到的幾個問題

這些問題都是沒有考慮到cpu和記憶體極限所引起來的。1 記憶體不夠時,new會引起異常 至少我電腦上vs2008是直接崩潰,而不是返回null 要返回null,如下使用 frame audio frame new std nothrow frame audio 或者 frame audio fram...

開發中碰到的幾個問題

1 碰到異常 servlet.service for servlet action threw exception org.springframework.dao.invaliddataaccessapiusageexception write operations are not allowed ...