Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. ImportError: dlopen(/Users/Craig/pyenv/mysite/lib/python2.7/site-packages/psycopg2/_psycopg.so, 2): Library not loaded: @executable_path/../lib/libssl.1.0.0.dylib
  2. Referenced from: /Applications/Postgres.app/Contents/MacOS/lib/libpq.dylib
  3. Reason: image not found
  4.  
  5. $ sudo ln -s /Library/PostgreSQL/9.2/lib/libssl.1.0.0.dylib /usr/lib
  6. $ sudo ln -s /Library/PostgreSQL/9.2/lib/libcrypto.1.0.0.dylib /usr/lib
  7.  
  8. export DYLD_FALLBACK_LIBRARY_PATH=/Applications/Postgres.app/Contents/MacOS/lib:$DYLD_LIBRARY_PATH
  9.  
  10. alias psql="(. ~/.bash_profile; unset DYLD_FALLBACK_LIBRARY_PATH; psql)";
  11.  
  12. export DYLD_LIBRARY_PATH=/Library/PostgreSQL/x.y/lib
  13.  
  14. import os
  15. os.environ['DYLD_LIBRARY_PATH'] = '/Library/PostgreSQL/x.y/lib'
  16.  
  17. brew install openssl
  18.  
  19. export DYLD_LIBRARY_PATH=/usr/local/Cellar/openssl/**1.0.1x**/lib
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement