- 論壇徽章:
- 0
|
前幾天自己的電腦老是出一個(gè)提示,后來(lái)看一篇介紹弄好了。現(xiàn)在把解決方法弄出來(lái)供大家參看。
FreeBSD郵件服務(wù)Postfix問(wèn)題:“fatal: open database /etc/aliases.db”
FreeBSD郵件服務(wù)Postfix問(wèn)題:"fatal: open database /etc/aliases.db"
http://www.liulantao.com/blogs/liulantao/ [Mon Feb 4 18:43:54 CST 2008]
E: What does "fatal: open database /etc/aliases.db" mean?
C: "fatal: open database /etc/aliases.db" 意味著什么?
E: DB files are maintained by the Berkeley DB library. The above
message means one of the following things:
C: DB數(shù)據(jù)庫(kù)文件由Berkeley DB鏈接庫(kù)維護(hù)。以上的消息意味著以下的幾種情況之一:
E: * The existing file does not have the expected file format. The
cause is one of the following:
C: 已存在的文件沒(méi)有期望的文件格式。原因?yàn)橐韵虑闆r之一:
E: o The file was created by Berkeley DB version 1 and you
are using version 2 or 3 (or vice versa).
C: 此文件由Berkeley DB版本1所創(chuàng)建,而你正在使用版本2或3(反之亦然)。
E: o The file was written in "btree" format and Postfix
expects "hash" format (or vice versa).
C: 文件以"btree"格式寫(xiě)就,而Postfix需要"hash"格式(反之亦然)。
E: To fix the problem for Postfix execute the following command as root:
C: 欲為Postfix修正此問(wèn)題,以root用戶運(yùn)行以下命令:
newaliases
E: This creates the aliases.db in the format that Postfix expects.
C: 這將以Postfix所期望的格式創(chuàng)建aliases.db。
E: * Or the problem could be something completely different. If
the result of running newaliases is a zero-length aliases.db file,
then you probably suffer from the following problem.
C: 或許問(wèn)題恰好完全相反。如果運(yùn)行newaliases的結(jié)果是一個(gè)空aliases.db文件,那么你可能遇到的是以下的問(wèn)題。
E: o Postfix was compiled with #include files for Berkeley
DB version X and was linked against object library files for Berkeley
DB version Y, where X and Y are different versions of the Berkeley DB
library.
C: Postfix編譯時(shí)包含了Berkeley DB版本X的文件,而為Berkeley
DB版本Y鏈接為目標(biāo)庫(kù)文件,而X與Y為Berkeley DB的不同版本。
E: The fix for this is to properly install the Berkeley DB
library. For example, RedHat version 7.0 uses the Berkeley DB version
3 object library by default, but no /usr/include/db.h file is
installed by default. In order to correctly build Postfix you must
install the db3-devel package.
C: 解決此問(wèn)題的方法是適當(dāng)?shù)陌惭bBerkeley DB庫(kù)。例如,Redhat版本7.0默認(rèn)使用了Berkeley DB
版本3的目標(biāo)庫(kù),卻沒(méi)有默認(rèn)安裝/usr/include/db.h文件。為了正確的建立Postfix,你必須安裝db3-devel文件包。
E: On a properly installed system, including the file <db.h> and
linking with -ldb should access files from the same Berkeley DB
library version.
C: 在一個(gè)適當(dāng)安裝好的系統(tǒng)中,包含文件<db.h>并且鏈接以-ldb選項(xiàng)將會(huì)利用Berkeley DB相同版本的庫(kù)文件。
參考位置:http://www.postfix.org/faq.html#noalias |
|