说明:
windows下rar压缩的文件放到centos 7上解压的话,centos 7上安装的版本需要大于或是等于windows下安装的版本
1.下载
wget –no-check-certificate https://www.rarlab.com/rar/rarlinux-x64-612.tar.gz
2.安装
[root@localhost soft]# tar -zxvf rarlinux-x64-612.tar.gz
[root@localhost rar]#cd rar
[root@localhost rar]# make
mkdir -p /usr/local/bin
mkdir -p /usr/local/lib
cp rar unrar /usr/local/bin
cp rarfiles.lst /etc
cp default.sfx /usr/local/lib
3.错误解决办法
-bash: /usr/local/bin/rar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
是因为64位 系统中安装了32位程序
解决方法:
yum install glibc.i686
[root@localhost tmpdata]# rar -help
rar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
解决办法:
yum install libstdc++.so.6
4.解压
rar x sql.tar
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/281859.html