1. 程式人生 > >pwndbg ImportError: ERROR: fail to load the dynamic library. 問題解決

pwndbg ImportError: ERROR: fail to load the dynamic library. 問題解決

很明顯這是沒有找到庫

Traceback (most recent call last):
  File "/home/giant/pwndbg/gdbinit.py", line 36, in <module>
    import pwndbg # isort:skip
  File "/home/giant/pwndbg/pwndbg/__init__.py", line 13, in <module>
    import pwndbg.arch
  File "/home/giant/pwndbg/pwndbg/arch.py", line 12, in <module>
    from
capstone import * File "/home/giant/.local/lib/python3.6/site-packages/capstone/__init__.py", line 230, in <module> raise ImportError("ERROR: fail to load the dynamic library.") ImportError: ERROR: fail to load the dynamic library.

我們可以去/home/giant/.local/lib/python3.6/site-packages/capstone/__init__.py

輸出看看匯入的庫的路徑(將下面的print輸出註釋掉,當然我這裡已經將原來py2的輸出改成py3了)

_lib_path = split(__file__)[0]
_all_libs = ['capstone.dll', 'libcapstone.so.3', 'libcapstone.so', 'libcapstone.dylib']
_found = False

for _lib in _all_libs:
    try:
        _lib_file = join(_lib_path, _lib)
        # print("Trying to load:", _lib_file)
_cs = ctypes.cdll.LoadLibrary(_lib_file) _found = True break except OSError: pass

發現路徑是/home/giant/.local/lib/python3.6/site-packages/capstone/

所以我們找一下find / -name libcapstone.so,再複製過去就可以了

cp /usr/local/lib/python2.7/dist-packages/capstone/lib/libcapstone.so /home/giant/.local/lib/python3.6/site-packages/capstone/

相關推薦

pwndbg ImportError: ERROR: fail to load the dynamic library. 問題解決

很明顯這是沒有找到庫 Traceback (most recent call last): File "/home/giant/pwndbg/gdbinit.py", line 36, in &l

安裝eclipse出現Failed to load the JNIshared library---我的解決

在安裝eclipse時如果出現Failed to load the JNIshared library這句話,可能是你安裝的eclipse的位數和JDK的位數不匹配。 首先,我們來檢視電腦JDK是多少位的,在搜尋框(或windows+R)中輸入cmd,然後開啟

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module name

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' 解決方法: 1.找自己電腦上有沒有其他版本的Python,如果有

解決python安裝後cmd報錯Fatal Python error: Py_Initialize: unable to load the file system codec

因為我的電腦中以前裝有python,這次重新從網上安裝python3後與之前殘留的設定產生了衝突,開啟cmd輸入python出現錯誤: Fatal Python error: Py_Initialize: unable to load the file system codec Mo

PyCharm出現錯誤,Fatal Python error: Py_Initialize: unable to load the file system codec ModuleNotFound。。

借鑑如下的部落格:https://blog.csdn.net/qq_41574830/article/details/81153096 1.找到你安裝的python.exe,記住此地址 2.在Pycharm找到file--->setteing--project Interpret

Failed to load the JNI shared library "XXXXXXX"

http library bsp red -1 技術分享 log fail 查看 今天啟動Eclipse的時候出現了這個問題,經過查找, 一般來說這種問題都是因為eclipse 和Java 的兼容性不一致所導致的。 1) 查看Eclipse 和Java 版本 那麽我們需要分

Error:Unable to make the module:***, related gradle configuration was not found. Please, re-import the Gradle project and try again.

RR ble err alt conf related error: found ref 打開idea的 View -> Tool Windows -> Gradle.然後點擊 Refresh Error:Unable to make the mod

Java安裝eclipse出現failed to load the jni shared library解決方式

開始選單錄入CMD命令,調出DOS操作視窗 錄入命令java -version,通過DOS命令查詢Java的位數,顯示64-Bit Server。 開啟Eclipse的安裝目錄,找到檔案eclipse.ini。 開啟

開啟eclipse時出現“Failed to load the JNI shared library”的問題

JDK與eclipse版本不相容,會出現"Failed to load the JNI shared library"這個問題,一般是eclipse和JDK的版本(32bit/64bit)不同造成的。     JDK (x86 32bit,x86_64 6

官網下載、安裝Eclipse,並避免Failed to load the JNI shared library 錯誤

首先,64位JDK,要安裝64為Eclipse,32位的同理。否則會出現JDK和Eclipse版本不相容,報:Failed to load the JNI shared library 錯誤 1、開啟官網地址http://www.eclipse.org/,點選Download 由於網站

.NET Core SDK在Windows系統安裝後出現Failed to load the hostfxr.dll等問題的解決方法

這次無論如何也要記錄下,原因是今天在一臺Windows2008R2的電腦上安裝.NET Core SDK後再命令列執行dotnet --info 居然爆出了“Failed to load the hostfxr.dll”的問題,之前也遇到過,但是解決了,卻沒有做記錄,害的這裡又google了一把!所以寫篇文章

[ISE 14.7]Fail to Link the designer導致無法模擬問題

一、當前配置 作業系統:WIN 8.1 64位 軟體:Xilinx ISE 14.7 二、解決方法 首先,似乎64位的binary都有些問題,所以先把ISE Design Suite 14.7這個快捷方式的目標改成: ...\Xilinx\14.7\ISE_DS\settings32.bat ..

eclipse打開出現Failed to load the JNI shared library

如圖, 一、原因: 由於eclipse位數和JDK位數不一致所造成的。 在eclipse安裝目錄下開啟檔案,顯示64位 而JDK版本為32位 二、解決方法 可以重灌eclipse(推

Financial Institutions Fail To Humanize The Digital Banking Experience

As the world becomes more digital, the importance of humanized engagement becomes more important as well. As opposed to simply wanting speed and simplicity

Module build failed: Error: Failed to load plugin html: Cannot find module 'eslint-plugin-html'

執行 npm install eslint-plugin-html –save-dev即可解決 Module build failed: Error: Cannot find module ‘fi

DLL load failed: 找不到指定模組\Failed to load the native TensorFlow runtime解決方法

完整報錯資訊如下: Traceback (most recent call last): File "C:\Users\toy\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\pytho

解決 Unsupported major.minor version 52 Failed to load the JNI shared

     原因:當改變了jdk版本時,在編譯Java時,會遇到Unsupported major.minor version錯誤。      參考部落格    http://blog.csdn

Failed to load the JNI shared library "C:\Program Files(X86)\Java\jdk1.8.0_45\bin\.....

Eclipse的位數必須與jdk的位數一樣。。即64位的eclipse必須安裝64位的jdk… 檢測jdk安裝版本: 1.cmd 輸入 java -version ,如果是64位則預設提示,,若為32位,預設不提示。 2.在D盤新建檔案Text.j

Failed to load the JNI shared library 解決方法

這是一個老生常談的問題,不做過多贅述,簡單明瞭的解決辦法如下: 1.首先檢視JDK是否安裝成功:Alt +R  >> cmd >> java  ,如下圖: 若出現以上情況即表

Myeclipse-解決Failed to load the JNI shared library一種方法

myeclipse根目錄下有個myeclipse.ini檔案,添加個 -vm引數 D:\develop_soft\JDK\bin\javaw.exe      //這是我的32位jdk myeclip