QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1894|回复: 15

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

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


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-1-31 17:59:44 | 显示全部楼层
没有安装C++编译器
回复

使用道具 举报

 楼主| 发表于 2006-1-31 18:59:23 | 显示全部楼层
奇怪 我的FC4裏面已經有GCC了啊
回复

使用道具 举报

发表于 2006-1-31 19:07:52 | 显示全部楼层
是否安装了gcc-c++这个软件包,这才是C++的编译器
回复

使用道具 举报

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

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

使用道具 举报

发表于 2006-2-1 18:05:13 | 显示全部楼层
想不通为什么在FC4编译xorg    
回复

使用道具 举报

 楼主| 发表于 2006-2-1 20:11:19 | 显示全部楼层
在FC4下編譯有什麽問題嗎?
回复

使用道具 举报

发表于 2006-2-1 20:16:47 | 显示全部楼层
需要g++,只有gcc是不够的
回复

使用道具 举报

 楼主| 发表于 2006-2-1 22:08:58 | 显示全部楼层
謝謝班主我明白了, 我的GCC安裝的不完整, 我還想問一個問題

我知道GCC是用來編譯目標代碼 生成執行程序的. 可是GCC本身也是一個程序, 又是誰來負責編譯GCC呢?
回复

使用道具 举报

发表于 2006-2-1 22:45:32 | 显示全部楼层
gcc 的老版本。。。。
这就是所谓的鸡生蛋,蛋生鸡的的问题了。
最早的编译器应该是用汇编写就编译,然后用这个最原始的编译器定义的语言来实现更复杂的功能,然后慢慢的,慢慢的,就丰富起来了。和软件开发没有什么区别。
回复

使用道具 举报

发表于 2006-2-1 22:45:33 | 显示全部楼层
人是人他妈生的,妖是妖他妈生的。gcc也是gcc他妈生的。早先版本的gcc就是新版本gcc他妈    
回复

使用道具 举报

 楼主| 发表于 2006-2-2 00:06:49 | 显示全部楼层
各位 如果我要是想自己在機器上編譯gcc怎麽辦? 難道要我自己用彙編寫一個編譯器? 還是去找另一個bin的gcc? 你們在lfs的時候gcc怎麽解決的?
回复

使用道具 举报

发表于 2006-2-2 08:18:47 | 显示全部楼层
  
lfs的时候不是有编译工具链么,那个工具链里面的gcc是用host system里面的gcc编译成的,然后工具链里面的gcc再去编译lfs的gcc.
回复

使用道具 举报

发表于 2006-2-2 15:18:41 | 显示全部楼层
不明白楼主为什么又要编译 xorg 又要编译 gcc 的。
回复

使用道具 举报

 楼主| 发表于 2006-2-2 18:12:11 | 显示全部楼层
我裝上了g++了可是編譯的時候又出現了新問題 好像是什麽pkg-config腳本找不到

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++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... no
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for bison... no
checking for byacc... no
checking for cpp... /usr/bin/cpp
checking if /usr/bin/cpp requires -undef... yes
checking if /usr/bin/cpp requires -traditional... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking for unsigned long... yes
checking size of unsigned long... 4
checking for pid_t... yes
checking for vprintf... yes
checking for _doprnt... no
checking for geteuid... yes
checking for getuid... yes
checking for link... yes
checking for memmove... yes
checking for memset... yes
checking for mkstemp... yes
checking for strchr... yes
checking for strrchr... yes
checking for strtol... yes
checking for getopt... yes
checking for getopt_long... yes
checking for vsnprintf... yes
checking for walkcontext... no
checking for backtrace... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for getdtablesize... yes
checking for getifaddrs... yes
checking for getpeereid... no
checking for getpeerucred... no
checking for strlcat... no
checking for sqrt in -lm... yes
checking ndbm.h usability... no
checking ndbm.h presence... no
checking for ndbm.h... no
checking dbm.h usability... no
checking dbm.h presence... no
checking for dbm.h... no
checking rpcsvc/dbm.h usability... no
checking rpcsvc/dbm.h presence... no
checking for rpcsvc/dbm.h... no
checking linux/agpgart.h usability... yes
checking linux/agpgart.h presence... yes
checking for linux/agpgart.h... yes
checking sys/agpio.h usability... no
checking sys/agpio.h presence... no
checking for sys/agpio.h... no
checking linux/apm_bios.h usability... yes
checking linux/apm_bios.h presence... yes
checking for linux/apm_bios.h... yes
checking linux/fb.h usability... yes
checking linux/fb.h presence... yes
checking for linux/fb.h... yes
checking asm/mtrr.h usability... yes
checking asm/mtrr.h presence... yes
checking for asm/mtrr.h... yes
checking sys/memrange.h usability... no
checking sys/memrange.h presence... no
checking for sys/memrange.h... no
checking machine/mtrr.h usability... no
checking machine/mtrr.h presence... no
checking for machine/mtrr.h... no
checking for sys/linker.h... no
checking for SYSV IPC...
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for backtrace in -lc... yes
checking for MMX capable platform... yes
checking to see if we can install the Xorg server as root... yes
checking if Xtrans should support UNIX socket connections... yes
checking if Xtrans should support TCP socket connections... yes
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for getaddrinfo... yes
checking if IPv6 support should be built... yes
checking for struct sockaddr_in.sin_len... no
checking for authdes_seccreate... no
checking for authdes_create... yes
checking for library containing getsecretkey... none required
checking if Secure RPC authentication ("SUN-DES-1") should be supported... yes
checking for /usr/local/xorg//share/X11/sgml/defs.ent... no
checking for linuxdoc... no
checking for ps2pdf... no
checking Whether to build documentation... no
checking Whether to build pdf documentation... no
checking for LBXUTIL...
configure: error: The pkg-config script could not be found or is too old, make sure it is in your PATH or set the pkg-config enviroment variable to then full path to pkg-config
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-12 06:36 , Processed in 0.071543 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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