日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux centos 6.5压缩文件,CentOS 6.10 解压 rar压缩包

發布時間:2024/1/23 linux 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux centos 6.5压缩文件,CentOS 6.10 解压 rar压缩包 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

下載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压缩包的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。