centos 7如何使用rar
作者:互联网
说明:
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
标签:tar,centos,root,如何,rar,usr,local,localhost 来源: https://www.cnblogs.com/hxlasky/p/16615002.html