我下载了一个文件-----多台执行命令脚本.rar,是rar的压缩格式,想在linux下打开,于是就安装了rarlinux-4.0.1.tar.gz,本以为很顺利,不过,还是不能执行rar命令。
[[email protected] 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
[[email protected] 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报错:
[[email protected] rar]# rar
bash: /usr/local/bin/rar: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
安装:
[[email protected] 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
接着报错:
[[email protected] my]# rar
rar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
接着安装:
[[email protected] 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:
[[email protected] 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包装不全,带来很多麻烦!好在,通过测试,把问题处理了,也给大家提供一个思路。
时间: 11-01