软件安装
安装bison
mkdir -p /tmp/bisoncd /tmp/bisonwget http://ftp.gnu.org/gnu/bison/bison-3.8.tar.xztar -xf bison-3.8.tar.xzcd bison-3.8./configuremake -j(getconf _NPROCESSORS_ONLN)make install
安装GNU工具集
安装新GNU工具集
mkdir -p /tmp/gnucd /tmp/gnuwget https://ftp.gnu.org/gnu/binutils/binutils-2.38.tar.xztar -xf binutils-2.38.tar.xzcd binutils-2.38./configure --prefix=/usr/local/binutilsmakemake install
备份旧GNU集
mv /usr/bin/ld /usr/bin/ld_bakmv /usr/bin/as /usr/bin/as_bak
创建新的软链接
ln -s /usr/local/binutils/bin/ld /usr/bin/ldln -s /usr/local/binutils/bin/as /usr/bin/as
更新make
mkdir -p /tmp/makecd /tmp/makewget https://ftp.gnu.org/gnu/make/make-4.3.tar.gztar -xf make-4.3./configure --prefix=/usrtype makemake checkmake install
更新compiler
mkdir -p /tmp/gcccd /tmp/gccwget https://ftp.gnu.org/gnu/gcc/gcc-12.1.0/gcc-12.1.0.tar.xztar -xf gcc-12.1.0cd gcc-12.1.0./contrib/downloan_prerequisitesmkdir buildcd build../configure -enable-checking=release -enable-languages=c,c++ -disable-multilibmake -j8 // 很费时,耐心等待make install
更新Glibc
mkdir -p /tmp/glibccd /tmp/glibcwget https://ftp.gnu.org/gnu/glibc/glibc-2.35.tar.xztar -xvf glibc-2.34.tar.xzcd glibc-2.34mkdir buildcd build../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
编译错误
curl/curl.h: No such file or directory
安装以下依赖:
- libcurl-devel
-
http-push.c:22:19: fatal error: expat.h: No such file or directory
安装以下依赖:
-
These critical programs are missing or too old: as GNU ld bison make compiler
出现这个问题是因为有些包不存或太旧了。要解决这个问题,那么我们可以安装或更新对应的包就可以了。
bison - 更新
[bison](#m51Gk)- as,ld - 更新
[GNU](#i7bnX) - make - 更新 make
- compiler - 更新 gcc
makeinfo is missing on your system
安装texinfoyum install texinfo -y
没有找到
查看库中的相关包: ```shell yum provides /usr/sbin/semanagesemanage命令
// policycoreutils-python-utils-2.9.19.el8.noarch: SELinux policy core python utilities
根据上面的提示,需要如下面安装包:```shellyum install policycoreutils-python-utils.noarch -y
