sSslang 发表于 2004-9-16 13:40:18

Hiweed下如何编译源码?

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.

我该怎么做?

hew 发表于 2004-9-16 14:17:18

libc6-dev 没装

sSslang 发表于 2004-9-16 15:12:10

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

$ make
cd src && make depend
make: 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: Leaving directory `/home/akic/libbt-1.02/src'
cd src && make
make: Entering directory `/home/akic/libbt-1.02/src'
gcc -c -g -Wall -I../include -I../includerandom.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
make: Leaving directory `/home/akic/libbt-1.02/src'
make: *** 错误 2

flycity 发表于 2004-9-16 17:56:54

按照二楼仁兄的方法用apt-get install取得
libc6-dev

sSslang 发表于 2004-9-16 22:54:22

libc6-dev 我已经装过了,上面是出错信息,我不知道还缺什么。
刚装的Hiweed,看不出少了什么包。
以前从来没有编译过,希望你们能指点一下。

sutie 发表于 2004-9-16 22:57:44

apt-get install 你要装的文件名
debian的包管理是很出名的!!初学者可以这么装!!省了很多麻烦的!!

sSslang 发表于 2004-9-16 23:12:12

这个我已经感觉到了,可是关键是我不知道少了什么包。
上面有我编译libbt的出错信息,能帮我看看是什么原因吗?

sutie 发表于 2004-9-16 23:26:36

:oops::oops:
不好意思这个我不是太熟,但是你可以试试在./congure 后面加上参数跳过去也许就没问题了@@
或者看看他的INSTALL文件有没有说这个问题!!
页: [1]
查看完整版本: Hiweed下如何编译源码?