make gnupg 报错

编译打包和其他
回复
ak47kkk
帖子: 21
注册时间: 2012-09-27 22:45
系统: WINDOWS 7

make gnupg 报错

#1

帖子 ak47kkk » 2012-10-18 0:38

各位大侠,我下载了gnupg源文件,准备make后使用,但运行make的结果如下:

compress.o: In function `do_compress':
/home/steve/Desktop/gnupg-2.0.19/g10/compress.c:107: undefined reference to `deflate'
compress.o: In function `init_uncompress':
/home/steve/Desktop/gnupg-2.0.19/g10/compress.c:147: undefined reference to `inflateInit_'
compress.o: In function `do_uncompress':
/home/steve/Desktop/gnupg-2.0.19/g10/compress.c:196: undefined reference to `inflate'
compress.o: In function `init_compress':
/home/steve/Desktop/gnupg-2.0.19/g10/compress.c:82: undefined reference to `deflateInit_'
compress.o: In function `init_uncompress':
/home/steve/Desktop/gnupg-2.0.19/g10/compress.c:147: undefined reference to `inflateInit2_'
compress.o: In function `init_compress':
/home/steve/Desktop/gnupg-2.0.19/g10/compress.c:82: undefined reference to `deflateInit2_'
compress.o: In function `compress_filter':
/home/steve/Desktop/gnupg-2.0.19/g10/compress.c:264: undefined reference to `inflateEnd'
/home/steve/Desktop/gnupg-2.0.19/g10/compress.c:273: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
make[2]: *** [gpg2] Error 1
make[2]: Leaving directory `/home/steve/Desktop/gnupg-2.0.19/g10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/steve/Desktop/gnupg-2.0.19'
make: *** [all] Error 2

个人理解是链接器ld无法找到包含如上多处引用的目标文件,换句话说,还是缺文件,如果真是这个原因,我怎么知道是缺哪个文件呢?请指教,多谢了!
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: make gnupg 报错

#2

帖子 YeLee » 2012-10-18 12:22

我想,直接用源里面的是最快捷的方式了,当然,偏要编译的话,apt的build-dep可以减轻你的工作。 :em01
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
ak47kkk
帖子: 21
注册时间: 2012-09-27 22:45
系统: WINDOWS 7

Re: make gnupg 报错

#3

帖子 ak47kkk » 2012-10-18 14:01

YeLee 写了:我想,直接用源里面的是最快捷的方式了,当然,偏要编译的话,apt的build-dep可以减轻你的工作。 :em01
Hi Yelee, 我是Ubuntu新手,你说的apt的build-dep具体如何使用呢?能否指点我一下?

apt-get build-dep <这里应该填什么?>,我下的是一堆source文件,这里应该指定哪个东西?

多谢了!!
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: make gnupg 报错

#4

帖子 YeLee » 2012-10-18 15:12

直接用apt-get build-dep gnupg吧,这样就会帮助你安装好构建gnupg的依赖了,当然,你也可以用apt-get source gnupg得到源里面的版本。
这篇文章或许对你有用。
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
ak47kkk
帖子: 21
注册时间: 2012-09-27 22:45
系统: WINDOWS 7

Re: make gnupg 报错

#5

帖子 ak47kkk » 2012-10-18 23:48

YeLee 写了:直接用apt-get build-dep gnupg吧,这样就会帮助你安装好构建gnupg的依赖了,当然,你也可以用apt-get source gnupg得到源里面的版本。
这篇文章或许对你有用。
感谢,确实有用!
回复