LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Having trouble installing libcurl on Debian (https://www.linuxquestions.org/questions/programming-9/having-trouble-installing-libcurl-on-debian-4175448232/)

kox444 02-01-2013 03:38 PM

Having trouble installing libcurl on Debian
 
I've downloaded libcurl from their site. Built and installed, however when I tried to compile an app I got:

In file included from /usr/local/include/curl/curl.h:34:0,
from curl-ip.cpp:1:
/usr/local/include/curl/curlbuild.h:151:9: error: 'socklen_t' does not name a type
In file included from /usr/local/include/curl/curl.h:35:0,
from curl-ip.cpp:1:
/usr/local/include/curl/curlrules.h:173:6: error: 'curl_socklen_t' was not declared in this scope
/usr/local/include/curl/curlrules.h:183:6: error: 'curl_socklen_t' was not declared in this scope

So I checked everything and I found that cmake found a lot of errors:
http://pastebin.com/cVX8n4eQ
Almost everything is "failed". ALso the required libs seem like windows libs. Is curl windows only?
Also I've tried a package from Debian repos and it is a big fail. I installed it and no libs. I opened the archive and there is only a doc or something, so the source is only option I think.

knudfl 02-02-2013 08:01 AM

Solution : # apt-get install curl libcurl3


curl-7.28 is a version for the future.
Available in "Debian experimental rc-buggy"
http://packages.debian.org/squeeze/libcurl3
→ → Squeeze, Wheezy, Sid, etc.



-

smallpond 02-02-2013 08:07 AM

libcurl comes with the curl command. I have a hard time believing there's no package for your Debian version. It's a standard Linux tool.
http://packages.debian.org/search?keywords=curl

Not sure why you are using cmake. The build instructions for curl say to use make. They are not compatible.

knudfl 02-02-2013 10:13 AM

1) cmake is OK for version 7.28 (The "automake" files are included too.)

2) The required development packages :
a) Squeeze (choices) : libcurl4-gnutls-dev, libcurl4-openssl-dev
b) Wheezy : libcurl4-gnutls-dev, libcurl4-nss-dev, libcurl4-openssl-dev

-

kox444 02-02-2013 05:39 PM

I have had libcurl3 already. But I don't know where the libraries and headers are at (but does libcurl3 alone have any includes?). I need to know where's the library installed from libcurl3 package, so I will link it and I will use the headers from the source.

knudfl 02-02-2013 08:32 PM

# 5 : "libcurl3" provides 'run time libraries' only.
Please use $ dpkg -L <package> , to see a file list : dpkg -L libcurl3
( /usr/lib/libcurl.so.3, /usr/lib/libcurl.so.4, /usr/lib/libcurl.so.4.2.0 )

The includes and other files required for app building are in the '-dev' packages:

libcurl4-gnutls-dev > http://packages.debian.org/squeeze/libcurl4-gnutls-dev
> File list > http://packages.debian.org/squeeze/i...s-dev/filelist

libcurl4-openssl-dev > http://packages.debian.org/squeeze/libcurl4-openssl-dev
> File list > http://packages.debian.org/squeeze/i...l-dev/filelist

-

kox444 02-03-2013 04:17 AM

I got it. It was in /usr/lib/usr/lib/x86_64-linux-gnu/libcurl.so.4 Thanks


All times are GMT -5. The time now is 04:04 AM.