运行bugzilla查看命令
perl ./checksetup.pl
的时候 报错:
Can't locate version.pm in @INC (@INC contains: . lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at Bugzilla/Install/Requirements.pm line 17.
BEGIN failed--compilation aborted at Bugzilla/Install/Requirements.pm line 17.
Compilation failed in require at ./checksetup.pl line 25.
BEGIN failed--compilation aborted at ./checksetup.pl line 25.
问题原因缺少perl的一些包,需要补充安装:
yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker -y
yum install perl-ExtUtils-Embed -y
perl 进入下载模式:
sudo perl -MCPAN -e shell
安装perl包可能出现环境信息不全的报错 此时安装这些包
libpq-dev
postgresql
libdbd-pg-perl
perl-DBD-Pg
libpq-dev