我最近通过pip卸载了postgresql并安装了pyscopg2。
我知道涉及到libcrypto和libssl的一些技巧。
目前我已经将它们建立为符号链接:
$ ls -lah libssl.*
-rwxr-xr-x 1 root wheel 402K Aug 28 11:06 libssl.0.9.7.dylib
-rwxr-xr-x 1 root wheel 589K Aug 28 11:06 libssl.0.9.8.dylib
lrwxr-xr-x 1 root wheel 55B Nov 29 23:38 libssl.1.0.0.dylib -> /usr/local/Cellar/openssl/1.0.1c/lib/libssl.1.0.0.dylib
lrwxr-xr-x 1 root wheel 55B Nov 30 02:25 libssl.dylib -> /usr/local/Cellar/openssl/1.0.1c/lib/libssl.1.0.0.dylib
/usr/lib
$ ls -lah libcrypto.*
-rwxr-xr-x 1 root wheel 2.1M Aug 28 11:06 libcrypto.0.9.7.dylib
-rwxr-xr-x 1 root wheel 2.6M Aug 28 11:06 libcrypto.0.9.8.dylib
-r-xr-xr-x 1 root wheel 1.6M Oct 31 22:12 libcrypto.1.0.0.dylib
lrwxr-xr-x 1 root wheel 58B Nov 30 02:27 libcrypto.dylib -> /usr/local/Cellar/openssl/1.0.1c/lib/libcrypto.1.0.0.dylib
通过ports安装了openssl,现在运行arc diff时我遇到了臭名昭著的问题。$ arc diff
dyld: Library not loaded: /usr/lib/libpq.5.dylib
Referenced from: /usr/bin/php
Reason: image not found
Trace/BPT trap: 5
在Stack Overflow上有一些答案讨论将这些库链接到postgresql安装目录。显然,这对我不起作用。
我该怎么办?
arc
?另外,我看到/usr/bin/php
;这对我来说看起来不太像Python。如果您*卸载了postgresql,我不确定如果您安装了psycopg2
,pip
是否会为您安装postgresql(尽管如果它没有,则应该失败)。您的系统上是否有任何libpq? - user707650