当前位置: 首页 > 工具软件 > SquashFS > 使用案例 >

CentOS 6.5安装squashfs-tools

康赞
2023-12-01
sourceforge.net网站下载源码包
需要安装的依赖项有zlib-devel、xz-devel.x86_64
修改Makefile文件以支持xz压缩的squashfs文件,去掉Makefile中 #XZ_SUPPORT = 1的#号
yum install -y zlib-devel xz-devel.x86_64
tar xzvf squashfs4.3.tar.gz
cd squashfs4.3/squashfs-tools
sed -i 's/#XZ_SUPPORT/XZ_SUPPORT/g' Makefile
make && make install

如果没有安装zlib-devel会报错,提示
“...error: ‘Z_OK’ undeclared (first use in this function)...”

如果没有安装xz-devel.x86_64make&&make install不会报错,不过尝试解压xz压缩的文件会报错,提示
...‘LZMA_OK’ undeclared (first use in this function)...

转载于:https://www.cnblogs.com/sherlock-merlin/p/9388930.html

 类似资料: