LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-10-2003, 06:10 PM   #1
chrisknight
Member
 
Registered: Jan 2003
Location: ohio
Distribution: CentOS7.6
Posts: 157

Rep: Reputation: 15
Angry cant get Bastille to run.


I have RH9/KDE3.1.
I have installed the perl-Curses RPM and perl-Tk from ATRPM RPM and also the Bastille RPM itself.
from:
http://www.bastille-linux.org/#get
and
http://www.bastille-linux.org/perl-rpm-chart.html
But when I pull up my bash shell & type "bastille" I get this output:

[root@cd1 root]# bastille
WARNING: /usr/bin/perl cannot find Perl module Tk.
The above module(s) is/are required to correctly display
the Bastille User Interface. If you are unable to find a
pre-compiled module for your OS, they can be found at:
http://www.cpan.org/modules/01modules.index.html
If you installed the modules in another installation of
perl besides the one listed in the error message, you may
override Bastille's search path by setting the
$CORRECT_PERL_PATH environment variable to the directory
that the desired perl binary is located in.

[root@cd1 root]#

I did install the Perl Module Tk.

What gives?

Last edited by chrisknight; 07-10-2003 at 08:32 PM.
 
Old 07-11-2003, 05:49 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Thanks for providing the package information to go with your question, that definately is a usefull approach. I am however not able to troubleshoot this question in a direct fashion, because it doesn not contain error messages or otherwise indication of what could be wrong.

Did you get any error messages during the install of the RPM's?
Did you set, or check, the CORRECT_PERL_PATH environment variable (as root, type "env") as offered?
Did you try accessing Bastille from a root console (not a terminal in X)?

//moderator.note: since you crossposted your message, and this not being a security issue but a software, I'm gonna transfer it to Linux - Software. Please do *not* crosspost.
 
Old 07-12-2003, 07:18 AM   #3
chrisknight
Member
 
Registered: Jan 2003
Location: ohio
Distribution: CentOS7.6
Posts: 157

Original Poster
Rep: Reputation: 15
OK...
I did not have any errors when installing the RPM's.
I changed /etc/inittab to run level 3 then rebooted...
I logged in at the prompt, typed "bastille" & got the exact same error message as the shell within X.
Changed the run level back to 5 with vi & ran "env" ... output:
[root@cdc1 root]# env
KDE_MULTIHEAD=false
SSH_AGENT_PID=2567
HOSTNAME=cdc1.redstarnetworks.com
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc:/root/.gtkrc-kde
GS_LIB=/root/.kde/share/fonts
USER=root
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36i=40;33:so=00;35:bd=40;33;01:cd=40;33;01r=01;05;37;41:mi= 01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00 ;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz =00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
SSH_AUTH_SOCK=/tmp/ssh-XXf9EtzI/agent.2507
SESSION_MANAGER=local/cdc1.redstarnetworks.com:/tmp/.ICE-unix/2652
USERNAME=root
KONSOLE_DCOP=DCOPRef(konsole-2701,konsole)
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
MAIL=/var/spool/mail/root
KONSOLE_DCOP_SESSION=DCOPRef(konsole-2701,session-1)
PWD=/root
INPUTRC=/etc/inputrc
XMODIFIERS=@im=none
LANG=en_US.UTF-8
GDMSESSION=Default
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=3
HOME=/root
BASH_ENV=/root/.bashrc
LOGNAME=root
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
COLORTERM=
XAUTHORITY=/root/.Xauthority
_=/bin/env
[root@cdc1 root]#

Pardon my ignorance, how do I set, or check, the CORRECT_PERL_PATH environment variable.
 
Old 07-12-2003, 08:30 AM   #4
chrisknight
Member
 
Registered: Jan 2003
Location: ohio
Distribution: CentOS7.6
Posts: 157

Original Poster
Rep: Reputation: 15
ok... I opened up the bastille script and found $CORRECT_PERL_PATH...
It says:

