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

 

posted @ 2016-05-07 20:40  pcat  阅读(2681)  评论(0编辑  收藏  举报