LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-13-2013, 07:46 AM   #1
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,017

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Shorewall won't install


I've been away from my Slackware64-current machine for a month and just ran the "slackpkg update/slackpkg upgrade-all" sequence. All went fine. Then noticed that there was a newer version of Shorewall available - 4.5.17.1. Installed the -core first without incident but when I run the install script for the main package I get -

Code:
root@missi:/data/patches/shorewall-4.5.17.1$ ./install.sh shorewallrc.slackware
Installing Slackware-specific configuration...
Compiling the Shorewall Perl Modules with Digest::SHA1
Can't locate Digest/SHA1.pm in @INC (you may need to install the Digest::SHA1 module) (@INC contains: /data/patches/shorewall-4.5.17.1/Perl /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 /data/patches/shorewall-4.5.17.1/Perl/Shorewall/Chains.pm line 31.
BEGIN failed--compilation aborted at /data/patches/shorewall-4.5.17.1/Perl/Shorewall/Chains.pm line 31.
Compilation failed in require at /data/patches/shorewall-4.5.17.1/Perl/Shorewall/Compiler.pm line 27.
BEGIN failed--compilation aborted at /data/patches/shorewall-4.5.17.1/Perl/Shorewall/Compiler.pm line 27.
Compilation failed in require at Perl/compiler.pl line 47.
BEGIN failed--compilation aborted at Perl/compiler.pl line 47.
ERROR: Shorewall 4.5.17.1 requires Perl which either is not installed or is not able to compile the Shorewall Perl code
       Try perl -c /data/patches/shorewall-4.5.17.1/Perl/compiler.pl
I then tried the suggested perl -c /data/patches/shorewall-4.5.17.1/Perl/compiler.pl and got the following -

Code:
root@missi:/data/patches/shorewall-4.5.17.1$ perl -c /data/patches/shorewall-4.5.17.1/Perl/compiler.pl
Can't locate Digest/SHA1111.pm in @INC (you may need to install the Digest::SHA1111 module) (@INC contains: /data/patches/shorewall-4.5.17.1/Perl /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 /data/patches/shorewall-4.5.17.1/Perl/Shorewall/Chains.pm line 31.
BEGIN failed--compilation aborted at /data/patches/shorewall-4.5.17.1/Perl/Shorewall/Chains.pm line 31.
Compilation failed in require at /data/patches/shorewall-4.5.17.1/Perl/Shorewall/Compiler.pm line 27.
BEGIN failed--compilation aborted at /data/patches/shorewall-4.5.17.1/Perl/Shorewall/Compiler.pm line 27.
Compilation failed in require at /data/patches/shorewall-4.5.17.1/Perl/compiler.pl line 47.
BEGIN failed--compilation aborted at /data/patches/shorewall-4.5.17.1/Perl/compiler.pl line 47.
root@missi:/data/patches/shorewall-4.5.17.1$
I have built perl and Digest::SHA1 from source and installed them but to no avail. Perl is definitely installed -

Code:
root@missi:/data/patches/shorewall-4.5.17.1$ perl -v

This is perl 5, version 18, subversion 0 (v5.18.0) built for x86_64-linux-thread-multi

Copyright 1987-2013, 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 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.org/, the Perl Home Page.
Does anyone have any pointers as to where the problem might lie???? Thanks in advance.
 
Old 06-14-2013, 06:56 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Are you SURE Digest::SHA1 is built and installed?
 
Old 06-15-2013, 02:21 AM   #3
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,017

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Yes it definitely is. What I've done now is to uninstall the perl package and then delete the bits that were left over in /usr/lib64/perl5/. Now when I try to install Shorewall I get -

root@missi:/data/patches/shorewall-4.5.17.1$ ./install.sh
Installing Slackware-specific configuration...
Compiling the Shorewall Perl Modules with Digest::SHA1
Perl API version v5.16.0 of Socket does not match v5.18.0 at /usr/share/perl5/XSLoader.pm line 92.
Compilation failed in require at /data/patches/shorewall-4.5.17.1/Perl/Shorewall/IPAddrs.pm line 30.
BEGIN failed--compilation aborted at /data/patches/shorewall-4.5.17.1/Perl/Shorewall/IPAddrs.pm line 30.
Compilation failed in require at /data/patches/shorewall-4.5.17.1/Perl/Shorewall/Zones.pm line 29.
BEGIN failed--compilation aborted at /data/patches/shorewall-4.5.17.1/Perl/Shorewall/Zones.pm line 29.
Compilation failed in require at /data/patches/shorewall-4.5.17.1/Perl/Shorewall/Chains.pm line 34.
BEGIN failed--compilation aborted at /data/patches/shorewall-4.5.17.1/Perl/Shorewall/Chains.pm line 34.
Compilation failed in require at /data/patches/shorewall-4.5.17.1/Perl/Shorewall/Compiler.pm line 27.
BEGIN failed--compilation aborted at /data/patches/shorewall-4.5.17.1/Perl/Shorewall/Compiler.pm line 27.
Compilation failed in require at Perl/compiler.pl line 47.
BEGIN failed--compilation aborted at Perl/compiler.pl line 47.
ERROR: Shorewall 4.5.17.1 requires Perl which either is not installed or is not able to compile the Shorewall Perl code
Try perl -c /data/patches/shorewall-4.5.17.1/Perl/compiler.pl

Clearly there is something left over from the old 5.16 installation. Will attempt to track it down-

Last edited by 3rensho; 06-15-2013 at 02:22 AM.
 
Old 06-15-2013, 02:34 AM   #4
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,017

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Got it sorted. Turns out there was some old Perl stuff in /usr/local/lib64/perl5 and the installer was using that version of Socket.pm. Removed all of that and the Shorewall install runs fine now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Using Rsyslog to redirect Shorewall messages but Shorewall is not a facility dman777 Linux - Software 3 06-22-2018 05:23 PM
shorewall config question with /etc/shorewall/rules peter72 Linux - Networking 3 01-01-2007 09:33 PM
After Installation Slackware Won't Boot & Lilo won't install nikiiliev Slackware - Installation 6 03-04-2006 12:24 AM
Fresh Install Mdk 10: Shorewall Blocks Net Access ColinM Linux - Newbie 1 12-09-2004 01:22 PM
SuSE problems; Mouse doesn't work, Wine won't install, WM won't install... Konig Linux - Distributions 1 01-21-2004 11:05 PM

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

All times are GMT -5. The time now is 04:40 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