linux下rarlinux安装后找不到rar命令处理方法
我下载了一个文件-----多台执行命令脚本.rar,是rar的压缩格式,想在linux下打开,于是就安装了rarlinux-4.0.1.tar.gz,本以为很顺利,不过,还是不能执行rar命令。[root@openrar]#makemkdir-p/usr/local/binmkdir-p/usr/local/libcprarunrar/usr/l...
·
我下载了一个文件-----多台执行命令脚本.rar,是rar的压缩格式,想在linux下打开,于是就安装了rarlinux-4.0.1.tar.gz,本以为很顺利,不过,还是不能执行rar命令。
[root@open 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@open rar]# make install
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
安装没有报错,执行rar报错:
[root@open rar]# rar
bash: /usr/local/bin/rar: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
安装:
[root@open my]# yum install ld-linux.so.2
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package glibc.i686 0:2.12-1.7.el6 set to be updated
接着报错:
[root@open my]# rar
rar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
接着安装:
[root@open my]# yum install libstdc++.so.6
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libstdc++.i686 0:4.4.4-13.el6 set to be updated
OK:
[root@open my]# rar e 多台执行命令脚本.rar
RAR 4.01 Copyright (c) 1993-2011 Alexander Roshal 28 May 2011
Shareware version Type RAR -? for help
Extracting from 多台执行命令脚本.rar
Extracting 说明.txt OK
Extracting dotask.exp OK
Extracting doexcute.sh OK
Extracting server_list.conf OK
All OK
好啦,解压成功!linux包装不全,带来很多麻烦!好在,通过测试,把问题处理了,也给大家提供一个思路。
转载于:https://blog.51cto.com/zuoguocai/1709280
更多推荐
已为社区贡献287条内容
所有评论(0)