cURL / Mailing Lists / curl-library / Single Mail

curl-library

trying to link libcurl.so.4.2.0 directly in executable *.x

From: CHEN Xiaolei A <Xiaolei.a.Chen_at_alcatel-sbell.com.cn>
Date: Wed, 18 Aug 2010 11:34:18 +0800

Hello,
  
   After I succeeding in compiling libcurl-7.21.0, the "lib" directory
lists as follow:
   
  -rw-r--r-- 1 someone bjumts 1718756 Jul 1 17:42 libcurl.a
  -rwxr-xr-x 1 someone bjumts 1166 Jul 1 17:42 libcurl.la
  lrwxrwxrwx 1 someone bjumts 16 Jul 1 17:42 libcurl.so ->
libcurl.so.4.2.0
  lrwxrwxrwx 1 someone bjumts 16 Jul 1 17:42 libcurl.so.4 ->
libcurl.so.4.2.0
  -rwxr-xr-x 1 someone bjumts 1384988 Jul 1 17:42 libcurl.so.4.2.0
  drwxr-xr-x 2 someone bjumts 4096 Jul 1 17:42 pkgconfig

 And under my design environment, I only use actual dynamic
lib(libcurl.so.4.2.0). I wrote a demo program, it can compile and link
successfully.
But before executing it, I use "ldd" command, it displays as follow:
> ldd FTPSession.x
        libcurl.so.4 => (file not found)
        libssh2.so.1 => (file not found)
        libldap.so.5 => /usr/lib/libldap.so.5
        librt.so.1 => /lib/librt.so.1
        ......
so when the program is begin execution, the name it want to find to load
dynamic lib is libcurl.so.4 -it's a symbol link refer to actual dynamic
lib(libcurl.so.4.2.0). But I don't need that, I hope the name it want to
find is libcurl.so.4.2.0.

My question is:

1) What should I do? If I need only actual dynamic
lib(libcurl.so.4.2.0) after compiling and installing, and when executing
a program, it can find actual dynamic lib name(libcurl.so.4.2.0), not
the symbol link libcurl.so.4?

2) As we known, libcurl compiling is depending on libssh2, so for my
question 1), Is there any change when compiling libssh2?

3) Does libcurl provide some interfaces to download a whole directory
recursively from a FTP server?

Thank you for your answer in advanced.

Regards,

Atlantis

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-08-18