找回密码
 注册
查看: 2095|回复: 7

在Debian中./configure出错

[复制链接]
发表于 2006-12-16 21:29:02 | 显示全部楼层 |阅读模式
今天刚从MagicLinux转回Debian.

安装了一个Debian 3.1r4,装了KDE3.3.2
当我编译一些程序的时候,每次./configure都会出现如下错误
./configure
.......
checking for X... configure: error: Can't find X includes. Please checkyour installation and add the correct paths!

(我要编译的一些程序,都是在MagicLinux2里面顺利编译通过的.)

我菜鸟一个,不知何故. 望各位Debian达人指点一二.
发表于 2006-12-16 22:09:30 | 显示全部楼层
Can't find X includes

这不是很明白了吗?
就是说需要一些.h 而你没有
安装相应的包
我要编译的一些程序,都是在MagicLinux2里面顺利编译通过的


ml默认安装了很多的东西
如果还是不能通过的话就太不行了??
回复

使用道具 举报

 楼主| 发表于 2006-12-16 23:36:01 | 显示全部楼层
安装什么包?
回复

使用道具 举报

发表于 2006-12-17 10:31:16 | 显示全部楼层
xorg-dev
回复

使用道具 举报

 楼主| 发表于 2006-12-17 13:04:45 | 显示全部楼层
装了xorg-X11-devel
上面的问题解决了.
又来了个
./configure
.....
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for IceConnectionNumber in -lICE... no
checking for libXext... no
configure: error: We need a working libXext to proceed. Since configure
can't find it itself, we stop here assuming that make wouldn't find
them either.
回复

使用道具 举报

发表于 2006-12-17 14:02:22 | 显示全部楼层
apt-get install  libxext6  libxext-dev
试试
回复

使用道具 举报

发表于 2006-12-18 23:23:41 | 显示全部楼层
你正在编译某段程序,突然,停住了!一条错误信息报告说你没有它需要的.h头文件。让auto-apt来救你吧,它问你是否要安装需要的软件包,然后挂起编译进程,安装好软件包后再恢复编译进程。

你所要做的仅仅是:

     # auto-apt run command
这里“command”指在运行过程中可能出现“需求文件不存在”问题的命令。例如:

     # auto-apt run ./configure
一会儿,它就会告诉你要安装所需的软件包并自动转到apt-get处理。如果你正在运行X,就会一个图形界面提示窗口。

为了提高效率auto-apt所用的数据库需要实时更新。可调用 auto-apt update,auto-apt updatedb和 auto-apt update-local来完成更新。

http://www.debian.org/doc/manuals/apt-howto/ch-search.zh-cn.html#s-auto-apt
回复

使用道具 举报

发表于 2006-12-30 11:30:49 | 显示全部楼层
实际上,auto-apt 不是很好用??
帮不了什么忙??
回复

使用道具 举报

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

本版积分规则

GMT+8, 2025-2-11 09:00 , Processed in 0.026243 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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