Note that there are some explanatory texts on larger screens.

plurals
  1. POmissing libgeos_c.so on OSX
    primarykey
    data
    text
    <p>I am trying to install Postgis in order to use GeoDjango on OSX.</p> <p>For this, I first uninstalled postgres completely, then I installed everything following the GeoDjango documentation: <a href="https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#homebrew">https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#homebrew</a></p> <p>I did the following:</p> <pre><code>brew update brew upgrade brew install postgresql brew install postgis brew install gdal brew install libgeoip </code></pre> <p>When I run my Django project, I get the following error:</p> <pre><code>OSError at / dlopen(/usr/local/lib/libgeos_c.so, 6): image not found </code></pre> <p>I ran</p> <pre><code>sudo find . -name "libgeos_c*" </code></pre> <p>And got:</p> <pre><code>./Library/Frameworks/GEOS.framework/Versions/3/unix/lib/libgeos_c.dylib ./Users/martin/opt/geos-3.3.0/capi/.deps/libgeos_c_la-geos_c.Plo ./Users/martin/opt/geos-3.3.0/capi/.deps/libgeos_c_la-geos_ts_c.Plo ./usr/local/Cellar/geos/3.3.3/lib/libgeos_c.1.dylib ./usr/local/Cellar/geos/3.3.3/lib/libgeos_c.a ./usr/local/Cellar/geos/3.3.3/lib/libgeos_c.dylib ./usr/local/Cellar/geos/3.3.4/lib/libgeos_c.1.dylib ./usr/local/Cellar/geos/3.3.4/lib/libgeos_c.a ./usr/local/Cellar/geos/3.3.4/lib/libgeos_c.dylib ./usr/local/Cellar/geos/3.3.5/lib/libgeos_c.1.dylib ./usr/local/Cellar/geos/3.3.5/lib/libgeos_c.a ./usr/local/Cellar/geos/3.3.5/lib/libgeos_c.dylib ./usr/local/lib/libgeos_c.1.dylib ./usr/local/lib/libgeos_c.a ./usr/local/lib/libgeos_c.dylib </code></pre> <p>As you can see, no ".so" files at all. Any suggestions?</p> <p><em>Edit:</em></p> <p>Out of desperation I also installed the KyngChaos Packages and added the following settings:</p> <pre><code>GEOS_LIBRARY_PATH = '/Library/Frameworks/GEOS.framework/GEOS' GDAL_LIBRARY_PATH = '/Library/Frameworks/GDAL.framework/GDAL' GEOIP_LIBRARY_PATH = '/usr/local/Cellar/geoip/1.4.8/lib/libGeoIP.dylib' </code></pre> <p>This solved the problem.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload