下载rarlinux和其运行需要的glibc-2.14

[root@localhost ~]# wget https://www.rarlab.com/rar/rarlinux-x64-5.9.0.tar.gz

[root@localhost ~]# wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz

安装glibc-2.14

[root@localhost ~]# tar zxvf glibc-2.14.tar.gz

[root@localhost ~]# cd glibc-2.14/

[root@localhost glibc-2.14]# mkdir build && cd build

[root@localhost build]# …/configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin

如果报错configure: error: no acceptable C compiler found in $PATH

,需要yum install gcc

[root@localhost build]# make -j 8

经过很长时间的输出

make[4]: Nothing to be done for rtld-all'. make[4]: Leaving directory/root/glibc-2.14/string’

make[4]: Entering directory /root/glibc-2.14/nptl' make[4]: Nothing to be done forrtld-all’.

make[4]: Leaving directory /root/glibc-2.14/nptl' make[3]: Leaving directory/root/glibc-2.14/elf’

gcc -B/usr/bin/ -nostdlib -nostartfiles -o /root/glibc-2.14/build/elf/sprof -Wl,-dynamic-linker=/lib64/ld-linux-x86-64.s

o.2 -Wl,-z,combreloc -Wl,-z,relro -Wl,–hash-style=both /root/glibc-2.14/build/csu/crt1.o /root/glibc-2.14/build/csu/crti.o gcc -B/usr/bin/ --print-file-name=crtbegin.o /root/glibc-2.14/build/elf/sprof.o /root/glibc-2.14/build/dlfcn/libdl.so.2 -Wl,-rpath-link=/root/glibc-2.14/build:/root/glibc-2.14/build/math:/root/glibc-2.14/build/elf:/root/glibc-2.14/build/dlfcn:/root/glibc-2.14/build/nss:/root/glibc-2.14/build/nis:/root/glibc-2.14/build/rt:/root/glibc-2.14/build/resolv:/root/glibc-2.14/build/crypt:/root/glibc-2.14/build/nptl /root/glibc-2.14/build/libc.so.6 /root/glibc-2.14/build/libc_nonshared.a -Wl,–as-needed /root/glibc-2.14/build/elf/ld.so -Wl,–no-as-needed -lgcc -Wl,–as-needed -lgcc_s -Wl,–no-as-needed gcc -B/usr/bin/ --print-file-name=crtend.o /root/glibc-2.14/build/csu/crtn.omake[2]: Leaving directory /root/glibc-2.14/elf' make[1]: Leaving directory/root/glibc-2.14’

[root@localhost build]# echo $?

0

[root@localhost build]# make install

最后输出

CC=“gcc -B/usr/bin/” /usr/bin/perl scripts/test-installation.pl /root/glibc-2.14/build/

/usr/bin/ld: cannot find -lnss_test1

collect2: ld returned 1 exit status

Execution of gcc -B/usr/bin/ failed!

The script has found some problems with your installation!

Please read the FAQ and the README file and check the following:

Did you change the gcc specs file (necessary after upgrading from

Linux libc5)?

Are there any symbolic links of the form libXXX.so to old libraries?

Links like libm.so -> libm.so.5 (where libm.so.5 is an old library) are wrong,

libm.so should point to the newly installed glibc file - and there should be

only one such link (check e.g. /lib and /usr/lib)

You should restart this script from your build directory after you’ve

fixed all problems!

Btw. the script doesn’t work if you’re installing GNU libc not as your

primary library!

make[1]: *** [install] Error 1

