Debian 6.0.5: 'cabal install curl' problem

Please help to solve a problem installing curl package ( http://hackage.haskell.org/package/curl/) on Debian 6.0.5. I am running the most recent Debian Haskell platform with GHC 6.12.1. I did: -> cabal update -> cabal install cabal-install It is interesting that in case you do again 'cabal update" you again get a suggestion from cabal to upgrade cabal-install, and this process never ends: """ -> cabal update Downloading the latest package list from hackage.haskell.org Note: there is a new version of cabal-install available. To upgrade, run: cabal install cabal-install """ Anyway, then I did: -> apt-get install curl -> cabal install curl Cabal fails to install 'curl' because it can not find curl library. Please see detailed cabal output at the end of this message. So my questions: 1) What is missing to install curl package? 2) Should I upgrade Debian GHC 6.12.1 to the latest GHC 7.4.2? Maybe this should solve the problem with 'cabal install'? Thanks! ---------- cabal install output ---------- -> cabal install curl Resolving dependencies... Configuring curl-1.3.7... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E configure: error: curl libraries not found, so curl package cannot be built See `config.log' for more details. cabal: Error: some packages failed to install: curl-1.3.7 failed during the configure step. The exception was: ExitFailure 1

Hi dokondr.
On Tue, Aug 14, 2012 at 11:23 AM, dokondr
Cabal fails to install 'curl' because it can not find curl library. Please see detailed cabal output at the end of this message.
Cabal means the curl C library, which must be installed by either the packages libcurl4-openssl-dev or libcurl4-gnutls-dev. If a situation like this happens again, you can search for candidate packages with: $ apt-cache search lib curl dev collectd-core - statistics collection and monitoring daemon (core system) libcurl4-gnutls-dev - Development files and documentation for libcurl (GnuTLS) libcurl4-openssl-dev - Development files and documentation for libcurl (OpenSSL) devscripts - scripts to make the life of a Debian Package maintainer easier libflickcurl-dev - C library for accessing the Flickr API - development files libghc6-curl-dev - GHC 6 libraries for the libcurl Haskell bindings liblua5.1-curl-dev - libcURL development files for the Lua language version 5.1 liblua5.1-curl0 - libcURL bindings for the Lua language version 5.1 libwww-curl-perl - Perl bindings to libcurl libcurl-ocaml-dev - OCaml libcurl bindings (Development package) python-pycurl-dbg - Python bindings to libcurl (debug extension) python-pycurl - Python bindings to libcurl tclcurl - Tcl bindings to libcurl php5-curl - CURL module for php5 Or, even better, use the aptitude interface and search (with /) for "lib curl dev", which will lead you directly to the right package in this case. Greetings. (...) -- marcot http://marcot.eti.br/

Marcot, Thanks for the detailed info! Looks like "aptitude install libcurl4-gnutls-dev" solved the problem. cheers, Dmitri On Tue, Aug 14, 2012 at 6:29 PM, Marco Túlio Pimenta Gontijo < marcotmarcot@gmail.com> wrote:
Hi dokondr.
On Tue, Aug 14, 2012 at 11:23 AM, dokondr
wrote: (...) Cabal fails to install 'curl' because it can not find curl library. Please see detailed cabal output at the end of this message.
Cabal means the curl C library, which must be installed by either the packages libcurl4-openssl-dev or libcurl4-gnutls-dev. If a situation like this happens again, you can search for candidate packages with:
$ apt-cache search lib curl dev collectd-core - statistics collection and monitoring daemon (core system) libcurl4-gnutls-dev - Development files and documentation for libcurl (GnuTLS) libcurl4-openssl-dev - Development files and documentation for libcurl (OpenSSL) devscripts - scripts to make the life of a Debian Package maintainer easier libflickcurl-dev - C library for accessing the Flickr API - development files libghc6-curl-dev - GHC 6 libraries for the libcurl Haskell bindings liblua5.1-curl-dev - libcURL development files for the Lua language version 5.1 liblua5.1-curl0 - libcURL bindings for the Lua language version 5.1 libwww-curl-perl - Perl bindings to libcurl libcurl-ocaml-dev - OCaml libcurl bindings (Development package) python-pycurl-dbg - Python bindings to libcurl (debug extension) python-pycurl - Python bindings to libcurl tclcurl - Tcl bindings to libcurl php5-curl - CURL module for php5
Or, even better, use the aptitude interface and search (with /) for "lib curl dev", which will lead you directly to the right package in this case.
Greetings. (...) -- marcot http://marcot.eti.br/

On Tue, Aug 14, 2012 at 10:23 AM, dokondr
Anyway, then I did: -> apt-get install curl -> cabal install curl Cabal fails to install 'curl' because it can not find curl library. Please see detailed cabal output at the end of this message.
Just as a general thing, almost all Linux distributions separate the runtime and development components of any package; if you need developer libraries, you need to install the -dev / -devel package corresponding to the runtime package. (I have never been convinced this actually accomplishes anything other than causing lots of support questions; any space that might be saved by not installing a bunhc of tiny headers and a symlink or two is then lost by having several GB of Gnome libraries in a basic install.....) -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms
participants (3)
-
Brandon Allbery
-
dokondr
-
Marco Túlio Pimenta Gontijo