centos7解壓rar文件

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

unrar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

解決方案:編譯

Install the 32-bit LibC++.test

​
yum install libstdc++.i686
相關文章
相關標籤/搜索