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

压缩工具squashfs安装

晏华奥
2023-12-01

下载地址:https://sourceforge.net/projects/squashfs/

解压:tar -xf   squashfs4.4.tar.gz

修改Makefile 打开XZ_SUPPORT = 1,使支持xz命令

########### Building XZ support #############
#
# LZMA2 compression.
#
# XZ Utils liblzma (http://tukaani.org/xz/) is supported
#
# To build using XZ Utils liblzma - install the library and uncomment
# the XZ_SUPPORT line below.
#
XZ_SUPPORT = 1

编译提示缺少lzma.h文件,需要安装xz-devel

yum install -y  xz-devel

然后编译:make && make intall

测试:mksquashfs   xx     xxx.squashfs  -comp  xz

 

 类似资料: