linux平台默认是不支持RAR文件的解压,需要安装linux版本的RAR压缩软件,下载地址为:http://www.rarlab.com/download.htm
1.安装:
可从http://www.rarsoft.com/download.htm下载 RAR for Linux 编译安装
或:
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.压缩:
将/test 目录压缩为test.rar 命令为:
rar a test.rar /test
3.解压:
将test.rar 解压 命令为
rar x test.rar
unrar -e test.tar
4.报错:
unrar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
解决方案:
Install the 32-bit LibC++.
yum install libstdc++.i686