PERL_PATHS="$CORRECT_PERL_PATH /opt/perl/bin /usr/bin /bin $PARSED_PATH"

On my system, perl is in /usr/bin

So it is fine, right?
 
Old 07-12-2003, 10:01 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Yes, it is. Could you run "sh -x /usr/sbin/bastille -n 2>&1>/tmp/bast.log" from the commandline and look at it?
This will run the bastille Bash script in debug mode, not prompt for the disclaimer, and output both stdout and stderr into the file /tmp/bast.log. What we're looking for are Perl @INC include path errors. Also try supplying the "-c" for selecting Curses if you're in X, because it will detect X and select Tk automagically.

If you're not familiar with debugging Bash shell scripts, you can post /tmp/bast.log, it'll be about 60 lines.

Just to be complete, if you need to set CORRECT_PERL_PATH, then do "export CORRECT_PERL_PATH=/usr/bin", and to check it's set run env|grep ^CORR.
 
Old 07-12-2003, 01:45 PM   #6
chrisknight
Member
 
Registered: Jan 2003
Location: ohio
Distribution: CentOS7.6
Posts: 157

Original Poster
Rep: Reputation: 15
I pulled up bash in x and did a "bastille -c" and it fired right up with no problems.

Thanks.
 
Old 07-17-2003, 08:33 AM   #7
ktambascio
LQ Newbie
 
Registered: Jul 2003
Location: Ohio
Distribution: Redhat 9, Fedora Test 1, Fedora Test 2, Suse 9
Posts: 13

Rep: Reputation: 0
I'm having the same problem. I installed a Perl-Tk rpm, and there is a Tk.pm and TK directory in /usr/lib/perl5/5.8.0. Here is my bast.log: (This is Redhat 9)

+ export PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/kevin/bin
+ PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/kevin/bin
+ export PERL5LIB=:/opt/sec_mgmt/bastille/lib:/usr/lib/perl5/site_perl:/usr/lib/Bastille:/usr/lib/perl5/site_perl/5.6.0/i386-linux:/usr/lib/perl5/5.8.0:/usr/lib/perl5/vendor_perl
+ PERL5LIB=:/opt/sec_mgmt/bastille/lib:/usr/lib/perl5/site_perl:/usr/lib/Bastille:/usr/lib/perl5/site_perl/5.6.0/i386-linux:/usr/lib/perl5/5.8.0:/usr/lib/perl5/vendor_perl
+ set +o privileged
+ MIN_V_MAJ=5
+ MIN_V_MIN=005
++ echo /bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/kevin/bin
++ sed -e 's/:/ /g'
+ PARSED_PATH=/bin /usr/bin /usr/sbin /usr/local/bin /usr/bin /bin /usr/X11R6/bin /home/kevin/bin
+ PERL_PATHS=/usr/lib/perl5/5.8.0 /opt/perl/bin /usr/bin /bin /bin /usr/bin /usr/sbin /usr/local/bin /usr/bin /bin /usr/X11R6/bin /home/kevin/bin
+ ERRORWARN=WARNING:
+ ERRSPACES=
+ retval=0
++ PATH=/usr/bin:/bin
++ id -u
+ '[' 0 -ne 0 ']'
+ '[' -f /opt/sec_mgmt/bastille/bin/bastille ']'
+ '[' -f /usr/sbin/InteractiveBastille ']'
+ scripts_location=/usr/sbin
+ '[' '!' -x /usr/lib/perl5/5.8.0/perl ']'
+ FOUND=no
+ '[' '!' -x /opt/perl/bin/perl ']'
+ FOUND=no
+ '[' '!' -x /usr/bin/perl ']'
+ FOUND=yes
+ break
+ '[' yes = no ']'
++ /usr/bin/perl -version
++ head -2
++ sed -e 's/^v//'
++ grep '^[1-9]\.'
++ sed -e s/_/./
++ tr ' ' '\n'
+ PERL_VERSION=5.8.0
+ PERL_V_MAJ=5
+ PERL_V_NOTMAJ=8.0
+ PERL_V_MIN=8
+ PERL_V_PL=0
+ '[' 5 -eq 5 -a 8 -lt 005 -o 5 -lt 5 ']'
+ option_used=0
+ options_left=
+ runcmd=/usr/bin/perl /usr/sbin/InteractiveBastille
+ needx=yes
+ optarg=no
++ echo -n
++ grep -E '^-'
+ option_test=
+ '[' no = yes -a -z '' ']'
+ optarg=no
+ options_left= -n
+ '[' yes = yes ']'
+ missingmod=0
+ /usr/bin/perl -MTk
+ '[' 255 '!=' 0 ']'
+ retval=2
+ '[' 0 = 0 ']'
+ missingmod=1
+ echo 'WARNING: /usr/bin/perl cannot find Perl module Tk.'
WARNING: /usr/bin/perl cannot find Perl module Tk.
+ '[' 1 = 1 ']'
+ cat
The above module(s) is/are required to correctly display
the Bastille User Interface. If you are unable to find a
pre-compiled module for your OS, they can be found at:
http://www.cpan.org/modules/01modules.index.html
If you installed the modules in another installation of
perl besides the one listed in the error message, you may
override Bastille's search path by setting the
$CORRECT_PERL_PATH environment variable to the directory
that the desired perl binary is located in.


