Installation issues "Cannot find OpenSSL's libraries"

Issue #18 invalid
Anonymous created an issue

Got error during installation configure: error: Cannot find OpenSSL's libraries Solved this issue using magic rakes

root@server:# mkdir -p /usr/local/openssl/include/openssl/
root@server:# ln -s /usr/include/openssl/evp.h /usr/local/openssl/include/openssl/evp.h
root@server:# mkdir -p /usr/local/openssl/lib/
root@server:# ln -s /usr/lib/x86_64-linux-gnu/libssl.a /usr/local/openssl/lib/libssl.a
root@server:# ln -s /usr/lib/x86_64-linux-gnu/ /usr/local/openssl/lib/

But should be fix to install from box.

uname -a Linux node0 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux

Comments (2)

  1. Ruslan Osmanov repo owner

    The config script uses standard PHP M4 function PHP_SETUP_OPENSSL:

    The OpenSSL library installation path is detected by the following means: 1) pkg-config(Debian's self-titled package); if pkg-config is not installed, the script tries to detect the libraries by itself; 2) --openssl-dir configure option(points to the OpenSSL installation path or space/semicolon-separated paths); defaults to /usr/local/ssl /usr/local /usr /usr/local/openssl

    You haven't posted full output, so I guess that include checks passed, and the library path checks failed.

    Since pkg-config should normally succeed, I guess you have no pkg-config installed on that system.

    Debian's libssl-dev package installs the libraries into /usr/lib/x86_64-linux-gnu/, while the script searches for them in /usr/lib/. And this is correct, because a package manager should normally create links within trusted system directories: /lib, /usr/lib and /usr/lib64 by runing ldconfig command so the library could be found in standard paths.

    As it turns, you have no these links. I don't know why, maybe it's an OS package manager bug, or something. You might try to fix by runing ldconfig manually.

    Thus, the issue is not a PECL package bug.

  2. Log in to comment