Installing and running LibCurl Library C Programs (UBUNTO 14.04)
Hi, I am new to Linux Programming and am studying the WROX Book "Professional Linux Programming".Chapter 5 (Network Programming), page 141 describes installation of libcurl libraries and using libcurl library functions in a simple program called getweb.c.
LibcURL used for Network Programming functions in the libcurl libraries. Supposed to be easier than using raw sockets. The 'socket' programming examples all worked brilliantly.
The installation of libcurl libraries 7.15.5 seemed to work using
$ tar -zxvf curl-7.15.5.tar.gz
cd curl-7.15.5
./configure
make
make test
make install (after logging back in as "root")
The getweb.c program compiled ok.
But.. when trying to run it I get:
"libcurl.so.4: cannot open shared object file: No such file or directory "
I modified the ld.so.config file (as 'root' user to save changes), but I am not sure whether just adding the line "include /usr/local/lib" beneath the existing one did anything. It still does not work and gives the same error message.
Can anyone help with this please?
Thank you.
Last edited by conrad143; 11-05-2011 at 03:06 PM.
Reason: spotted spelling mistake
|