libcurl with libssh2 - one or more libs available at link-time are not available run-time

喜夏-厌秋 提交于 2019-12-06 11:10:54

The "libssh-dev" package is completely unrelated and unnecessary since it's a different library not used by libcurl nor libssh2.

The problem you face is probably that "make install" with libssh2 installs the library /usr/local/lib by default and you have not edited /etc/ld.so.conf to load libs from that directory. Edit the file and run ldconfig (both actions as root). Alternatively, install libssh2 into another directory that already is searched in by ld.so.

check while openssl installed successly?

openssl version

if not show version info, set openssl correctly for example:

ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1
ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1

and continue install curl, it work for me

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!