LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2056|回复: 15

想通过源代码编译软件,那些头文件要装?

[复制链接]
发表于 2005-5-18 21:55:11 | 显示全部楼层 |阅读模式
想在debian 下通过源代码编译软件,那些头文件必须要装?
发表于 2005-5-18 21:57:36 | 显示全部楼层
linux-kernel-headers
libc6-dev
其他的看清况
回复 支持 反对

使用道具 举报

发表于 2005-5-18 23:36:43 | 显示全部楼层
如果你的是 Gnome 桌面
可以先执行
apt-get build-dep gedit

她会自动装好 Gnome 程序编译环境, 包括编译器, 开发库等等


KDE 桌面可以用 apt-get build-dep kate
回复 支持 反对

使用道具 举报

发表于 2005-6-2 06:50:17 | 显示全部楼层
hacker:/home/bbs/bbs/bbssrc# apt-get build-dep gedit
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
E: 您必须在您的 sources.list 输入一些“软件包源”的 URL
hacker:/home/bbs/bbs/bbssrc#


不知道下来干做什么了~~~
回复 支持 反对

使用道具 举报

发表于 2005-6-2 06:55:06 | 显示全部楼层
我的gnome 都安装过了

linux-kernel-headers
libc6-dev

都有不过编译还是不成~~~

是 火鸟bbs

hacker:/home/bbs/bbs/bbssrc# ./configure
loading cache ./config.cache
Firebird BBS 3.0 series configure
$Id: configure,v 1.4 2000/02/20 12:29:17 edwardc Exp $
...........................
... testing C Compiler  ...
...........................
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for -lcrypt... yes
checking for -lsocket... no
checking for -lnsl... yes
checking for -lbsd... no
checking for -lucb... no
checking for -lrpcsvc... yes
checking for -ldl... yes
checking for -ltermcap... no
ERR: i can't compile without libtermcap !!
hacker:/home/bbs/bbs/bbssrc#
回复 支持 反对

使用道具 举报

发表于 2005-6-2 10:37:28 | 显示全部楼层
这不明白告诉你了么:要装这个库-- libtermcap
再出现什么类似的依着它安装就行。。。。
回复 支持 反对

使用道具 举报

发表于 2005-6-2 12:18:08 | 显示全部楼层
你的源里没有 deb-src 项
回复 支持 反对

使用道具 举报

发表于 2005-6-3 00:04:26 | 显示全部楼层
hacker:/home/bbs/bbs/bbssrc# ./configure
loading cache ./config.cache
Firebird BBS 3.0 series configure
$Id: configure,v 1.4 2000/02/20 12:29:17 edwardc Exp $
...........................
... testing C Compiler  ...
...........................
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for -lcrypt... yes
checking for -lsocket... no
checking for -lnsl... yes
checking for -lbsd... no
checking for -lucb... no
checking for -lrpcsvc... yes
checking for -ldl... yes
checking for -ltermcap... no
ERR: i can't compile without libtermcap !!
hacker:/home/bbs/bbs/bbssrc# apt-get install libtermcap
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
现在没有可用的软件包 libtermcap,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
可是下列的软件包取代了它:
  termcap-compat
E: 软件包 libtermcap 还没有可供安装的候选者
hacker:/home/bbs/bbs/bbssrc# apt-get install termcap-compat
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
termcap-compat 已经是最新的版本了。
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 9 个软件未被升级 。
hacker:/home/bbs/bbs/bbssrc#
回复 支持 反对

使用道具 举报

发表于 2005-6-3 00:08:14 | 显示全部楼层
Post by jhuangjiahua
你的源里没有 deb-src 项


要加什么东西??

能不能说的详细一些,我是刚刚学的~~~~

谢谢

问什么用了他还是不行???



  1. hacker:/home/bbs/bbs/bbssrc# apt-get install libtermcap
  2. 正在读取软件包列表... 完成
  3. 正在分析软件包的依赖关系树... 完成
  4. 现在没有可用的软件包 libtermcap,但是它被其它的软件包引用了。
  5. 这可能意味着这个缺失的软件包可能已被废弃,
  6. 或者只能在其他发布源中找到
  7. 可是下列的软件包取代了它:
  8. termcap-compat
  9. E: 软件包 libtermcap 还没有可供安装的候选者
  10. hacker:/home/bbs/bbs/bbssrc# apt-get install termcap-compat
  11. 正在读取软件包列表... 完成
  12. 正在分析软件包的依赖关系树... 完成
  13. termcap-compat 已经是最新的版本了。
  14. 共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 9 个软件未被升级 。

复制代码
回复 支持 反对

使用道具 举报

发表于 2005-6-3 00:32:57 | 显示全部楼层
你可以试试把你的 /etc/apt/sources.list
换成我的

  1. ## Sid 的 源
  2. deb ftp://ftp.jp.debian.org/debian/ sid main contrib non-free
  3. ·color=red]deb-src[/color] ftp://ftp.jp.debian.org/debian/ sid main contrib non-free

  4. ## kanru 的粗体 FreeType
  5. deb http://people.debian.org.tw/~koster/debian/sid ./
  6. deb-src http://people.debian.org.tw/~koster/debian/sid ./
复制代码



换了以后要记得
apt-get update
回复 支持 反对

使用道具 举报

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

本版积分规则

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