个人系统是RHEL6在安装配置邮件系统时,用extmail作web端。安装配置好以后。访问页面出现extmail Can't locate CGI.pm in @INC,后面跟着一大堆。总之是说找不到CGI的相关模块,我检查了配置文件和权限问题,没有什么地方不对。搞了半天有点抓狂了,之前在centos5上作也出现过累似问题,不过之前都是配置或者权限搞错了。web
最后在一个英文网页上找到了答案,再次作一下记录。关键问题仍是没有安装CGI解释器。shell
You need to check if CGI.pm is actually installed.
Try
find / -name CGI.pm -print 2>/dev/null
as root user.
Depending on your system, one way to install it is
perl -e shell -MCPAN
then type
install CGIcentos
问题很简单应该是去CPAN网站下载CGI相关程序。在shell下执行:ide
#perl -e shell -MCPAN网站
# install CGIit
装好以后终于能正常显示页面了。class
呵呵写的有点乱,等我把整个的系统作完以后再概括一下吧。配置