Skip to content

Hint when compiling with another openssl library #2615

@VARGA-Peter

Description

@VARGA-Peter

I would like to provide an information which could be published in the installation manual in order to help others.

When curl is compiled with another openssl version than the system default it is often not possible to set the library path from the new openssl version in /etc/ld.so.conf because this may break the system.

In this case the configure script fails running conftest when it is using the openssl libraries with ./conftest: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory.

The only way in this case is to use the rpath linker option.

Solution:
Before running ./configure execute export LDFLAGS="-Wl,--rpath=/<path-to-correct-openssl-libraries>"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions