libvmdk源码编译方法

内容:介绍libvmdk库的安装。

libvmdk 是用于访问 VMware Virtual Disk (VMDK) 格式文件的库。

Homepage: https://github.com/libyal/libvmdk

Docs: https://github.com/libyal/libvmdk/wiki

安装
git clone https://github.com/libyal/libvmdk
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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值