为什么我用configure的时候他报没有库的错?

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
回复
sanpetter
帖子: 30
注册时间: 2005-12-18 8:29

为什么我用configure的时候他报没有库的错?

#1

帖子 sanpetter » 2005-12-18 23:40

我用root登陆的,然后想用./configure编译个东西,结果出现如下错误
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /root/Desktop/linux_r31/1
checking cross compile...
checking for directory with kernel source... /usr/src/linux
checking for kernel version... The file /usr/src/linux/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).
这个库应该什么地方?我下载了kernel-source了阿。然后用kernel=目录那么索引的。也不行
谢谢大家不吝赐教
bobyang
帖子: 120
注册时间: 2005-11-26 19:01
联系:

#2

帖子 bobyang » 2005-12-19 3:02

如果你是apt-get install kernel-source安装的,一般应该在/usr/src下,但是可能是bz2的压缩文件,需要解压缩出来。
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#3

帖子 oneleaf » 2005-12-19 8:51

可以直接安装 linux-headers-386 或者 linux-headers-686

然后在 /usr/src 下软链接一下目录就好,不需要安装源码的。
sanpetter
帖子: 30
注册时间: 2005-12-18 8:29

谢谢:)

#4

帖子 sanpetter » 2005-12-20 2:13

系统挂掉了。
不过已经重装过了
sanpetter
帖子: 30
注册时间: 2005-12-18 8:29

#5

帖子 sanpetter » 2005-12-21 17:44

谢谢oneleaf的建议,原来缺的是这个啊。
回复