星期日, 二月 24, 2008

懒桃儿一个不小心,移动硬盘里的所有东西都离他而去:三年来所有论文、照片、程序代码、软件、图稿、视频……
其中很多不可以再生的东西,伴随着很多美丽的记忆永远的消逝了。
为这个命运多舛的移动硬盘默哀!

--
Liu Lantao
College of Information Science and Technology, Beijing Normal University
EMAIL: liulantao ( at ) gmail ( dot ) com ;
WEBSITE: http://www.liulantao.com/ .
------

星期四, 二月 21, 2008

上元夜

京城上元夜

窗外的炮声渐平息,忙碌的年节就这样过去了。
放假一周之后才回家,开学一周之前就来到学校;而其实今年放假时间比往年早得多,开学时间也比往年晚得多。
成长的路上,总要离儿时的环境越来越疏远,即使父母欲言又止,不好意思挽留;即使在家里饭来张口肆意睡觉;即使没有功课与琐事的骚扰。这一站停靠之后,总要晃晃悠悠起航。
九岁的时候随父母进城,知道了上学的时候还需努力,要取得好分数才有面子,自己有面子,父母有面子,亲戚朋友也有面子;十八岁时出趟远门,一去近三载,其间悲欢喜乐,起起落落,渐渐已由大化小,由小化无,而那洗礼过之后留下的,至少还有一份平和的心境。
继续走啊走啊走,渐渐见到很多好人好事,渐渐听到很多新奇的东西,渐渐对世界有了更详细的看法,转眼又一个九年的终点也已不远。
三九之数,占去这辈子的三分之一;不远处,最火热的又一个三九之年要到来;九九归一,不要留下什么遗憾!


--
Liu Lantao
College of Information Science and Technology, Beijing Normal University
EMAIL: liulantao ( at ) gmail ( dot ) com ;
WEBSITE: http://www.liulantao.com/ .
------

星期一, 二月 04, 2008

FreeBSD邮件服务Postfix问题:“fatal: open database /etc/aliases.db”

FreeBSD邮件服务Postfix问题:"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数据库文件由Berkeley DB链接库维护。以上的消息意味着以下的几种情况之一:
E: * The existing file does not have the expected file format. The
cause is one of the following:
C: 已存在的文件没有期望的文件格式。原因为以下情况之一:
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所创建,而你正在使用版本2或3(反之亦然)。
E: o The file was written in "btree" format and Postfix
expects "hash" format (or vice versa).
C: 文件以"btree"格式写就,而Postfix需要"hash"格式(反之亦然)。
E: To fix the problem for Postfix execute the following command as root:
C: 欲为Postfix修正此问题,以root用户运行以下命令:
newaliases
E: This creates the aliases.db in the format that Postfix expects.
C: 这将以Postfix所期望的格式创建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: 或许问题恰好完全相反。如果运行newaliases的结果是一个空aliases.db文件,那么你可能遇到的是以下的问题。
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编译时包含了Berkeley DB版本X的文件,而为Berkeley
DB版本Y链接为目标库文件,而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: 解决此问题的方法是适当的安装Berkeley DB库。例如,Redhat版本7.0默认使用了Berkeley DB
版本3的目标库,却没有默认安装/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: 在一个适当安装好的系统中,包含文件<db.h>并且链接以-ldb选项将会利用Berkeley DB相同版本的库文件。

参考位置:http://www.postfix.org/faq.html#noalias

--
刘兰涛 Liu Lantao
北京师范大学信息科学技术学院 College of Information Science and Technology, Beijing
Normal University
EMAIL: liulantao ( at ) gmail ( dot ) com ;
WEBSITE: http://www.liulantao.com/ .
------