內容:介紹libvmdk庫的安裝。
libvmdk 是用於訪問 vmware virtual disk (vmdk) 格式檔案的庫。
homepage:
docs: /wiki
安裝git clone
cd libvmdk
./synclibs.sh
./autogen.sh
./configure && make && make install
安裝的命令
vmdkmount
vmdkinfo
常見錯誤整理
error #1
如果原始碼是github上檢出的,要先執行原始碼目錄下autogen.sh,然後產生錯誤:
configure.ac:208: error: required file 'libcerror/makefile.in' not found
configure.ac:209: error: required file 'libcthreads/makefile.in' not found
......
configure.ac:219: error: required file 'libfdata/makefile.in' not found
configure.ac:220: error: required file 'libfvalue/makefile.in' not found
makefile.am:3: error: required directory ./libcerror does not exist
......
makefile.am:3: error: required directory ./libfvalue does not exist
libvmdk/makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
autoreconf: automake failed with exit status: 1
solved #1
先執行原始碼目錄下的synclibs.sh
然後執行原始碼目錄下的autogen.sh
然後得到configure
error #2
vmdkmount 20170226
no sub system to mount vmdk.
solved #2
原因:編譯時沒有安裝libfuse的標頭檔案,下面是之前configure輸出:
configure:
building:
libcerror support: local
libcthreads support: local
libcdata support: local
libclocale support: local
libcnotify support: local
libcsplit support: local
libuna support: local
libcfile support: local
libcpath support: local
libbfio support: local
libfcache support: local
libfdata support: local
libfvalue support: local
deflate compression support: zlib
fuse support: no
features:
multi-threading support: pthread
wide character type support: no
vmdktools are build as static executables: no
python (pyvmdk) support: no
python version 2 (pyvmdk) support: no
python version 3 (pyvmdk) support: no
verbose output: no
debug output: no
解決:沒有安裝libfuse 的 標頭檔案,安裝之後重新 configure :
config.status: creating po/potfiles
config.status: creating po/makefile
configure:
building:
libcerror support: local
libcthreads support: local
libcdata support: local
libclocale support: local
libcnotify support: local
libcsplit support: local
libuna support: local
libcfile support: local
libcpath support: local
libbfio support: local
libfcache support: local
libfdata support: local
libfvalue support: local
deflate compression support: zlib
fuse support: libfuse
features:
multi-threading support: pthread
wide character type support: no
vmdktools are build as static executables: no
python (pyvmdk) support: no
python version 2 (pyvmdk) support: no
python version 3 (pyvmdk) support: no
verbose output: no
debug output: no
手動編譯原始碼安裝mysql 原始碼編譯安裝mysql
1 安裝mysql需要的依賴包 yum y install ncurses devel libaio devel 2 安裝編譯mysql需要的軟體 mysql 有3個版本分支 5.0 5.1系列 5.4 5.7系列 6.0 7.1群集產品系列 最早的mysql 5.0 5.1產品 直接.config...
反編譯framework原始碼的方法
工作中經常遇到很多第三方應用或rom需要反編譯看原始碼實現,對於第三方應用很簡單拿到apk檔案後直接用apktool解開就可以了。但是對於系統應用或framework模組部分就不行了,因為廠包肯定會開啟odex,所以將apk或jar包pull到本地後會發現裡面只有資源檔案或meta inf等,裡面沒...
教你編譯pjsip原始碼的方法
作業系統 window程式設計客棧s 10 x64 版本 10.0.19042.685 pjsip版本 2.10 pjsip官網 直接從pjsip官網給的github位址 雙擊pjproject vs14.sln 為了防止編譯報錯,首先進入這個目錄 pj複製 config site sample.h...