从终端配置执行失败


-1

我正在尝试安装从下载的XFe 1.33 http://roland65.free.fr/xfe/index.php?page=docs 但是当我在做的时候

./configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/usr/local/home/vquang/Desktop/xfe-1.33':
configure: error: C compiler cannot create executables
See `config.log' for more details

我遇到了这个错误 我检查了我的gcc编译器,它回复我说我安装了最新的软件包

有人能帮助我克服这个小问题吗?

configure:3662: $? = 0
configure:3651: gcc -v >&5
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/sh$
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-52)
configure:3662: $? = 0
configure:3651: gcc -V >&5
gcc: '-V' option must have argument
configure:3662: $? = 1
configure:3651: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3662: $? = 1
configure:3682: checking whether the C compiler works
configure:3704: gcc    conftest.c  -lX11 >&5
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
configure:3708: $? = 1
configure:3746: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "xfe"
| #define PACKAGE_TARNAME "xfe"
| #define PACKAGE_VERSION "1.33"
| #define PACKAGE_STRING "xfe 1.33"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "xfe"
| #define VERSION "1.33"
| /* end confdefs.h.  */
|
| int | main ()
| {
|
|   ;
|   return 0;
| }
configure:3751: error: in `/usr/local/home/daniel/Desktop/xfe-1.33':
configure:3753: error: C compiler cannot create executables
See `config.log' for more details

你可以发布输出 config.log
user1301428

Answers:


0

有用的部分是:

configure:3682: checking whether the C compiler works
configure:3704: gcc    conftest.c  -lX11 >&5
/usr/bin/ld: cannot find -lX11

你错过了 libX11.so,或者它不在您的链接器路径中,或者您最近安装了它而没有运行 ldconfig 更新配置。如果你有一个没有这个库的工作X环境会很奇怪。 你可能在这里有更好的运气: https://unix.stackexchange.com/questions/1162/libx11-so-6-not-found

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.