Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Unable to install Crypt::SSLeay on Mac OS

by Anonymous Monk
on Oct 24, 2011 at 15:20 UTC ( [id://933426]=note: print w/replies, xml ) Need Help??


in reply to Unable to install Crypt::SSLeay on Mac OS

if you believe you found a bug, you should report it at the appropriate place (after first checking if it has already been reported): https://rt.cpan.org/Public/Dist/Display.html?Name=Crypt-SSLeay
  • Comment on Re: Unable to install Crypt::SSLeay on Mac OS

Replies are listed 'Best First'.
Re^2: Unable to install Crypt::SSLeay on Mac OS
by aixtal (Sexton) on Oct 24, 2011 at 16:58 UTC
    I am not sure it's a bug. It looks more like some version incompatibilty. (I din't find anything on Cpan nor Google nor superSearch)
      Can you get the module source code, and post the results of "perl Makefile.PL"? It sounds like the crypto or ssl libs are not being found, or not linked properly. Look for a message like "libcrypto not found....probably harmless".. :-)

      I'm not really a human, but I play one on earth.
      Old Perl Programmer Haiku ................... flash japh
        I am not sure this sheds any light, but as I was poking around with OpenSSL (which I was ready to reinstall), I found a PROBLEM file which says
        * System libcrypto.dylib and libssl.dylib are used by system ld on Mac +OS X. NOTE: The problem described here only applies when OpenSSL isn't b +uilt with shared library support (i.e. without the "shared" configurati +on option). If you build with shared library support, you will have +no problems as long as you set up DYLD_LIBRARY_PATH properly at all t +imes. This is really a misfeature in ld, which seems to look for .dylib libr +aries along the whole library path before it bothers looking for .a librarie +s. This means that -L switches won't matter unless OpenSSL is built with share +d library support. The workaround may be to change the following lines in apps/Makefile a +nd test/Makefile: LIBCRYPTO=-L.. -lcrypto LIBSSL=-L.. -lssl to: LIBCRYPTO=../libcrypto.a LIBSSL=../libssl.a It's possible that something similar is needed for shared library supp +ort as well. That hasn't been well tested yet. Another solution that many seem to recommend is to move the libraries /usr/lib/libcrypto.0.9.dylib, /usr/lib/libssl.0.9.dylib to a different directory, build and install OpenSSL and anything that depends on your build, then move libcrypto.0.9.dylib and libssl.0.9.dylib back to thei +r original places. Note that the version numbers on those two libraries may differ on your machine. As long as Apple doesn't fix the problem with ld, this problem buildin +g OpenSSL will remain as is. Well, the problem was addressed in 0.9.8f b +y passing -Wl,-search_paths_first, but it's unknown if the flag was supported from the initial MacOS X release.
        This is a little opaque to me I admit, but I guess that there is indeed a weird library problem on Mac OS.
        Well actually, it seems to find them. Perl Makefile.PL prompts me for confirmation -- and there is indeed the message "No library found for -lgcc"
        Crypt-SSLeay-0.58$ perl Makefile.PL ======================================================= Only one OpenSSL installation found at /usr Consider running 'perl Makefile.PL --default' the next time Crypt::SSLeay is upgraded to select this directory automatically thereby avoiding the following prompt. ======================================================= Which SSL install path do you want to use? [/usr] BUILD INFORMATION ================================================ ssl library: OpenSSL 0.9.8l in /usr ssl header: openssl/ssl.h libraries: -L/usr/lib -lssl -lcrypto -lgcc include dir: -I/usr/include ================================================ Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lgcc Writing Makefile for Crypt::SSLeay The test suite can attempt to connect to public servers to ensure that the code is working properly. If you are behind a strict firewall or have no network connectivity, these tests may fail (through no fault of the code). Do you want to run the live tests (y/N)? [N]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://933426]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-18 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found