嗨,对于原因在这里,我想在我自己的目录中安装glibc。我试图遵循这里是“如何操作”
wget http://ftp.gnu.org/gnu/libc/glibc-2.7.tar.gz
tar xzvf glibc-2.7.tar.gz
wget https://ftp.gnu.org/gnu/libc/glibc-linuxthreads-2.5.tar.bz2 # this version looks old, but this is the most recent source I could find.
cp glibc-linuxthreads-2.5.tar.bz2 glibc-2.24
cd glibc-2.7
tar xvjf glibc-linuxthreads-2.5.tar.bz2
cd ..
mkdir glibc-build
cd glibc-build
~/Tool/glibc-2.7/configure --enable-add-ons=linuxthreads --prefix=$HOME/Programme/glibc
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: running configure fragment for add-on linuxthreads
checking sysdep dirs... sysdeps/x86_64/elf linuxthreads/sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/wordsize-64 linuxthreads/sysdeps/unix/sysv/linux linuxthreads/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet linuxthreads/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/x86_64 linuxthreads/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/x86_64/fpu linuxthreads/sysdeps/x86_64 sysdeps/x86_64 sysdeps/wordsize-64 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking whether as is GNU as... yes
checking whether ld is GNU ld... yes
checking for as... as
checking version of as... 2.17.50.0.6, ok
checking for ld... ld
checking version of ld... 2.17.50.0.6, ok
checking for pwd... /bin/pwd
checking for gcc... gcc
checking version of gcc... 6.1.0, bad
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.17, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.8, ok
checking for sed... sed
checking version of sed... 4.1.5, ok
checking for autoconf... autoconf
checking whether autoconf works... yes
configure: error:
*** These critical programs are missing or too old: gcc
*** Check the INSTALL file for required versions.
但我的 gcc 版本:
gcc --version
gcc (GCC) 6.1.0
Copyright (C) 2016 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.
与“INSTALL”文件中所需的版本相比,这是更新的版本:
* GCC 3.4 or newer, GCC 4.1 recommended
有什么建议可以解决这个问题,或者对我犯的任何错误有建议吗?