首页 > 网络资讯 > 常见问题 > 其他问题 >
centos rar 解压 安装
分享至:0
2016-10-11 11:35:01     来源:互联网     点击:
导读: 添加centos系统对rar文件的支持。[root@localhost ~]# wget http://www.rarsoft.com/rar/rarlinux-4.0.1.tar.gz[root@localhost ~]# t... 添加centos系统对rar文件的支持。

[root@localhost ~]# wget http://www.rarsoft.com/rar/rarlinux-4.0.1.tar.gz
[root@localhost ~]# tar -zxvf rarlinux-4.0.1.tar.gz
rar/
rar/readme.txt
rar/default.sfx
rar/whatsnew.txt
rar/license.txt
rar/order.htm
rar/rar
rar/unrar
rar/rar_static
rar/technote.txt
rar/rarfiles.lst
rar/makefile
rar/rar.txt
[root@localhost ~]# 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
[root@localhost rar]# rar x moumou.rar
-bash: /usr/local/bin/rar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

处理这个问题
[root@localhost rar]# cp rar_static /usr/local/bin/rar
cp: overwrite `/usr/local/bin/rar'? y

已可以正常解压
root@localhost rar]# rar x moumou.rar

RAR 4.01 Copyright (c) 1993-2011 Alexander Roshal 28 May 2011
Shareware version Type RAR -? for help
Extracting from moumou.rar

Creating moumou OK
Creating moumou/css OK
Extracting moumou/css/default.css OK