Operating System - HP-UX
1826420 Members
3070 Online
109692 Solutions
New Discussion

Batille: Error Could not load the 'Curses.pm' interface module.

 
SOLVED
Go to solution
Karl Balsmeier
Advisor

Batille: Error Could not load the 'Curses.pm' interface module.

I just installed Bastille and ran it for the first time, and got the following error:

root@pegasus:/opt/sec_mgmt/bastille/bin # ./bastille

NOTE: $DISPLAY not set. Attempting Curses interface.

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.

I am running this from command line, how would I go about rendering a fix?

-karlski
"Unix is the Net"
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Batille: Error Could not load the 'Curses.pm' interface module.

You probably need to install or reinstall Perl.

Here is a free version HP supports.


Perl which the above needs.
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=PERL


To reinstall just use the command line swinstall -x reinstall=true -s /location_of_depot \*

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Karl Balsmeier
Advisor

Re: Batille: Error Could not load the 'Curses.pm' interface module.

My other tools that use perl work fine. : )

-karlski
"Unix is the Net"
Bill Douglass
Esteemed Contributor
Solution

Re: Batille: Error Could not load the 'Curses.pm' interface module.

Many perl programs rely on modules which are not part of the standard perl distribution. HP-UX Bastille is one of those.

To tell if a module is available on your system, try the following:

perl -M -e 1

where is the module you are checking on. If you get a error, then you don;t have it in your default perl include path (whcih is displayed as part of the error messages).

If you do have it, it will return nothing.

In your case, try

perl -MCurses -e 1

If it barfs, then you either need to install the module in your current perl distribution (you can get it from CPAN, www.cpan.org) or install the HP-approved Perl depot that was referenced in an earlier message.
Jeff Schussele
Honored Contributor

Re: Batille: Error Could not load the 'Curses.pm' interface module.

Hi karlski,

Any reason why you couldn't just set your DISPLAY & run the GUI?

If you're running it locally:
export DISPLAY=localhost:0.0

If you're running remotely:
export DISPLAY=xxx.xxx.xxx.xxx:0.0
Of course use your workstation IP....

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Karl Balsmeier
Advisor

Re: Batille: Error Could not load the 'Curses.pm' interface module.

I actually installed the exact Perl specified by S. Protter cause he supplied the initial adive about security hardening in another forum question I had about sendmail.

I'll go look for that module on cpan, is there a command line to add it to perl?

I have perl5.6.1.E for 11.0 PA-RISC. : )

-karlski
"Unix is the Net"