LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1625|回复: 17

安裝xorg時編譯失敗 請教各位

[复制链接]
发表于 2006-1-31 17:38:39 | 显示全部楼层 |阅读模式
編譯時候出現這個這個錯誤

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
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... 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 how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
发表于 2006-2-1 14:26:42 | 显示全部楼层
xorg7?

你的系统没有装gcc。。。
回复 支持 反对

使用道具 举报

发表于 2006-2-1 17:33:37 | 显示全部楼层
好像是有gcc 但没有g++
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-1 17:34:09 | 显示全部楼层
我裝的xorg6 我的系統是FC4, 我除了系統最基本的東西之外其它的什麽東西都沒裝.

我覺得很奇怪, configure說我沒裝gcc, 但是我打gcc命令時系統是有反應的, 說gcc: no input file. 我在/usr/bin下也可以找到gcc這個bin文件, "终极幻想"大哥幫幫忙, 這是怎麽回事兒
回复 支持 反对

使用道具 举报

发表于 2006-2-1 17:52:34 | 显示全部楼层
不对,configure说有gcc但没有g++,你试打 g++ -v 看看结果
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-1 20:10:37 | 显示全部楼层
打g++ -v以後, bash說沒有這個文件
回复 支持 反对

使用道具 举报

发表于 2006-2-1 22:48:33 | 显示全部楼层
這就說明了系統沒有g++
回复 支持 反对

使用道具 举报

发表于 2006-2-1 23:22:35 | 显示全部楼层
gcc,,g++,,,忘记了,他们还能分开装。。。。。
(昨天Quake太多了,脑子不清醒了。。。)
回复 支持 反对

使用道具 举报

发表于 2006-2-1 23:33:35 | 显示全部楼层
老大別老用alfs嘛,編譯gcc的時候那configure的最後一句是 --enable-language=c,c++,編譯第一遍則只用--enable-language=c,這時c++是可以不裝的說

在binaries-based的distro,gcc跟g++分開是很常見的,Debian就是其中之一
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-2 00:12:58 | 显示全部楼层
原來gcc和g++是可以分開的啊! 我一直以爲有個gcc就可以全部搞定呢!
謝謝 d00m3d 謝謝 终极幻想 !!

順便問一句 alfs 是什麽東西?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表