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/Postgres.app/Contents/MacOS/lib/rtpostgis-2.0.so": dlopen(/Applications/Postgres.app/Contents/MacOS/lib/rtpostgis-2.0.so, 10): Library not loaded: /usr/local/lib/libjpeg.8.dylib
Referenced from: /Applications/Postgres.app/Contents/MacOS/lib/libgdal.dylib
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.
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 !
👍 for @djq solution.
I have had several similar errors with postgresql.app. I have found that finding the missing library in question in the contents of the postgresql.app 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/postgres.app/library /usr/local/wherever the new extension is looking for the library/
hope this helps as you install more additions
Fixed with the latest set of commits. Everything should be working with the forthcoming release.