make[1]: Leaving directory `/root/glibc-2.14’

make: *** [install] 错误 2

执行

[root@localhost build]# strings /lib64/libc.so.6 | grep GLIBC

GLIBC_2.2.5

GLIBC_2.2.6

GLIBC_2.3

GLIBC_2.3.2

GLIBC_2.3.3

GLIBC_2.3.4

GLIBC_2.4

GLIBC_2.5

GLIBC_2.6

GLIBC_2.7

GLIBC_2.8

GLIBC_2.9

GLIBC_2.10

GLIBC_2.11

GLIBC_2.12

GLIBC_2.13

GLIBC_2.14

GLIBC_PRIVATE

发现有glibc 2.14版本

[root@localhost build]# cd

[root@localhost ~]# tar zxvf rarlinux-x64-5.9.0.tar.gz

rar/

rar/unrar

rar/acknow.txt

rar/whatsnew.txt

rar/order.htm

rar/readme.txt

rar/rar.txt

rar/makefile

rar/default.sfx

rar/rar

rar/rarfiles.lst

rar/license.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

然后就可以使用unrar命令了

linux centos 6.5压缩文件,CentOS 6.10 解压 rar压缩包相关推荐

  1. 解压安装包linux,Linux 下载安装 rar 并解压rar压缩包(Linux下如何解压.zip和.ra

    Linux 下载安装 rar 并解压rar压缩包(Linux下如何解压.zip和.ra Linux 下载安装 rar 并解压rar压缩包(Linux下如何解压.zip和.rar文件) Linux下如何 ...

  2. Linux 下载安装 rar 并解压rar压缩包(Linux下如何解压.zip和.rar文件)

    Linux下如何解压.zip和.rar文件,对于Window下的常见压缩文件.zip和.rar,Linux也有相应的方法来解压它们: 1)对于zip linux下提供了zip和unzip程序,zip是 ...

  3. linux centos 安装rar文件,在centos下安装rar解压.rar压缩包

    centos本身不自带rar环境,因此对于rar文件无法直接解压,需要先配置rar环境. 首先需要确定自己的系统是64位还是32位的,通过这个命令: [root@localhost]# uname - ...

  4. java压缩文件太慢_java 解压6万个ZIP文件,如何提升速度?

    目前我使用的是org.apache.tools.zipjar包解压5015个zip文件,解压后14344个文件,耗时:669493毫秒代码:****************************** ...

  5. java如何解压rar文件怎么打开,java解压rar文件

    该文章参考了iteye某位大虾的博客,我自己进行了修改.请大家参考 package cn; import java.io.File; import java.io.FileNotFoundExcept ...

  6. Linux中解压rar 文件

    原文地址: http://blog.sina.com.cn/s/blog_76edd3f90100q265.html 安装RAR 3.80 for Linux和使用方法 到http://www.rar ...

  7. python怎么解压rar文件_Python解压 rar、zip、tar文件的方法

    Q1 :如何解压 rar 压缩包文件? A : Step1:检查是否有 rarfile 第三方库,若没有该模块,则需要进行安装 : Step2:参考代码如下: import rarfile impor ...

  8. python解压rar_Python解压 rar、zip、tar文件的方法

    Q1 :如何解压 rar 压缩包文件? A : Step1:检查是否有 rarfile 第三方库,若没有该模块,则需要进行安装 : Step2:参考代码如下: import rarfile impor ...

  9. powershell 解压RAR文件(简易版)

    01 前言 为啥要写这个,因为可能有些特殊的环境无法使用RAR的解压软件,因而动手找了一个库然后写了这个脚本,希望有帮助. 02 正文 准备:第三方的dll--SharpCompress,可以Down ...

最新文章

  1. Hadoop学习笔记—7.计数器与自定义计数器
  2. 在CMD窗口连接到Mysql
  3. ubuntu下搜索文件
  4. 【Python】Python中的for循环,没你想的那么简单~
  5. 清华计算机学院吴建平,吴建平
  6. 写5个不同的自己的函数,来截取一个全路径的文件的扩展名,允许封装php库中已有的函数。
  7. 外星人台式电脑_执掌游戏世界 外星人ALIENWARE m15丨17.9mm机身轻悍降临【电脑组装】公众号分享台式机笔记本电脑 京东商城特惠通道...
  8. mysql 1308_Mysql恢复数据报ERROR 1308 : LEAVE with no matching label_MySQL
  9. XML类型的SQL参数
  10. syncthing下载_Syncthing中继服务器和发现服务器
  11. [区块链] 带你进入Bitcoin开发 - 环境搭建
  12. 解决Navicat连接MySQL总是报错1251的方法
  13. 几道和「堆栈、队列」有关的面试算法题
  14. 修改echarts 3D柱状图柱子大小(粗细)的方法
  15. EC11编码器原理以及驱动程序
  16. 结对开发项目--石家庄地铁web版
  17. 了解《诗歌生成》必看的6篇论文【附打包下载地址】
  18. 第157篇 合约安全-随机数
  19. 手机必备四款提高工作效率APP,每一个都是黑科技!
  20. Android studio 利用MPAndroidChart制作饼图

热门文章

  1. C++:undefined reference to vtable 原因与解决办法 [转]
  2. golang语言操作文件
  3. 关于“豪猪”,你理解的透彻吗?【Hystrix是个什么玩意儿】
  4. Flume实操(二)【实时读取本地文件到HDFS案例】
  5. leetcode 225. 用队列实现栈(维护两个队列用于倒替元素,使用和1进行按位与,实现队列切换)
  6. 【MySQL】触发器:让指定某一字段的值等于id
  7. 【Spring MVC】自定义拦截器 Interceptor
  8. C++ 静态线性表的顺序存储结构(数组实现)
  9. 深入了解gradle和maven的区别
  10. Netty之Channel的继承关系