linux平台默认是不支持RAR文件的解压,须要安装linux版本的RAR压缩软件,下载地址为:http://www.rarlab.com/download.htmlinux
1.安装:c++
可从http://www.rarsoft.com/download.htm下载 RAR for Linux 编译安装
或:spa
wget http://www.rarlab.com/rar/rarlinux-3.8.0.tar.gz tar zxvf rarlinux-3.8.0.tar.gz cd rar make make install
2.压缩:code
将/test 目录压缩为test.rar 命令为:htm
rar a test.rar /test
3.解压:get
将test.rar 解压 命令为it
rar x test.rar unrar -e test.tar
4.报错:io
解决方案:编译
Install the 32-bit LibC++.test
yum install libstdc++.i686