Thursday, 14 March 2013

[SOLVED] curl-config issue installing esniper on Ubuntu 12.04 Precise Pangolin


I recently installed esniper on Ubuntu 12.04 LTS (Precise Pangolin) and had problems installing it at first. Configure stopped on curl-config, even though curl was installed.

$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for curl-config... no
configure: error: curl-config not found.
cURL is available from http://curl.haxx.se/

A forum suggested I needed the libcurl-dev package, but there is no such package in Ubuntu Precise. However, this did the trick:
sudo apt-get install libcurl4-gnutls-dev

Note: libcurl4-openssl-dev did not work, and gave this error message when starting e-sniper:

$ esniper sniperfile
Auction ************: Cannot connect to URL : Peer certificate cannot be authenticated with given CA certificates: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Retrying...
Auction ************: Cannot connect to URL : Peer certificate cannot be authenticated with given CA certificates: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Retrying...
etc...

Now "make" and "sudo make install" ran fine and I can look forward to sniping those ebay auctions at the last second while sleeping :)

1 comment:

  1. for CentOS you need to use

    yum install curl-devel

    and problem solved

    ReplyDelete