LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-01-2013, 03:38 PM   #1
kox444
Member
 
Registered: Aug 2012
Posts: 112

Rep: Reputation: Disabled
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.
 
Old 02-02-2013, 08:01 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,927

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
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.



-

Last edited by knudfl; 02-02-2013 at 09:59 AM.
 
1 members found this post helpful.
Old 02-02-2013, 08:07 AM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 1,602

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
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.
 
Old 02-02-2013, 10:13 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,927

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
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

-
 
Old 02-02-2013, 05:39 PM   #5
kox444
Member
 
Registered: Aug 2012
Posts: 112

Original Poster
Rep: Reputation: Disabled
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.
 
Old 02-02-2013, 08:32 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,927

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
# 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

-

Last edited by knudfl; 02-02-2013 at 08:35 PM.
 
1 members found this post helpful.
Old 02-03-2013, 04:17 AM   #7
kox444
Member
 
Registered: Aug 2012
Posts: 112

Original Poster
Rep: Reputation: Disabled
I got it. It was in /usr/lib/usr/lib/x86_64-linux-gnu/libcurl.so.4 Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Trouble installing Debian v.6.0.5 citfta Debian 4 08-10-2012 05:52 PM
Installing and running LibCurl Library C Programs (UBUNTO 14.04) conrad143 LinuxQuestions.org Member Intro 3 11-06-2011 03:32 PM
libcurl.so.3 is needed, installing AMANDA onto RH Linux 4 koopa13 Linux - Newbie 4 06-04-2010 10:51 AM
Trouble installing Debian Sarge. duffmckagan Debian 15 10-20-2005 11:14 AM
Trouble installing Debian on Toshiba Tons of Fun Linux - Laptop and Netbook 3 07-25-2005 11:58 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration