cURL / Mailing Lists / curl-library / Single Mail

curl-library

Linux libcurl build fails to find libssh2.so.1

From: Stephen Collyer <scollyer_at_netspinner.co.uk>
Date: Thu, 27 Mar 2008 14:18:19 +0000

1. I'm trying to build libcurl on Opensuse 10.3 with SSL
and SSH support, but it's failing during configure.

2. I have built and installed libssh2 into /usr/local/lib with
headers in /usr/local/include

3. I run configure like this:

$ configure --with-ssl --with-libssh2

i.e. leaving it to use the default location for libssh2.

4. This fails on the following test:

> configure:31393: gcc -o conftest -g -O2 conftest.c -lidn -lssh2 -lssl -lcrypto -lssl -lcrypto -ldl -lz -lz >&5
> configure:31396: $? = 0
> configure:31402: ./conftest
> ./conftest: error while loading shared libraries: libssh2.so.1: cannot open shared object file: No such file or directory

5. This is what I have in /usr/local/lib:

> $ ls -l /usr/local/lib/
> total 1232
> -rw-r--r-- 1 root root 752942 2008-03-27 13:47 libssh2.a
> -rwxr-xr-x 1 root root 843 2008-03-27 13:47 libssh2.la*
> lrwxrwxrwx 1 root root 16 2008-03-27 13:47 libssh2.so -> libssh2.so.1.0.0*
> lrwxrwxrwx 1 root root 16 2008-03-27 13:47 libssh2.so.1 -> libssh2.so.1.0.0*
> -rwxr-xr-x 1 root root 492501 2008-03-27 13:47 libssh2.so.1.0.0*

Can anyone see what I've screwed up ?

-- 
Regards
Steve Collyer
Netspinner Ltd
Received on 2008-03-27