当我尝试使用angr
时收到此警告
import angr警告| 2018-06-30 15:10:26,560 | angr.state_plugins.unicorn_engine |加载失败 “ angr_native.dylib”,禁用独角兽支持 (dlopen(/usr/local/lib/python2.7/site-packages/angr/lib/angr_native.dylib, 6):库未加载:libunicorn.1.dylib引用自: /usr/local/lib/python2.7/site-packages/angr/lib/angr_native.dylib
原因:找不到图片: dlopen(/usr/local/lib/python2.7/site-packages/angr/lib/angr_native.dylib, 6):库未加载:libunicorn.1.dylib引用自: /usr/local/lib/python2.7/site-packages/angr/lib/angr_native.dylib
原因:找不到图片)
您能帮助解决这个问题吗?
答案 0 :(得分:2)
我遇到了完全相同的问题。我没有遵循安装说明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