[GIS] Building GDAL with libcurl support on Debian Linux

curlgdallinux-mintUbuntu

Does anyone know how to build GDAL with libcurl support on Debian Linux (specifically LinuxMint and/or Ubuntu)?

After following build instructions here and tip from @EvilGenius below, I'm specifying the path to libcurl with this command:

./configure --with-curl=-L/usr/lib/x86_64-linux-gnu

and I've also tried:

./configure --with-curl=/etc/ssl/certs/ca-certificates.crt

EDIT: I've built on a machine with PostGIS installed, for what it's worth, but I'm still not getting CartoDB as a data format in the list of supported formats.

Is there a way to check if GDAL was indeed built with libcurl support?

Best Answer

Both of those commands are wrong. It should be something like,

./configure --with-curl=/usr/bin/curl-config

curl-config is an executable which provides details on the curl version and locations of libraries, etc.

You can get this information by typing,

./configure --help|grep curl

But as EvilGenius says, you shouldn't need this command at all. Make sure curl is actually installed, of course.

MB Edit:

The correct libcurl installation syntax is:

apt-get install libcurl4-gnutls-dev

(once I had that installed, the config option above worked great and the installation allowed the CartoDB format to show up)

Related Question