+ '[' 2 '!=' 0 ']'
+ exit 2

directory contents:

[root@fileserver 5.8.0]# pwd
/usr/lib/perl5/5.8.0
[root@fileserver 5.8.0]# ls
abbrev.pl Class filetest.pm newgetopt.pl tainted.pl
AnyDBM_File.pm complete.pl FindBin.pm NEXT Term
assert.pl constant.pm finddepth.pl NEXT.pm termcap.pl
Attribute CPAN find.pl open2.pl Test
attributes.pm CPAN.pm flush.pl open3.pl Test.pm
auto CPAN.pm.links ftp.pl open.pm Text
AutoLoader.pm ctime.pl getcwd.pl overload.pm Thread
AutoSplit.pm DB.pm Getopt perl5db.pl Thread.pm
autouse.pm Devel getopt.pl PerlIO Tie
B diagnostics.pm getopts.pl PerlIO.pm Time
base.pm Digest.pm Hash pod timelocal.pl
Benchmark.pm DirHandle.pm hostname.pl Pod Tk
bigfloat.pl dotsh.pl I18N pwd.pl Tk.pm
bigint.pl Dumpvalue.pm i386-linux-thread-multi Scalar Unicode
bigint.pm dumpvar.pl if.pm Search unicore
bignum.pm Encode importenv.pl SelectSaver.pm UNIVERSAL.pm
bigrat.pl English.pm integer.pm SelfLoader.pm User
bigrat.pm Env.pm IO Shell.pm utf8_heavy.pl
blib.pm exceptions.pl IPC shellwords.pl utf8.pm
bytes_heavy.pl Exporter less.pm sigtrap.pm validate.pl
bytes.pm Exporter.pm List sort.pm vars.pm
cacheout.pl ExtUtils Locale stat.pl vmsish.pm
Carp fastcwd.pl locale.pm strict.pm warnings
Carp.pm Fatal.pm look.pl subs.pm warnings.pm
CGI fields.pm Math Switch Win32.pod
CGI.pm File Memoize Switch.pm
CGI.pm.newcgi FileCache.pm Memoize.pm Symbol.pm
charnames.pm FileHandle.pm Net syslog.pl

Thanks,
Kevin
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bastille Sc0pE Linux - Software 0 05-22-2005 11:27 AM
Bastille! XLinux Linux - Security 1 02-23-2005 07:15 PM
Bastille Obie Mandriva 3 08-23-2004 06:43 AM
Bastille? BajaNick Linux - Security 3 08-08-2003 05:05 PM
Bastille? installed but cant get it to run. statuszero Linux - Software 3 06-24-2002 12:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration