postgis extension depends on /usr/local/lib/libjpeg.8.dylib #43

unixtaker opened this Issue Jul 31, 2012 · 7 comments


None yet

8 participants

Just did a fresh install of mac os x mountain lion, using postgresapp for the first time and when I tried to run

create extension postgis;

ERROR: could not load library "/Applications/": dlopen(/Applications/, 10): Library not loaded: /usr/local/lib/libjpeg.8.dylib
Referenced from: /Applications/
Reason: image not found

a simple brew install libjpeg fixed the problem, but I don't believe that is the intention of this app setup.

djq commented Aug 1, 2012

Same error here on Mac OS X Lion 10.7.4 and the 'brew install libjpeg' fix worked

had the same issue with Mac OS X 10.8.2 and PostgresApp Version 1.0 (11).

BTW: Great project and thanks for your work!

brew install libjpeg

On Mac OS X 10.8.2 solved this issue for me as well. Thanks @djq !

lxcid commented Feb 5, 2013

👍 for @djq solution.

EconGeo commented Feb 5, 2013

I have had several similar errors with I have found that finding the missing library in question in the contents of the folder and then putting a dynamic link to them wherever postgis was looking for them has solved a lot of these issues. I imagine this is exactly what the homebrew installs are doing as well, creating dynamic links to the right library so that postgis can find them. I followed this approach when installing ODBC libraries to have R and postgres talk to each other with success by following the error messages and creating a dynamic link where postgresODBC was looking for the library. So, for example

ln -s /path/to/ /usr/local/wherever the new extension is looking for the library/

hope this helps as you install more additions

mattt commented May 1, 2013

Fixed with the latest set of commits. Everything should be working with the forthcoming release.

@mattt mattt closed this May 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment