- 论坛徽章:
- 0
|
我安装SpamAssassin的时候提示,出现如下错误:
Warning: I could not locate your pod2man program. Please make sure,your pod2man program is in your PATH before you execute 'make'
Pod2man我已经安装了,然后我又查到资料,说这可能是perl语言设置的问题,但安装Pod2man的时候怎么设置啊,在下是菜鸟啊,请高人指教。
下面是我查到的资料:
检查它的提示,我以为是perl的pod2man模块没装,但检查后的确是装着的,
是不是版本不够呢,我就再下载了一个最新版本的pod2man的模块安装,
再编译,还是通不过,出错信息照旧,我倒,我只能仔细去看安装文件,
平时我都不太喜欢看INSTALL说明的,一般很少有太多的帮助,浪费时间,
这下还真撞上了,原来这说明文件里已经有提示过了,我没看:
QUOTE
Note for Perl 5.8 Users (incl Red Hat 
----------------------------------------
Perl 5.8 now uses Unicode internally by default, which causes trouble for SpamAssassin (and almost all other reasonably complex pieces of perl code!).
We've worked around this in most places, as far as we know, but there may still be some issues. In addition, there is a speed hit, which it would be nice to avoid.
Setting the LANG environment variable before any invocation of SpamAssassin sometimes seems to help fix it, like so:
export LANG=en_US
Notably, the LANG setting must not include "utf8". However, some folks have reported that this makes no difference.
原来是语言环境变量的问题,设置好以后,再编译,一下是就通过了,原来根本就不是pod2man的问题,出错提示一点都不准。
最后,我再重启MailScanner,发现一切OK了,呵呵。本来以为十分钟就能搞定的工作,用了一小时才搞定,当然包括写本文的时间,呵呵。 |
|