I'm trying to build curl with OpenSSL installed in a custom directory using the command
./configure PKG_CONFIG_PATH=/home/mosa/dev/Project-Linux/libs/openssl/lib/pkgconfig --disable-shared --enable-static --enable-ipv6 --with-ssl=/home/mosa/dev/Project-Linux/libs/openssl/
and it gives the error
configure: error: --with-ssl was given but OpenSSL could not be detected
OpenSSL is installed in: /home/mosa/dev/Project-Linux/libs/openssl/
Also openssl.pc in /home/mosa/dev/Project-Linux/libs/openssl/lib/pkgconfig has
prefix=/home/mosa/dev/Project-Linux/libs/openssl/
After reading the config.log file I found this part
configure:19430: checking OpenSSL linking with -ldl
configure:19447: gcc -o conftest -Werror-implicit-function-declaration -O2 -Wno-system-headers -I/home/mosa/dev/Project-Linux/libs/openssl/include -L/home/mosa/dev/Projectinux/libs/openssl/lib conftest.c -lz -lcrypto -ldl >&5
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
Notice the gcc command is ommiting the "-L" part in the path "Project-Linux".
curl version is: 7.70.0
uname -a: Linux mosa-Inspiron-3593 5.4.0-33-generic #37-Ubuntu SMP Thu May 21 12:53:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
I'm trying to build curl with OpenSSL installed in a custom directory using the command
./configure PKG_CONFIG_PATH=/home/mosa/dev/Project-Linux/libs/openssl/lib/pkgconfig --disable-shared --enable-static --enable-ipv6 --with-ssl=/home/mosa/dev/Project-Linux/libs/openssl/and it gives the error
configure: error: --with-ssl was given but OpenSSL could not be detectedOpenSSL is installed in:
/home/mosa/dev/Project-Linux/libs/openssl/Also openssl.pc in
/home/mosa/dev/Project-Linux/libs/openssl/lib/pkgconfighasprefix=/home/mosa/dev/Project-Linux/libs/openssl/After reading the config.log file I found this part
Notice the gcc command is ommiting the "-L" part in the path "Project-Linux".
curl version is: 7.70.0
uname -a: Linux mosa-Inspiron-3593 5.4.0-33-generic #37-Ubuntu SMP Thu May 21 12:53:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux