LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: betatoy

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

[复制链接]
发表于 2006-2-2 01:48:23 | 显示全部楼层
ALFS是指Automated LFS,故明思意就是自動安裝LFS了

對於多次安裝LFS的人,重復的按照LFS手冊來安裝是乏而無味的,因此ALFS便應運而生。但代價可能就是使人忘記惜日手功安裝時參考LFS手冊上敲過的命令了

我的建議是:對任何想深入了解的Linux愛好者,不論你現用哪個發行版,最少都應該做一次LFS,一定會終身受用的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-2 18:14:07 | 显示全部楼层
我是很像自己LFS一次, 非常想. 可是LFS對於我來説實在是太複雜了, 我不知從何下手啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-2 18:14:53 | 显示全部楼层
我裝上了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
回复 支持 反对

使用道具 举报

发表于 2006-2-2 19:44:52 | 显示全部楼层
pkg-config这些都是必须装的软件
回复 支持 反对

使用道具 举报

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

在binaries-based的distro,gcc跟g++分開是很常見的,Debian就是其中之一


脑袋进水了,所以忘记了两者是分开的。。活活。。
我已经差不多1年没用过alfs了,都是手动的。而且,Cross好像还没有alfs呢吧。

对楼主:LBXUTIL没装。如果不是特殊需求,无需手动安装Xorg7,太麻烦了。
回复 支持 反对

使用道具 举报

发表于 2006-2-2 21:02:02 | 显示全部楼层
Post by betatoy
我是很像自己LFS一次, 非常想. 可是LFS對於我來説實在是太複雜了, 我不知從何下手啊
Simply follow the LFS handbook step by step and then it should go smoothly.

After you finish the LFS handbook and proceed BLFS, the BLFS handbook will give you very detail instructions on how to compile X and many other useful applications.
回复 支持 反对

使用道具 举报

发表于 2006-2-3 09:47:13 | 显示全部楼层
d00m3d的忠告:對任何想深入了解的Linux愛好者,不論你現用哪個發行版,最少都應該做一次LFS,一定會終身受用的。
Ha...Ha...It is exactly the same meaning of my signature.
回复 支持 反对

使用道具 举报

发表于 2006-2-3 10:04:01 | 显示全部楼层
That's because...........................................I copied yours..haha...
回复 支持 反对

使用道具 举报

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

本版积分规则

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