QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1326|回复: 12

在编译的时候出现下面的问题,请教

[复制链接]
发表于 2003-7-4 21:21:04 | 显示全部楼层 |阅读模式
我在 rh9下编译 xfce 桌面环境出现如下症状,还请版主指点:
make[2]: Leaving directory `/root/garnome-0.24.2-xfce4/gnome/libxml2'
==> Grabbing download/buildDocBookCatalog
        ==> Trying file//files/buildDocBookCatalog
make[2]: Entering directory `/root/garnome-0.24.2-xfce4/gnome/libxml2'
make[2]: Leaving directory `/root/garnome-0.24.2-xfce4/gnome/libxml2'
        [fetch] complete for libxml2.
==> Running checksum on libxml2-2.5.7.tar.bz2
d4eb34a61f44e1cf0694ca0035e46451  download/libxml2-2.5.7.tar.bz2
file libxml2-2.5.7.tar.bz2 passes checksum test!
==> Running checksum on buildDocBookCatalog
03fd5ed2951f830aba7e78ec55f1b156  download/buildDocBookCatalog
file buildDocBookCatalog passes checksum test!
        [checksum] complete for libxml2.
install -d work/main.d
==> Extracting download/libxml2-2.5.7.tar.bz2
==> Copying download/buildDocBookCatalog
        [extract] complete for libxml2.
        [patch] complete for libxml2.
==> Running configure in work/main.d/libxml2-2.5.7
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc-3.2
checking for C compiler default output... configure: error: C compiler cannot create executables
(好象是说 c编译器不能输出可执行文件,纳闷...)
See `config.log' for more details.
make[1]: *** [configure-work/main.d/libxml2-2.5.7/configure] Error 77
make[1]: Leaving directory `/root/garnome-0.24.2-xfce4/gnome/libxml2'
make: *** [../../gnome/libxml2/cookies/main.d/install] Error 2

我的gcc 版本
[root@localhost xfce]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
发表于 2003-7-4 21:55:31 | 显示全部楼层
can u post u config.log here?
回复

使用道具 举报

发表于 2003-7-4 21:56:06 | 显示全部楼层
btw, this is not related with kernel. this is a system problem.
回复

使用道具 举报

 楼主| 发表于 2003-7-5 09:23:47 | 显示全部楼层
是呀,在贴之前我也曾考虑了一下,不过我知道你能解决这个问题,所以冒昧一问,呵呵。
哪个config.log我也不知道在那里,找了半天也不清楚,呵呵我是新手
回复

使用道具 举报

发表于 2003-7-5 13:55:05 | 显示全部楼层
configure-work/main.d/libxml2-2.5.7/configure]?

use find / -iname config.log to find it.

should be some path problems i guess.
回复

使用道具 举报

 楼主| 发表于 2003-7-5 18:28:51 | 显示全部楼层
config.log内容如下,是不是说 着gcc3.2但我的是3.3的,怎么解决?

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.57.  Invocation command line was

  $ ./configure --prefix=/opt/xfce-beta1 --exec_prefix=/opt/xfce-beta1 --bindir=/opt/xfce-beta1/bin --sbindir=/opt/xfce-beta1/sbin --libexecdir=/opt/xfce-beta1/libexec --datadir=/opt/xfce-beta1/share --sysconfdir=/opt/xfce-beta1/etc --sharedstatedir=/opt/xfce-beta1/share --localstatedir=/opt/xfce-beta1/var --libdir=/opt/xfce-beta1/lib --infodir=/opt/xfce-beta1/info --includedir=/opt/xfce-beta1/include --mandir=/opt/xfce-beta1/man --disable-static --with-html-dir=/opt/xfce-beta1/share/gtk-doc/html --enable-gtk-doc --enable-debug=no

## --------- ##
## Platform. ##
## --------- ##

hostname = linux
uname -m = i686
uname -r = 2.4.20-4GB
uname -s = Linux
uname -v = #1 Wed Apr 16 14:50:03 UTC 2003

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /opt/xfce-beta1/bin
PATH: /opt/xfce-beta1/sbin
PATH: /opt/xfce-beta1/bin
PATH: /opt/xfce-beta1/sbin
PATH: /opt/xfce-beta1/bin
PATH: /opt/xfce-beta1/sbin
PATH: /opt/xfce-beta1/bin
PATH: /opt/xfce-beta1/sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/X11R6/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1495: checking build system type
configure:1513: result: i686-pc-linux-gnu
configure:1521: checking host system type
configure:1535: result: i686-pc-linux-gnu
configure:1574: checking for a BSD-compatible install
configure:1628: result: /usr/bin/install -c
configure:1639: checking whether build environment is sane
configure:1682: result: yes
configure:1697: checking whether make sets $(MAKE)
configure:1717: result: yes
configure:1749: checking for working aclocal-1.4
configure:1760: result: missing
configure:1764: checking for working autoconf
configure:1771: result: found
configure:1779: checking for working automake-1.4
configure:1790: result: missing
configure:1794: checking for working autoheader
configure:1801: result: found
configure:1809: checking for working makeinfo
configure:1816: result: found
configure:1879: checking for gcc
configure:1905: result: gcc-3.2
configure:2149: checking for C compiler version
configure:2152: gcc-3.2 --version </dev/null >&5
./configure: line 1: gcc-3.2: command not found
configure:2155: $? = 127
configure:2157: gcc-3.2 -v </dev/null >&5
./configure: line 1: gcc-3.2: command not found
configure:2160: $? = 127
configure:2162: gcc-3.2 -V </dev/null >&5
./configure: line 1: gcc-3.2: command not found
configure:2165: $? = 127
configure:2189: checking for C compiler default output
configure:2192: gcc-3.2 -g -I/opt/xfce-beta1/include -I/usr/X11R6/include -L/opt/xfce-beta1/lib -L/usr/X11R6/lib -O2 -pipe -falign-functions=4 -mfancy-math-387 -march=athlon-mp -I/opt/xfce-beta1/include -I/usr/X11R6/include -L/opt/xfce-beta1/lib -L/usr/X11R6/lib conftest.c  >&5
./configure: line 1: gcc-3.2: command not found
configure:2195: $? = 127
configure: failed program was:
| #line 2168 "configure"
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libxml2"
| #define VERSION "2.5.7"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2234: error: C compiler cannot create executables
See `config.log' for more details.
回复

