http://www.perlmonks.org?node_id=1025218


in reply to Re^2: Install LWP::Protocol::https
in thread Install LWP::Protocol::https

fatal error: openssl/ssl.h: No such file or directory

So do you have openssl headers/libraries installed? Where?

Replies are listed 'Best First'.
Re^4: Install LWP::Protocol::https
by edheim (Initiate) on Mar 26, 2013 at 23:11 UTC

    My linux skills are not that strong so please bear with me.

    I believe that OpenSSL is installed on Cygwin by default:

    Heim@Heim-PC ~ $ openssl version OpenSSL 1.0.1e 11 Feb 2013 Heim@Heim-PC ~ $ which openssl /usr/bin/openssl Heim@Heim-PC ~ $

    I'm not clear on where the file "openssl/ssl.h" should be found. Looking at the install instructions for Crypt::SSLeay, it looks like at least one environment variable is not set:"

    Heim@Heim-PC ~ $ echo $LD_LIBRARY_PATH Heim@Heim-PC ~ $

    What should the path be set to? Is there anything else that I need to do?

    Thanks, Edward

      I believe that OpenSSL is installed on Cygwin by default:

      Um, so when you use Windows+F "file finder" to search your cygwin directory, where do you find ssl.h?

      LD_LIBRARY_PATH

      forget about this, its got nothing to do with missing headers

        Sorry for not being clear: I didn't have the ssl.h header file. I found that I had to re-install Cygwin with the "OpenSSL development environment". I now find the header file at

        ./usr/include/openssl/ssl.h

        Are there any environment variables that I need to setup?

        Thanks, Edward