[d]fucking day, python2.7.3编译hashlib总是失败, 总是说找不到libssl.so,有人遇到过吗。
linux环境,openssl试过1.0的和9.7的,都编译成libssl.so,libcrypto.so。
./config --prefix=XXX也指定了目录,make时都是这样,费解死了。 有人解决过这个问题吗。
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/liangdong/tars/Python-2.7.3/Modules/_hashopenssl.o -L/home/liangdong/libs/lib -L/usr/local/lib -lssl -lcrypto -o build/lib.linux-x86_64-2.7/_hashlib.so
*** WARNING: renaming "_hashlib" since importing it failed: libssl.so.0.9.7: cannot open shared object file: No such file or directory
Python build finished, but the necessary bits to build these modules were not found:
_tkinter bsddb185 dl
imageop sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
Failed to build these modules:
_hashlib _ssl
--------------------------
Double行动:
原帖分数:100
帖子加分:100