使用道具 举报

 楼主| 发表于 2003-7-5 18:31:28 | 显示全部楼层
moswen@linux:/data1/home/moswenxi> gcc -v
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/3.3/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i486-suse-linux
Thread model: posix
gcc version 3.3 20030226 (prerelease) (SuSE Linux)


上面的内容是在 suse linux 8.2上编译的结果
回复

使用道具 举报

 楼主| 发表于 2003-7-5 18:33:39 | 显示全部楼层
错了 上面还是redhat linux上编译的 config.log
回复

使用道具 举报

发表于 2003-7-5 21:48:25 | 显示全部楼层
so it needs gcc 3.2 an u have 3.3 only. so there are u two choice.
1) install a 3.2
2) ln -s a /usr/bin/gcc /usr/bin/gcc-3.2 to create a symbol link and try again.

but i am not sure if gcc 3.2 can compile that xfce.
回复

使用道具 举报

 楼主| 发表于 2003-7-6 08:45:55 | 显示全部楼层
is ok ! thx!
回复

使用道具 举报

发表于 2003-7-6 09:11:45 | 显示全部楼层
which method u use? can u explain with more detail. thx.
回复

使用道具 举报

 楼主| 发表于 2003-7-6 13:34:01 | 显示全部楼层
i usr ln -s /usr/bin/gcc /usr/bin/gcc-3.2

it's ok ,now i run zhe xfce desktop envienment ,it's fast an gnome like ,l like it

but i can't  configure  chinput    :-)  
回复

使用道具 举报

发表于 2003-7-6 20:53:32 | 显示全部楼层
chinese input. no idea.      
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-12-4 03:32 , Processed in 0.119169 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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