当我尝试在 OS X 上使用 angr 时出错
Error when I'm trying to use angr on OS X
当我尝试使用 angr
时收到此警告
import angr WARNING | 2018-06-30 15:10:26,560 |
angr.state_plugins.unicorn_engine | failed loading
"angr_native.dylib", unicorn support disabled
(dlopen(/usr/local/lib/python2.7/site-packages/angr/lib/angr_native.dylib,
6): Library not loaded: libunicorn.1.dylib Referenced from:
/usr/local/lib/python2.7/site-packages/angr/lib/angr_native.dylib
Reason: image not found:
dlopen(/usr/local/lib/python2.7/site-packages/angr/lib/angr_native.dylib,
6): Library not loaded: libunicorn.1.dylib Referenced from:
/usr/local/lib/python2.7/site-packages/angr/lib/angr_native.dylib
Reason: image not found)
你能帮忙解决这个问题吗?
我遇到了完全相同的问题。很遗憾我没有按照安装说明进行操作 https://docs.angr.io/INSTALL.html。在 Mac 上,必须完成以下修复。
BASEDIR=/usr/local/lib/python2.7/site-packages
# If you don't know where your site-packages folder is, use this to find them:
python2 -c "import site; print(site.getsitepackages())"
install_name_tool -change libunicorn.1.dylib "$BASEDIR"/unicorn/lib/libunicorn.dylib "$BASEDIR"/angr/lib/angr_native.dylib
install_name_tool -change libpyvex.dylib "$BASEDIR"/pyvex/lib/libpyvex.dylib "$BASEDIR"/angr/lib/angr_native.dylib
当我尝试使用 angr
时收到此警告
import angr WARNING | 2018-06-30 15:10:26,560 | angr.state_plugins.unicorn_engine | failed loading "angr_native.dylib", unicorn support disabled (dlopen(/usr/local/lib/python2.7/site-packages/angr/lib/angr_native.dylib, 6): Library not loaded: libunicorn.1.dylib Referenced from: /usr/local/lib/python2.7/site-packages/angr/lib/angr_native.dylib
Reason: image not found: dlopen(/usr/local/lib/python2.7/site-packages/angr/lib/angr_native.dylib, 6): Library not loaded: libunicorn.1.dylib Referenced from: /usr/local/lib/python2.7/site-packages/angr/lib/angr_native.dylib
Reason: image not found)
你能帮忙解决这个问题吗?
我遇到了完全相同的问题。很遗憾我没有按照安装说明进行操作 https://docs.angr.io/INSTALL.html。在 Mac 上,必须完成以下修复。
BASEDIR=/usr/local/lib/python2.7/site-packages
# If you don't know where your site-packages folder is, use this to find them:
python2 -c "import site; print(site.getsitepackages())"
install_name_tool -change libunicorn.1.dylib "$BASEDIR"/unicorn/lib/libunicorn.dylib "$BASEDIR"/angr/lib/angr_native.dylib
install_name_tool -change libpyvex.dylib "$BASEDIR"/pyvex/lib/libpyvex.dylib "$BASEDIR"/angr/lib/angr_native.dylib