Subject: | openssl location not detected even if openssl.exe is on the path |
At least on Win32 with the Microsoft compiler, Makefile.PL fails to detect
the location of openssl, even if the applicable bin\openssl.exe is on
the path and all applicable lib and include dirs are also on the
relevant default paths for the compiler. So it prompts for the location.
The README file suggests putting the dir ABOVE bin, bin itself, include
and lib all on the main PATH, which is obviously wrong, for comparison,
a typical Linux/Unix system includes /usr/bin in PATH, but not /usr,
/usr/lib and /usr/include, and this practice applies on Win32 too.
A peek at the perl code in Makefile.PL indicates that only a short list
of unixish default locations are tried, $ENV{PATH} is not examined on
any OS,
which is probably the root cause of this problem. Also, the identified
or prospective locations are not tested for the existence of the include
and library files, only the openssl utility program.
The consequence of this minor issue is that when trying to build
Net::SSLeay "as is", manual interaction is needed to type in the
location (which would be the local equivalent of /usr or /usr/local from
a default Linux dist).