LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2005, 02:15 AM   #1
njugs79
Member
 
Registered: Jan 2005
Posts: 37

Rep: Reputation: 15
Why Won't Net_SSLeay Install Successfully??


Hi al. I am trying to install dependencies for using SSL connections with SnortCenter. I downloaded Net_SSLeay.pm-1.21.tar.gz (from http://symlabs.com) and did the following to install it (but i got the errors as also shown):

[root@SnortSev2 snortinstall]# cp Net_SSLeay.pm-1.21.tar.gz /usr/src/redhat/SOURCES

[root@SnortSev2 snortinstall]# cd /usr/src/redhat/SOURCES

[root@SnortSev2 SOURCES]# ls
Net_SSLeay.pm-1.20 Net_SSLeay.pm-1.20.tar.gz Net_SSLeay.pm-1.21.tar.gz snort-2.0.0 snort-2.0.0.tar.gz

[root@SnortSev2 SOURCES]# tar -zxvf Net_SSLeay.pm-1.21.tar.gz


[root@SnortSev2 SOURCES]# cd Net_SSLeay.pm-1.21

[root@SnortSev2 Net_SSLeay.pm-1.21]# ls
Changes examples MANIFEST ptrcasttst.c QuickRef README.Win32 SSLeay.pm test.pl
Credits Makefile.PL Net-SSLeay-Handle-0.50 ptrtstrun.pl README RECIPE.Win32 SSLeay.xs typemap

[root@SnortSev2 Net_SSLeay.pm-1.21]# perl Makefile.PL
Checking for OpenSSL-0.9.6g or newer...
You have OpenSSL-0.9.7a installed in /usr
That's is newer than what this module was tested with (0.9.6g). You should
consider checking if there is a newer release of this module
available. Everything will probably work OK, though.
*** Could not figure out which C compiler was used to compile /usr/bin/openssl. It is essentiall that OpenSSL, perl, and Net::SSLeay are compiled with the same compiler and flags. Mixing and matching compilers is not supported. at Makefile.PL line 132.
Checking if your kit is complete...
Looks good
Checking if your kit is complete...
Looks good

Warning: I could not locate your pod2man program. Please make sure,
your pod2man program is in your PATH before you execute 'make'

Writing Makefile for Net::SSLeay::Handle

Warning: I could not locate your pod2man program. Please make sure,
your pod2man program is in your PATH before you execute 'make'

Writing Makefile for Net::SSLeay
[root@SnortSev2 Net_SSLeay.pm-1.21]# make install
Makefile:88: *** missing separator. Stop.
[root@SnortSev2 Net_SSLeay.pm-1.21]#

How can i get past this??? I did a search on the 'pod2man" and found that it was located in /usr/bin.

I am on RedHat 9.

Last edited by njugs79; 03-31-2005 at 09:50 AM.
 
Old 03-31-2005, 09:50 AM   #2
njugs79
Member
 
Registered: Jan 2005
Posts: 37

Original Poster
Rep: Reputation: 15
An update on the issue. After searching for a while i found some useful information on the following web page (http://archive.linuxvirtualserver.or.../msg00158.html) which basically advises as follows:

"
Your milage may vary but this is what I did to get Net::SSLeay installed and
running for use w/ ldirectord (in order to monitor/load balance https w/ IPVS)
on RH9.

Cheers,

James

=== Original Build Error

This was the original error I was getting when attempting to install
Net::SSLeay on RedHat 9:

<snip>
Checking for OpenSSL-0.9.6g or newer...
You have OpenSSL-0.9.7a installed in /usr
That's is newer than what this module was tested with (0.9.6g). You should
consider checking if there is a newer release of this module
available. Everything will probably work OK, though.
*** Could not figure out which C compiler was used to compile /usr/bin/openssl.
It is essentiall that OpenSSL, perl, and Net::SSLeay are compiled with the same
compiler and flags. Mixing and matching compilers is not supported. at Makefile.
PL line 132.
Checking if your kit is complete...
Looks good
Checking if your kit is complete...
Looks good

Warning: I could not locate your pod2man program. Please make sure,
your pod2man program is in your PATH before you execute 'make'

Writing Makefile for Net::SSLeay::Handle

Warning: I could not locate your pod2man program. Please make sure,
your pod2man program is in your PATH before you execute 'make'

Writing Makefile for Net::SSLeay
Makefile:88: *** missing separator. Stop.
</snip>

=== Minimal RH9 Packages

Make sure you have the following RH9 packages installed (or grab them via
up2date):

openssl-devel-0.9.7a-5.i386.rpm
openssl-0.9.7a-5.i686.rpm
krb5-libs-1.2.7-14.i386.rpm
krb5-devel-1.2.7-14.i386.rpm

up2date --nox openssl openssl-devel krb5-libs krb5-devel

=== Correct Your Locale

RH9 suffers from many of the same ills as RH8 when it comes to the broken
UTF8/unicode handling. My default locale is en_AU.UTF-8. This causes the
"missing pod2man" warnings above and results in the generation of a totally
broken makefile. Hence:

export LANG=C

See: https://bugzilla.redhat.com/bugzilla...g.cgi?id=87682

=== Build Net::SSLeay

Download Net_SSLeay.pm-1.22.tar.gz from:

http://search.cpan.org/author/SAMPO/Net_SSLeay.pm-1.22/
tar xvzf Net_SSLeay.pm-1.22.tar.gz

Download the leak patch for ldirectord from:

http://marc.theaimsgroup.com/?l=linu...6170206501&w=2

The leak patch here is for v1.21 of Net::SSLeay but patches clean against
v1.22:

cd Net_SSLeay.pm-1.22
patch -p1 < patchfile

Now fix the missing paths in Makefile.PL (line 167 or thereabouts to read):

INC => "-I /usr/kerberos/include -I$openssl_path/include
-I$openssl_path/inc32"

Now build Net::SSLeay (I like doing these as individual steps):

perl Makefile.PL (you will still get the mismatched compilers warning)
make test (make sure you have an internet connection handy)
make install

=== Update your ldirectord.conf for https

For example:

virtual = 10.10.2.5:443
real = 10.10.2.20:443 gate 5
real = 10.10.2.21:443 gate 5
service = https
scheduler = rr
protocol = tcp

=== Note on Mismatched Compiler Warnings

These stem from perl and OpenSSL being compiled with differing versions of
gcc! To get around this download the SSLeay 0.9.7b sources (from
http://www.openssl.org/) and build and compile into /usr/local/ssl. Then
repeat the above process for compiling Net::SSLeay.
"

I have so far downloaded openssl-0.9.7a-20.i386.rpm, openssl-devel-0.9.7a-20.i386.rpm, krb5-libs-1.2.7-14.i386.rpm and krb5-devel-1.2.7-14.i386.rpm. Installing these should not be a problem (i will just rpm -ivh ***).
My problem is the "export LANG=C" part of the instructions! How does a newbie go about this??
Then another thing, i followed the link for the leak patch and it lead me to some "text file" (am assuming its some code). So i copied and saved the text as "patchfile". So how does one exactly proceed at the bit that says


patch -p1 < patchfile

The rest of the instructions don't make any sense to me either (being a total newbie!!!). Any help is appreciated. Thanks
 
Old 04-01-2005, 06:58 AM   #3
njugs79
Member
 
Registered: Jan 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Net_SSLeay Installation Issue Solved.

Update on the issue.
I managaed to resolve the problem by editing the Makefile.PL "define section" FROM
(DEFINE => '-DPERL5', # perl-5.8/gcc-3.2 needs this) TO

(DEFINE => '-DPERL5 -DOPENSSL_NO_KRB5', # perl-5.8/gcc-3.2 needs this)}

After this, i just saved the changes and:

#perl Makefile.PL
#make install
 
Old 04-01-2005, 07:00 AM   #4
njugs79
Member
 
Registered: Jan 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Lightbulb Net_SSLeay Installation Issue Solved.

Update on the issue.
I managaed to resolve the problem by editing the Makefile.PL "define section" FROM
(DEFINE => '-DPERL5', # perl-5.8/gcc-3.2 needs this) TO

(DEFINE => '-DPERL5 -DOPENSSL_NO_KRB5', # perl-5.8/gcc-3.2 needs this)}

After this, i just saved the changes and:

#perl Makefile.PL
#make install

Good luck all.
 
Old 04-06-2005, 02:41 PM   #5
bighead00
LQ Newbie
 
Registered: Apr 2005
Posts: 2

Rep: Reputation: 0
Try the following command "export LANG=en_US" and then run the installation.

export LANG=en_US
perl Makefile.PL
make install

Last edited by bighead00; 04-06-2005 at 02:43 PM.
 
Old 04-07-2005, 02:24 AM   #6
njugs79
Member
 
Registered: Jan 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks for the reply. However i didi try that approach and it still gave me issues. However, i did manage to go about it another way as displayd on this thread.
 
  


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
successfully install deb packages without using alien pafinator11 SUSE / openSUSE 2 11-15-2005 07:58 PM
Why Won't Net_SSleay Install Correctly on RedHat9?? njugs79 Linux - Software 3 03-31-2005 10:20 AM
Did I successfully install Java? carlosinfl Linux - Software 11 03-13-2005 07:28 PM
Guide successfully install ATI video drivers seelk SUSE / openSUSE 2 02-05-2005 09:43 AM
successfully install kahakai? calvin_wang Fedora 0 03-28-2004 09:56 AM


All times are GMT -5. The time now is 02:25 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration