xar安装使用方法

xar是一种扩展的归档格式(eXtensible ARchive format),是一种开源的文件格式。xar文件在Mac OS X 10.5里是用于软件安装程序。

----------------

本文将在Kali Rolling安装xar,以便解压一些xar文件。

-------

1、安装xar

git clone https://github.com/mackyle/xar
cd xar/xar
./autogen.sh --noconfigure
./configure
make
make install

这样就安装成功

 

2、autogen.sh报错

./autogen.sh: 5: ./autogen.sh: autoconf: not found

这是因为没有安装automake工具。(使用autoconf和automake两个工具可以自动地生成符合自由软件惯例的Makefile,这样就可以像常见的GNU程序一样,只要使用”./configure”,”make”,”make instal”就可以把程序安装到Linux系统中去了。)

apt-get install autoconf automake libtool

 

3、configure报错

configure: error: Cannot configure without xml2-config

这里只需要:

apt-get install libxml2-dev

 

若还是报错:

configure: error: Cannot build without libcrypto (OpenSSL)

可以这样:

apt-get install libssl-dev

(如果下载不了,请先apt-get update)

 

4、xar使用方法

把p.txt压缩为pcat.xar:

xar -cf pcat.xar p.txt

解压pcat.xar:

xar -xf pcat.xar

 

转载于:https://www.cnblogs.com/pcat/p/5469117.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值