Operating System - HP-UX
1833330 Members
2929 Online
110051 Solutions
New Discussion

Bastille Installation Problem.

 
Ranjith_5
Honored Contributor

Bastille Installation Problem.

Hi All,

Its failing continuously..fed up here.It says dependency problems in perl.

I installed perl from

http://hpux.connect.org.uk/ftp/hpux/Languages/perl-5.8.5/perl-5.8.5-sd-11.11.depot.gz

as well as from

http://download.software.hp.com/downloads/perl_D.5.8.2.B_HP-UX_B.11.11_32+64.depot?ordernumber=360442505&itemid=1&downloadid=3130400&merchantId=SW_DEPOT

Attached the log file.

Any inputs?

regards,
Syam
13 REPLIES 13
Sunil Sharma_1
Honored Contributor

Re: Bastille Installation Problem.

check which perl it is using I think you have more then one version of Perl installed on your system.

check version with perl -V should be 5.8


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Ranjith_5
Honored Contributor

Re: Bastille Installation Problem.

Thanks yaar..

See the difference. perl -v gives the following output.At the same time when I give #swlist |grep perl gives different version.

SRV#perl -v

This is perl, version 5.005_02 built for PA-RISC1.1

Copyright 1987-1998, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.



SRV#swlist |grep perl
perl 5.8.5 perl



what to do now..

regards,
Syam
Sunil Sharma_1
Honored Contributor

Re: Bastille Installation Problem.

find / -name perl -print

#which perl

change the PATH variable and put the entry for perl 5.8 version before perl 5.6

perl version 5.8 will be in /opt directory.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
T G Manikandan
Honored Contributor

Re: Bastille Installation Problem.

Inlcude the path of the latest version installed perl in the PATH variable like

export PATH=/perl5.8.1/bin:$PATH

Initiate swinstall again.

Ranjith_5
Honored Contributor

Re: Bastille Installation Problem.

Hi

I removed the entry of old installation directory and put new dir as /usr/local/bin where my perl 5.8.5 was found. perl -v shows the latest version..still bastille installation fails.


gives this message.

/var/adm/sw/swagentd.log" 6479 lines, 325115 characters
NOTE: The target "/tmp/bastille.depot" currently open for reading is
a tape. pid=20590 02/02/05 14:50:10 IST
* Agent pid=20590 completed. 02/02/05 14:50:55 IST
* Agent pid=20539 completed. 02/02/05 14:50:56 IST
* Started install agent on "/" for root@trn.etcs.com, pid=20861,
02/02/05 14:51:27 IST
* Started source agent on "/tmp/bastille.depot" for
root@trn.etcs.com, pid=20878, 02/02/05 14:51:28 IST

regards,
Syam
T G Manikandan
Honored Contributor

Re: Bastille Installation Problem.

Try re-starting swagentd

#/usr/sbin/swagentd -r

if still the problem persists,

explore the depot to a temp dir and try installing using swinstall

mkdir /tmp/bastille
cd /tmp/bastille
tar -xvf /tmp/bastille/
T G Manikandan
Honored Contributor

Re: Bastille Installation Problem.

Also let me know as whether the depot file is placed locally or on a nfs file system.
Robert Fritz
Regular Advisor

Re: Bastille Installation Problem.

Hi there,

I'm sorry you're having trouble. I'm on the Bastille team, and think I see the core problem:

From the attached log, Bastille is complaining that you don't have the HP-tested version of Perl installed.

You're swlist output bears this out, and refers to the first, unsupported depot. If you had the official package you refer to above (the second one) installed, you'd see:

# swlist | grep perl
perl D.5.8.2.B Perl Programming Language
(spaces omitted).

The first package you reference (the one you'd installed) is not an HP-tested package, and won't meet the dependency.

I'd recommend removing the unofficial package, and installing the supported one.

Alternatively, you could try:
swinstall -x enforce_dependencies=false Bastille

to force Bastille to install and try to use the unofficial Perl. It would probably would work, but I can't be sure since its not official, not supported, and I've never tested it.

Hope that helps,
-Robert


PS: I'd also like to add that the suggestions to alter the path won't help with your current problem as your current problems are at installation, not at run time, when the perl path matters.
Those Who Would Sacrifice Liberty for Security Deserve Neither." - Benjamin Franklin
Steven E. Protter
Exalted Contributor

Re: Bastille Installation Problem.

Based on the Bastille team.

I would install the depot version of perl from the software.hp.com site.

I would make sure the PATH has that Perl on it before any other versions.

I would swinstall.

I think perl has a newer version than the one you posted.

I recently discovered a copy of perl 4 in /usr/contrib/bin

I always knew it was there but did a -v on it and discovered it was v4 and in wide use on my system by myself and users.

So this needs to be dealt with.

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
Ranjith_5
Honored Contributor

Re: Bastille Installation Problem.

Hi all,

Thanks a lot for your valuable suggestions. I checked all the possibilities that is there in your inputs.

I have got several HP9000 machines..I could find one machine on which perl version D.5.8.2.B is installed. I face the same problem here also during bastille installation.

pls see the attached log file.

Thanks once again.

Regards,
Syam
Ranjith_5
Honored Contributor

Re: Bastille Installation Problem.

Hi all,


Im sorry

Log file here please..


regards,
Syam
Sunil Sharma_1
Honored Contributor

Re: Bastille Installation Problem.

Hi Syam,

In this server also you have same problem, Your active perl version is 5.6 not 5.8 (HP Product).

You please find out all perl executable files in yuor system using find comamnd and then remove all those perl verson. I believe you have some other version of perl is installed on system not through swinstall that's why that version in not coming in swlist output.


Just see the output of command #which perl in my system

test123:[/root]# whereis perl
perl: /usr/local/bin/perl /usr/local/bin/perl5.00503 /usr/contrib/bin/perl /opt
perl/bin/perl /usr/local/man/man1/perl.1 /opt/perl/man/man1/perl.1

this shows i have 3-4 version of perl in my system. now let's see which one is active
test123:[/root]# which perl
/opt/perl/bin/perl

but system uses this perl for any installation. version of this perl is 5.6

test:[/root]# perl -v

This is perl, v5.6.1 built for PA-RISC1.1-thread-multi
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2001, Larry Wall

Binary build 627 provided by ActiveState Tool Corp. http://www.ActiveState.com
Built 21:42:53 Jun 20 2001


Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

now see what swlist shows

test123:[/root]# swlist|grep -i perl
5.8.2-0 CSC Perl 5.8.2 - Practica
l Extraction and Reporting Language


installed version is perl 5.8

same case is yours so please install all other version of perl except 5.8 and then try to install your s/w

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Ranjith_5
Honored Contributor

Re: Bastille Installation Problem.

Hi Friends..

Thanks to all for your valuable responses. The problem is resolved after 5-6 hrs trials.

I did the following:-

Perl version D.5.8.2.B_HP-UX_B.11.11 is installed.No other versions are working it seems. Only the perl versions ending with ".B" is working here. No idea why? I dont have idea about what does it really mean (I see there are different versions like B,C,D,E etc for perl).

After installation PATH variable was changed according to the new installation directory of perl, and entry for the old directory was removed.

created a soft link for perl executable to /usr/bin.

Now I am able to execute bastille from the shell prompt and do system hardening.

Closing the thread.

regards,
Syam