bastille找不到Curses.pm

我正在运行centos 6并安装了bastille的rpm版本,它找不到Curses.pm,但是perl-Curses已经安装,甚至perl都找不到它。

[root@server ~]# /usr/sbin/bastille -c ERROR: Couldn't determine Red Hat version! Setting to 9! ERROR: Couldn't determine Red Hat version! Setting to 9! NOTE: Using Curses user interface module. NOTE: Only displaying questions relevant to the current configuration. ERROR: Could not load the 'Curses.pm' interface module.This may be due to an invalid $DISPLAY setting,or the module not being visible to Perl. [root@server ~]# rpm -qa | grep Curses perl-Curses-1.28-1.el5.rf.x86_64 [root@server ~]# perl use Curses; Can't locate Curses.pm in @INC (@INC contains: /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 - line 1. BEGIN failed--compilation aborted at - line 1. 

任何想法,我应该看得更远…

[经过研究]:

我安装了perl-Curses-1.28-1.el6.rf.x86_64.rpm

现在工作的巴士底正在抱怨

 /usr/sbin/bastille -c ERROR: Couldn't determine Red Hat version! Setting to 9! ERROR: Couldn't determine Red Hat version! Setting to 9! NOTE: Using Curses user interface module. NOTE: Only displaying questions relevant to the current configuration. Can't locate Bastille/API/HPSpecific.pm in @INC (@INC contains: /usr/lib /usr/lib/perl5/site_perl/ /usr/lib/Bastille /opt/sec_mgmt/bastille/lib /opt/sec_mgmt/bastille/lib/API /usr/lib/perl5/site_perl /usr/lib/perl5/site_perl/5.6.0/i386-linux /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 /usr/lib/Bastille/IOLoader.pm line 8. BEGIN failed--compilation aborted at /usr/lib/Bastille/IOLoader.pm line 8. Compilation failed in require at /usr/sbin/InteractiveBastille line 414. 

Google是你和我的朋友。 在http://sourceforge.net/tracker/index.php?func=detail&aid=2767305&group_id=403&atid=100403find了这个条目

做了很多谷歌search和testing; 我的结论是,目前的版本(3.2.1 – 2008年9月25日 – Bastille-3.2.1-0.1.noarch.rpm)是不工作,除了可能是一个更具体的发行版(64位,惠普只?)。 该项目的新闻页面( http://bastille-linux.sourceforge.net/news_updates.htm )最后一个项目是“2007年9月12日:明天有一个发布 – 敬请关注”。 我猜杰伦已经不在身边了,惠普赞助的团队一直专注于他们的平台,而不是把这个软件包作为一个开放的解决scheme。 事实上(显然工作)较旧的版本(Bastille-3.0.9-1.0.noarch.rpm)不是(很容易?)在这里没有帮助。 以下是我在CentOS 5上所遵循的步骤:

从这里下载并安装3.2.1-0.1通过rpm -ivh yum install perl-Curses

巴士底 –

错误消息:无法find@INC中的Bastille / API.pm。 。 。

grep'd / usr / sbin / InteractiveBastille为“use lib”行,在/ usr / lib64而不是/ usr / lib中find了Bastille目录(包含API.pm),所以将它移动到/ usr / lib(也可以有符号链接或编辑IB脚本)

然后得到:不能findBastille / API / HPSpecific.pm

原来(如下所述)rpm和源代码包都没有“API”文件夹。

创build文件夹并使用wget从SCM存储库中检索文件: http : //bastille-linux.cvs.sourceforge.net/viewvc/bastille-linux/dev/working_tree/Bastille/Bastille/API/

然后得到“无法确定CentOS版本”。 有人声称以下是可行的,但并不是:

从CentOS发行版5(Final)将/ etc / redhat-release更改为:红帽企业Linux服务器版本5(Tikanga)

来自API目录中新脚本的更多错误,因此放弃了。 现在将尝试旧版本,可通过这里直接下载:

http://iweb.dl.sourceforge.net/sourceforge/bastille-linux/Bastille-3.0.9-1.0.noarch.rpm

国际海事组织这是没有办法来运行铁路,但因为我只是一个最终用户,而不是一个贡献者,我想我没有权利,B&M关于它。 在这个过程中,感谢那些把这么多时间和精力放在这个工具上的开发人员,看看代码是一个很好的学习经验。 希望未来能够与当前的发行版本保持同步。 。 。

我希望这篇文章可以节省他人浪费一些时间 – 反馈意见。