Ok I think my previous post is lost,
sorry if this is repeated

I am trying to install Crypt::SSLeay on redhat9 machine
my problem is when i run Makefile.PL it detects openssl installed at /usr and ask me where to link it against.

perl Makefile.PL Found OpenSSL (version OpenSSL 0.9.6) installed at /usr Which OpenSSL build path do you want to link against? [/usr]

To this i tried to give it the path /usr/include/openssl
where my actual openssl folder is located but it returns me this.

Apparently no SSLeay installation at '/usr/include/openssl' Are you sure you got it correct???? ================================================ BUILD INFORMATION ================================================ ssl dir: /usr/include/openssl libraries: -lssl -lcrypto -lgcc -lRSAglue -lrsaref include dir: /usr/include/openssl/include -I/usr/kerberos/include ssl header: openssl/ssl.h ssl candidate: /usr/include/openssl; /usr/include/openssl/include ================================================ Note (probably harmless): No library found for -lgcc Note (probably harmless): No library found for -lRSAglue Note (probably harmless): No library found for -lrsaref Writing Makefile for Crypt::SSLeay

If i proceed with installation module installs but my https requests doen not work.
I learned from reading Makefile.PL that whatever path i supply it searches for
path supplied/include/ssl.h In my case ssl.h file is at /usr/include/openssl/ssl.h so i tried with editing the Makefile.PL and changed it to
path supplied/include/openssl/ssl.h and tried to reinstall though this time it finds SSLeay but doesnt find libraries.

perl Makefile.PL Found OpenSSL (version OpenSSL 0.9.6) installed at /usr Which OpenSSL build path do you want to link against? [/usr] ================================================ BUILD INFORMATION ================================================ ssl dir: /usr libraries: -lssl -lcrypto -lgcc -lRSAglue -lrsaref include dir: /usr/include -I/usr/kerberos/include ssl header: openssl/ssl.h ssl candidate: /usr; /usr/include/openssl; OpenSSL 0.9.6 ================================================ Note (probably harmless): No library found for -lgcc Note (probably harmless): No library found for -lRSAglue Note (probably harmless): No library found for -lrsaref Writing Makefile for Crypt::SSLeay

Also i found this in the README but couldnt understand completely as i dont know much of the linux so i moved on to installation directly .

When installing openssl make sure your config looks like: > ./config --openssldir=/usr/local/openssl or > ./config --openssldir=/usr/local/ssl If you are planning on upgrading the default OpenSSL libraries on a sy +stem like RedHat, not that I would recommend this, then you might try + something like: > ./config --openssldir=/usr --shared The --shared option to config will set up building the .so shared libr +aries which is important for such systems
anyway i tried as directed by moving to /usr/include/openssl and used the command
./config --openssldir=/usr --shared
but it fails like this
 ./config --openssldir=/usr --shared-bash: ./config: No such file or directory

Please help i am totally clueless

Thanks for all those replies .
Somehow i got it working now but it is behaving rather strangely.
In our local network i need to set HTTPS_PROXY='ip:port' then it connects and works fine but if i use the default method of LWP to set proxy it doesn't work.

And also i tried it on another server which is not connected through proxy (doesnt need proxy)then it wont work . but if i set $ENV{HTTPS_PROXY} to a value which our local network uses it works fine.

However the same module is installed on our production server (which also doesnt need proxy)and works fine without any need to set up HTTPS_PROXY variable.
Can someone please explain this behaviour or this is a bug or maybe i have made a mistake


In reply to Problem Installing Crypt::SSLeay by mohan123

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.