我正在尝试安装从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
答案1
有用的部分是:
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