QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 692|回复: 7

Hiweed下如何编译源码?

[复制链接]
发表于 2004-9-16 13:40:18 | 显示全部楼层 |阅读模式
Hiweed下如何编译源码?

不知道该装什么包,提示:
./configure
checking for gcc... gcc
checking for C compiler default output... configure:error: C compiler cannot create executables
See 'config.log' for more details.

我该怎么做?
发表于 2004-9-16 14:17:18 | 显示全部楼层
libc6-dev 没装
回复

使用道具 举报

 楼主| 发表于 2004-9-16 15:12:10 | 显示全部楼层

能编译了,可是好像还却些什么。我是新手,能指点一下吗?

$ make
cd src && make depend
make[1]: Entering directory `/home/akic/libbt-1.02/src'
makedepend -- -g -Wall -I../include -I../include - benc.c bts.c types.c random.c strbuf.c stream.c peer.c segmenter.c util.c bitset.c context.c bterror.c
makedepend: warning:  /usr/include/gnu/stubs.h:  non-portable whitespace encountered at line 7
makedepend: warning:  random.c, line 19: cannot find include file "openssl/sha.h"
        not in ../include/openssl/sha.h
        not in ../include/openssl/sha.h
        not in /usr/local/lib/gcc-include/openssl/sha.h
        not in /usr/include/openssl/sha.h
        not in /usr/lib/gcc-lib/i486-linux/3.3.4/include/openssl/sha.h
makedepend: warning:  peer.c (reading ../include/segmenter.h, line 3): cannot find include file "openssl/sha.h"
        not in ../include/openssl/sha.h
        not in ../include/openssl/sha.h
        not in /usr/local/lib/gcc-include/openssl/sha.h
        not in /usr/include/openssl/sha.h
        not in /usr/lib/gcc-lib/i486-linux/3.3.4/include/openssl/sha.h
makedepend: warning:  peer.c (reading ../include/context.h, line 3): cannot find include file "openssl/sha.h"
        not in ../include/openssl/sha.h
        not in ../include/openssl/sha.h
        not in /usr/local/lib/gcc-include/openssl/sha.h
        not in /usr/include/openssl/sha.h
        not in /usr/lib/gcc-lib/i486-linux/3.3.4/include/openssl/sha.h
makedepend: warning:  segmenter.c, line 4: cannot find include file "openssl/sha.h"
        not in ../include/openssl/sha.h
        not in ../include/openssl/sha.h
        not in /usr/local/lib/gcc-include/openssl/sha.h
        not in /usr/include/openssl/sha.h
        not in /usr/lib/gcc-lib/i486-linux/3.3.4/include/openssl/sha.h
makedepend: warning:  context.c, line 4: cannot find include file "curl/curl.h"
        not in ../include/curl/curl.h
        not in ../include/curl/curl.h
        not in /usr/local/lib/gcc-include/curl/curl.h
        not in /usr/include/curl/curl.h
        not in /usr/lib/gcc-lib/i486-linux/3.3.4/include/curl/curl.h
makedepend: warning:  context.c, line 5: cannot find include file "curl/easy.h"
        not in ../include/curl/easy.h
        not in ../include/curl/easy.h
        not in /usr/local/lib/gcc-include/curl/easy.h
        not in /usr/include/curl/easy.h
        not in /usr/lib/gcc-lib/i486-linux/3.3.4/include/curl/easy.h
makedepend: warning:  context.c, line 6: cannot find include file "openssl/sha.h"
        not in ../include/openssl/sha.h
        not in ../include/openssl/sha.h
        not in /usr/local/lib/gcc-include/openssl/sha.h
        not in /usr/include/openssl/sha.h
        not in /usr/lib/gcc-lib/i486-linux/3.3.4/include/openssl/sha.h
make[1]: Leaving directory `/home/akic/libbt-1.02/src'
cd src && make
make[1]: Entering directory `/home/akic/libbt-1.02/src'
gcc -c -g -Wall -I../include -I../include  random.c -o random.o
random.c:19:25: openssl/sha.h: 没有那个文件或目录
random.c: In function `seed_rnd':
random.c:25: error: `SHA_DIGEST_LENGTH' undeclared (first use in this function)
random.c:25: error: (Each undeclared identifier is reported only once
random.c:25: error: for each function it appears in.)
random.c:26: warning: implicit declaration of function `SHA1'
random.c:25: warning: unused variable `dg'
make[1]: *** [random.o] 错误 1
make[1]: Leaving directory `/home/akic/libbt-1.02/src'
make: *** [compile] 错误 2
回复

使用道具 举报

发表于 2004-9-16 17:56:54 | 显示全部楼层
按照二楼仁兄的方法用apt-get install取得
libc6-dev
回复

使用道具 举报

 楼主| 发表于 2004-9-16 22:54:22 | 显示全部楼层
libc6-dev 我已经装过了,上面是出错信息,我不知道还缺什么。
刚装的Hiweed,看不出少了什么包。
以前从来没有编译过,希望你们能指点一下。
回复

使用道具 举报

发表于 2004-9-16 22:57:44 | 显示全部楼层
apt-get install 你要装的文件名
debian的包管理是很出名的!!初学者可以这么装!!省了很多麻烦的!!
回复

使用道具 举报

 楼主| 发表于 2004-9-16 23:12:12 | 显示全部楼层
这个我已经感觉到了,可是关键是我不知道少了什么包。
上面有我编译libbt的出错信息,能帮我看看是什么原因吗?
回复

使用道具 举报

发表于 2004-9-16 23:26:36 | 显示全部楼层
  
不好意思这个我不是太熟,但是你可以试试在./congure 后面加上参数跳过去也许就没问题了@@
或者看看他的INSTALL文件有没有说这个问题!!
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-16 06:39 , Processed in 0.070795 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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