Linux升级glibc 2.29 配置configure
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
显示
checking for /usr/bin/ld... /usr/bin/ld
checking version of /usr/bin/ld... 2.27, ok
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 4.2, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.19.8.1, ok
checking for makeinfo... no
checking for sed... sed
checking version of sed... 4.2.2, ok
checking for gawk... gawk
checking version of gawk... 4.0.2, ok
checking for bison... bison
checking version of bison... 3.0.4, ok
checking if gcc -B/usr/bin/ is sufficient to build libc... no
checking for nm... nm
checking for python3... python3
checking version of python3... 3.6.8, ok
configure: error:
These critical programs are missing or too old:compiler
Check the INSTALL file for required versions.```
**但我的gcc是8.2,make4.2,Python3.8,这个compiler指的是什么?**
**而升级其他版本的glibc,用相同的配置configure,显示**
```shell
hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch = aarch64
/usr/bin/oslevel =
/usr/convex/getsysinfo =
UNAME_MACHINE = aarch64
UNAME_RELEASE = 5.11.12-300.el7.aarch64
UNAME_SYSTEM = Linux
UNAME_VERSION = #1 SMP Thu Aug 19 09:02:08 UTC 2021
**configure: error: cannot guess build type; you must specify one**
要求是:
* GNU 'make' 4.0 or newer
* GCC 6.2 or newer
building the GNU C Library, as newer compilers usually produce
* GNU 'binutils' 2.25 or later
* GNU 'texinfo' 4.7 or later
* GNU 'bison' 2.7 or later
* GNU 'sed' 3.02 or newer
* Python 3.4 or later
* GDB 7.8 or later with support for Python 2.7/3.4 or later
* GNU 'gettext' 0.10.36 or later
而我的是:
GNU Make 4.3
gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC)
binutils-2.27-44.base.el7_9.1.aarch64
texinfo-5.1-5.el7.aarch64
bison-3.0.4-2.el7.aarch64
sed-4.2.2-7.el7.aarch64
Python 3.8.0a1
GNU gdb (GDB) 7.8
gettext (GNU gettext-runtime) 0.19.8.1
看看你的源码文件夹下的INSTALL文件,看看里面对编译器版本的要求。
https://blog.csdn.net/weixin_42736510/article/details/121606118
升级下gcc
gcc版本过低,升级gcc
升级gcc版本