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