JonathanSalwan/ROPgadget

Install failed on Centos7

bertcug opened this issue · 2 comments


Traceback (most recent call last):
File "/usr/bin/ROPgadget", line 4, in
import('pkg_resources').run_script('ROPGadget==5.5', 'ROPgadget')
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 719, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 1511, in run_script
exec(script_code, namespace, namespace)
File "/usr/lib/python2.7/site-packages/ROPGadget-5.5-py2.7.egg/EGG-INFO/scripts/ROPgadget", line 10, in

File "build/bdist.linux-x86_64/egg/ropgadget/init.py", line 10, in
#
File "build/bdist.linux-x86_64/egg/ropgadget/binary.py", line 9, in
File "build/bdist.linux-x86_64/egg/ropgadget/loaders/init.py", line 9, in
# See the README file for information on usage and redistribution.
File "build/bdist.linux-x86_64/egg/ropgadget/loaders/elf.py", line 9, in
File "/usr/lib/python2.7/site-packages/capstone/init.py", line 230, in
raise ImportError("ERROR: fail to load the dynamic library.")

ImportError: ERROR: fail to load the dynamic library.

I used pip install ropgadget to install, when I use ROPgadget -v it occured an error above, so I use you source to isntall,but the problem still exists.

This issue looks like related to capstone.

It looks like your capstone installation is broken. I suppose that fix of this ticket placed beyond ROPgadget.
Possible workaround: you can fix installation by copying libcapstone.so from /usr/lib64/python2.7/site-packages/usr/lib/python2.7/site-packages/capstone to /usr/lib/python2.7/site-packages/capstone or build\install it from source.