CentOS 6.x 不建议安装 LibreOffice 6.x 多个lib库版本过低, /lib64/目录下缺少多种lib库文件
建议:通过yum源安装:yum install libreoffice , yum install libreoffice-headless
CentOS 7.x-8.x 安装 LibreOffice 6.x时,应该会比较稳定,预计没有或少量lib库版本问题。
[root@xh-php-01t ~]# cat /etc/redhat-release
CentOS release 6.10 (Final)
[root@xh-php-01t ~]# uname -r
2.6.32-754.el6.x86_64
[root@xh-php-01t ~]# gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
glibc库
查看libc.so.6模块支持的gblic版本,strings 命令简单来说就是打印出该模块的所有能打印的信息
[root@test ~]# strings /lib64/libc.so.6|grep GLIB 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_PRIVATE [root@test ~]# rpm -aq|grep glibc glibc-common-2.12-1.212.el6.x86_64 glibc-2.12-1.212.el6.x86_64
下载地址:http://ftp.gnu.org/gnu/glibc/
[root@kafzook1 local]# tar -xf glibc-2.17.tar.gz [root@kafzook1 local]# cd glibc-2.17 [root@kafzook1 glibc-2.17]# mkdir build; cd build [root@kafzook1 build]# ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin [root@kafzook1 build]# make -j 8 [root@kafzook1 build]# make install [root@kafzook1 common]# 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_2.15 GLIBC_2.16 GLIBC_2.17 GLIBC_PRIVATE
zlib库
centos6.10的zlib版本是1.2.3,这个软件需要的版本比他高,所以我们要升级zlib
[root@test ~]# wget http://www.zlib.net/fossils/zlib-1.2.5.tar.gz [root@test ~]# ll zlib-1.2.5.tar.gz -rw-r--r--. 1 root root 544640 Apr 19 2019 zlib-1.2.5.tar.gz [root@test ~]# tar xf zlib-1.2.5.tar.gz [root@test ~]# cd zlib-1.2.5 [root@test zlib-1.2.5]# ./configure --prefix=/usr/local/zlib1.2.5 [root@test zlib-1.2.5]# make && make install 把新编译的模块加载到模块库中 [root@test zlib-1.2.5]# echo /usr/local/zlib1.2.5/lib/ >>/etc/ld.so.conf [root@test zlib-1.2.5]# ldconfig -v
GCC库
wget http://ftp.gnu.org/gnu/gcc/gcc-6.1.0/gcc-6.1.0.tar.bz2 tar -jxvf gcc-6.1.0.tar.bz2 cd gcc-6.1.0 ./contrib/download_prerequisites mkdir build cd build ../configure -enable-checking=release -enable-languages=c,c++ -disable-multilib make make install gcc --version