-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libcapstone.dylib is placed in the wrong location, causes errors with the python binding #74
Comments
the point is that you have to install Capstone into your system before $ make; $ sudo make install similarly, brew/macports should be used to install the core before see http://capstone-engine.org/documentation.html thanks. On Tue, Feb 18, 2014 at 1:34 PM, Omar notifications@github.com wrote:
|
I installed capstone using brew before installing the python bindings using pip.
|
oh, you need to do some setup before using Python. the reason is brew put the solution is to put the path of Capstone library into DYLD_LIBRARY_PATH, can you try this command on command line, and report the result? $ export DYLD_LIBRARY_PATH=/usr/local/opt/capstone/lib64/:$DYLD_LIBRARY_PATH thanks. On Tue, Feb 18, 2014 at 1:57 PM, Omar notifications@github.com wrote:
|
This fixes the problem. I thought it was |
no problem. if you are doing anything cool with Capstone, just let us know :-) thanks. On Tue, Feb 18, 2014 at 2:44 PM, Omar notifications@github.com wrote:
|
i'm install capstone by pip in ubuntu 12, but i get same error! Why??? |
On Tue, Sep 16, 2014 at 2:51 AM, Max notifications@github.com wrote:
did you install the core yet? without the core, the Python binding will not if you did install the core, how to reproduce your problem? thanks. |
On Tue, Sep 16, 2014 at 8:31 AM, Nguyen Anh Quynh aquynh@gmail.com wrote:
by the way, make sure to match the core's version with the binding's thanks. |
Thanks! I just found Finally I place libcapstone.dylib into /usr/local/opt/capstone/lib64/ and export: It works again! $ brew install capstone
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/capstone-3.0.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring capstone-3.0.yosemite.bottle.tar.gz
🍺 /usr/local/Cellar/capstone/3.0: 5 files, 28K
$ ls /usr/local/opt/capstone/
ChangeLog INSTALL_RECEIPT.json LICENSE.TXT README TODO
$ cat INSTALL_RECEIPT.json
{"used_options":[],"unused_options":[],"built_as_bottle":true,"poured_from_bottle":true,"tapped_from":"Homebrew/homebrew","time":1416408096,"HEAD":"9921bc632ef7158656bba9dc89e2549ca04bb45a","stdlib":null,"compiler":"clang"} |
confirmed this issue & working on a fix for Brew formula now, thanks. |
this should be fixed now in Brew formula. can you update Brew (with thanks. |
After reinstall Capstone 3.0_1, it fix now. Thanks for the great disassembly framework! $ brew install capstone
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/capstone-3.0_1.yosemite.bottle.tar.gz
Already downloaded: /Library/Caches/Homebrew/capstone-3.0_1.yosemite.bottle.tar.gz
==> Pouring capstone-3.0_1.yosemite.bottle.tar.gz
🍺 /usr/local/Cellar/capstone/3.0_1: 18 files, 5.6M
$ cd /usr/local/Cellar/capstone/3.0_1/
heineko:3.0_1 zhou$ ls
ChangeLog LICENSE.TXT TODO lib
INSTALL_RECEIPT.json README include
$ ll /usr/local/lib/libcapstone.*
lrwxr-xr-x 1 zhou admin 48 12 3 08:34 /usr/local/lib/libcapstone.3.dylib -> ../Cellar/capstone/3.0_1/lib/libcapstone.3.dylib
lrwxr-xr-x 1 zhou admin 42 12 3 08:34 /usr/local/lib/libcapstone.a -> ../Cellar/capstone/3.0_1/lib/libcapstone.a
lrwxr-xr-x 1 zhou admin 46 12 3 08:34 /usr/local/lib/libcapstone.dylib -> ../Cellar/capstone/3.0_1/lib/libcapstone.dylib |
thanks for reporting the issue. |
The error:
bindings/python/capstone.py
when imported looks forlibcapstone.dll
,libcapstone.so
, andlibcapstone.dylib
in a number of locations. There is alibcapstone.dylib
file that is produced in the root directory of the project. Moving this to the same folder as capstone.py (in reality it should work anywhere as long as it's in $PATH) fixes the error. I faced this problem using both brew&pip and compiling from source. I did not have this issue on Linux.The text was updated successfully, but these errors were encountered: