我的系统是RHEL6在安装配置邮件系统时,用extmail做web端。安装配置好之后。访问页面出现extmail Can't locate CGI.pm in @INC,后面跟着一大堆。总之是说找不到CGI的相关模块,我检查了配置文件和权限问题,没有什么地方不对。搞了半天有点抓狂了,以前在centos5上做也出现过累似问题,不过以前都是配置或者权限搞错了。
最后在一个英文网页上找到了答案,再次做一下记录。关键问题还是没有安装CGI解释器。
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 CGI
问题很简单应该是去CPAN网站下载CGI相关程序。在shell下执行:
#perl -e shell -MCPAN
# install CGI
装好之后终于能正常显示页面了。
呵呵写的有点乱,等我把整个的系统做完之后再归纳一下吧。
转载于:https://blog.51cto.com/qiufengy/555911