在 Debian 11 上编译 CLFS

在 Debian 11 上编译 CLFS

当我休耕http://clfs.org/view/clfs-sysroot/arm/cross-tools/gmp.html我在使用 gmp-6.2.1 配置时遇到问题:

error: C++ compiler not available, see config.log for details library. When I invoke the ./configure script 

我的操作系统上的 gcc 版本是 10.2.1 20210110 (Debian 10.2.1-6)。在哪里可以查找问题?

bash, version 5.1.4(1)-release
/bin/sh -> /usr/bin/dash
ERROR: /bin/sh does not point to bash
Binutils: (GNU Binutils for Debian) 2.35.2
./version-check.sh: line 11: bison: command not found
yacc not found
bzip2,  Version 1.0.8, 13-Jul-2019.
Coreutils:  8.32
diff (GNU diffutils) 3.7
find (GNU findutils) 4.8.0
./version-check.sh: line 25: gawk: command not found
/usr/bin/awk -> /usr/bin/mawk
gcc (Debian 10.2.1-6) 10.2.1 20210110
g++ (Debian 10.2.1-6) 10.2.1 20210110
(Debian GLIBC 2.31-13) 2.31
grep (GNU grep) 3.6
gzip 1.10
Linux version 5.10.0-8-amd64 ([email protected]) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.10.46-4 (2021-08-03)
./version-check.sh: line 41: m4: command not found
GNU Make 4.3
GNU patch 2.7.6
Perl version='5.32.1';
sed (GNU sed) 4.7
tar (GNU tar) 1.34
./version-check.sh: line 47: makeinfo: command not found
xz (XZ Utils) 5.2.5
g++ compilation OK
./version-check.sh: line 55: EOF: command not found

答案1

由于 debian apt install g++ 缺少 gcc-cpp,因此解决了该问题。

相关内容