下载地址:http://www.rarlab.com/download.htm
我所管理的Linux服务器是CentOS5.3,非64bit版本,所以下载:
http://www.rarlab.com/rar/rarlinux-3.8.0.tar.gz (3.8.0 稳定版)
http://www.rarlab.com/rar/rarlinux-3.9.b3.tar.gz (3.9 测试版3)
下载安装(以测试版为例):
- 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
-bash: ./unrar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
答:# yum -y install ld-linux.so.2
-bash: make: command not found
答:# yum -y install make
unrar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
答:# yum -y install libstdc++.so.6
/lib/libc.so.6: version `GLIBC_2.7' not found (required by unrar)
答:# yum -y install libc.so.6
测试输入rar压缩命令以及unrar解压命令均无错!
解压一个文件:unrar e file.rar
因为zip格式是windows下以及linux下都默认支持的,压缩包是zip格式,则可以采用
unzip file.zip 进行解压操作!