谢谢各位!
1 我刚试了后代朋友的提议安装sudo apt-get install libc6-dev,可是还是有问题,出现这个:
代码: 全选
./configure --prefix=/usr
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for kde-config... /usr/bin/kde-config
checking where to install... /usr (as requested)
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether gcc is blacklisted... no
checking whether g++ supports -Wmissing-format-attribute... no
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether g++ supports -Wundef... no
checking whether g++ supports -Wno-long-long... no
checking whether g++ supports -Wno-non-virtual-dtor... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
2 关于源的问题,我现在用的是我们学校提供的源http://opensource.nus.edu.sg/wiki/index.php/Ubuntu_Linux,我刚刚看,好像上面没有写是否适合我用的ubuntu的版本(8.04),所以我换了速配指南里推荐的一个。可是结果还是一样。似乎这个问题和源没有关系。
3 我google了configure: error: C compiler cannot create executables这个问题,发现英文论坛上有类似的提问,似乎还是和gcc有关系。
4 我现在想知道,新立得里有跟gcc有关的软件包有29个,我目前安装了3个,其他的哪些是编译软件所必须的?
我已经安装的有gcc; gcc-4.2; gcc-4.2-base
谢谢!