关于编译c语言的遇到的问题问题。

软件和网站开发以及相关技术探讨
回复
konglongdan
帖子: 15
注册时间: 2008-10-19 18:33

关于编译c语言的遇到的问题问题。

#1

帖子 konglongdan » 2009-03-05 19:21

~/aecium$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for C/C++ restrict keyword... __restrict
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether gcc needs -traditional... no
checking for working memcmp... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for inet_ntoa... yes
checking for memset... yes
checking for select... yes
checking for setlocale... yes
checking for socket... yes
checking for strerror... yes
checking for strrchr... yes
checking for strstr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands


是不是要后面全部是yes才行啊?
或者看看我这个可以继续下去不?
头像
竹影清风
帖子: 42
注册时间: 2008-09-09 17:14

Re: 关于编译c语言的遇到的问题问题。

#2

帖子 竹影清风 » 2009-03-05 20:14

应该可以 最后几条不过是说创建了几个makefile文件和一个h文件而已
下面应该就是make和make install了吧
tusooa
帖子: 6548
注册时间: 2008-10-31 22:12
系统: 践兔
联系:

Re: 关于编译c语言的遇到的问题问题。

#3

帖子 tusooa » 2009-08-20 23:22

ls,如果有Makefile, makefile, GNUmakefile之类的makefile就可以make了

代码: 全选

] ls -ld //
头像
CGer
帖子: 210
注册时间: 2009-06-21 19:38
来自: CUMT

Re: 关于编译c语言的遇到的问题问题。

#4

帖子 CGer » 2009-08-21 16:05

其实不是全部都是yes也是可以的把应该,只要依赖关系是满足的 :em09

代码: 全选

sudo apt-get install girlfriend
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
有一些软件包无法被安装。
下列的信息可能会对解决问题有所帮助:
下列的软件包有不能满足的依赖关系:
girlfriend: 依赖: house但是它将不会被安装
girlfriend: 依赖: car但是它将不会被安装
house,car: 依赖: money但是它将不会被安装
E: 无法安装的软件包
[/b]
头像
wyapples
帖子: 36
注册时间: 2008-07-09 17:05
来自: 北京
联系:

Re: 关于编译c语言的遇到的问题问题。

#5

帖子 wyapples » 2009-09-13 23:40

没提示缺少依赖就OK啦~
wyapples@wyapples-laptop:~$ sudo fo~a~ke GreatFW
[sudo] password for wyapples:
================
Welcome to fo~a~ke the GreatFW
================
Times:1000
Strength:High
OK,let's go!
-----------100% done------!
wyapples@wyapples-laptop:~$ I feel tired...
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 关于编译c语言的遇到的问题问题。

#6

帖子 wangdu2002 » 2009-09-13 23:43

不是所有的no都需要变成yes的。自己编译安装的软件,最好指定路径,以方便维护之,如--prefix=/usr,--prefix=/opt。 :em09
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
回复