Paapaa
Paapaa

Reputation: 242

Postgres.App + Django and proper path to libgeos_c.dylib on OSX?

I have succesfully installed Postgres.App. It works just fine if I have this in settings.py:

GEOS_LIBRARY_PATH="/Applications/Postgres.app/Contents/Versions/latest/lib/libgeos_c.dylib"

If I remove the above line and execute manage.py loaddata mydata, I get:

ImportError: Could not find the GEOS library (tried "geos_c", "GEOS"). Try setting GEOS_LIBRARY_PATH in your settings.

The question: is it possible to make things work without GEOS_LIBRARY_PATH set in settings.py? The reason is that in our team not all are using OSX + Postgres.App and the path is not the same for all developers. Django Docs mention usage of LD_LIBRARY_PATH, but having the next line exported in bash did nothing:

LD_LIBRARY_PATH="/Applications/Postgres.app/Contents/Versions/latest/lib/"

I still get the same error. Am I having a wrong syntax or is there another solution so that everyone can have individual path to the library?

Upvotes: 0

Views: 222

Answers (0)

Related Questions