[gdal-dev] ogr2ogr libcurl error

Even Rouault even.rouault at mines-paris.org
Thu Nov 21 13:34:00 PST 2013


Le jeudi 21 novembre 2013 15:14:05, David Reed a écrit :
> Hi, I am trying to get ogr2ogr working, but am getting the following error:
> 
> dyld: Library not loaded: libcurl.4.dylib
>   Referenced from: /usr/local/bin/ogr2ogr
>   Reason: Incompatible library version: ogr2ogr requires version 8.0.0 or
> later, but libcurl.4.dylib provides version 7.0.0
> 
> As I can tell, the latest curl is version 7
> (link)<http://curl.haxx.se/download.html>,
> why is this asking for version 8? I also tried to upgrade curl with brew
> but couldn't symlink into /usr/local, because would cause conflicts with
> the OS.
> 
> Anyone have any ideas?

If you didn't define the --with-curl option when running GDAL ./configure, then 
GDAL will link with the curl library indicated by "curl-config --libs"
You likley have several libcurl on your system and the one that got used when 
linking GDAL is not the one available at runtime.
The 8.0.0 or 7.0.0 don't necessarily reflect the "human readable" version of 
the curl library. It might be some other numbering scheme related to how the 
API/ABI of the library evolves, or something linked to packaging.

> 
> -Dave

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html


More information about the gdal-dev mailing list