drcom安装问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
tiany_524
帖子: 2
注册时间: 2007-12-01 23:45

drcom安装问题

#1

帖子 tiany_524 » 2007-12-03 12:35

在安装时报错
怎么回事?
tianyu@tianyu-laptop:/tmp/drcom-1.3.7$ make
make -C drcomc
make[1]: Entering directory `/tmp/drcom-1.3.7/drcomc'
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/tmp/drcom-1.3.7/include -O2 -c -o drcomc.o drcomc.c
drcomc.c:1:19: error: stdio.h: No such file or directory
drcomc.c:2:20: error: string.h: No such file or directory
drcomc.c:3:20: error: stdlib.h: No such file or directory
drcomc.c:4:20: error: stdint.h: No such file or directory
drcomc.c:5:20: error: unistd.h: No such file or directory
drcomc.c:6:23: error: sys/types.h: No such file or directory
drcomc.c:7:24: error: sys/socket.h: No such file or directory
drcomc.c:8:20: error: sys/un.h: No such file or directory
In file included from drcomc.c:11:
/tmp/drcom-1.3.7/include/client_daemon.h:5:18: error: time.h: No such file or directory
In file included from drcomc.c:11:
/tmp/drcom-1.3.7/include/client_daemon.h:15: error: expected specifier-qualifier-list before ‘uint16_t’
/tmp/drcom-1.3.7/include/client_daemon.h:17: warning: struct has no members
drcomc.c: In function ‘main’:
drcomc.c:27: error: storage size of ‘un_daemon’ isn’t known
drcomc.c:33: warning: implicit declaration of function ‘strcmp’
drcomc.c:44: warning: implicit declaration of function ‘memset’
drcomc.c:44: warning: incompatible implicit declaration of built-in function ‘memset’
drcomc.c:44: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_un’
drcomc.c:45: error: ‘AF_UNIX’ undeclared (first use in this function)
drcomc.c:45: error: (Each undeclared identifier is reported only once
drcomc.c:45: error: for each function it appears in.)
drcomc.c:47: warning: implicit declaration of function ‘strncpy’
drcomc.c:47: warning: incompatible implicit declaration of built-in function ‘strncpy’
drcomc.c:52: warning: implicit declaration of function ‘socket’
drcomc.c:52: error: ‘PF_UNIX’ undeclared (first use in this function)
drcomc.c:52: error: ‘SOCK_STREAM’ undeclared (first use in this function)
drcomc.c:55: warning: implicit declaration of function ‘perror’
drcomc.c:56: warning: implicit declaration of function ‘exit’
drcomc.c:56: warning: incompatible implicit declaration of built-in function ‘exit’
drcomc.c:56: error: ‘EXIT_FAILURE’ undeclared (first use in this function)
drcomc.c:61: warning: implicit declaration of function ‘connect’
drcomc.c:65: warning: incompatible implicit declaration of built-in function ‘exit’
drcomc.c:75: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:76: error: ‘struct drcomcd_hdr’ has no member named ‘type’
drcomc.c:80: warning: implicit declaration of function ‘memcpy’
drcomc.c:80: warning: incompatible implicit declaration of built-in function ‘memcpy’
drcomc.c:85: warning: implicit declaration of function ‘send’
drcomc.c:96: warning: implicit declaration of function ‘recv’
drcomc.c:99: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:104: warning: implicit declaration of function ‘printf’
drcomc.c:104: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:112: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:113: error: ‘struct drcomcd_hdr’ has no member named ‘type’
drcomc.c:135: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:140: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:148: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:149: error: ‘struct drcomcd_hdr’ has no member named ‘type’
drcomc.c:173: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:178: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:186: warning: implicit declaration of function ‘close’
drcomc.c:27: warning: unused variable ‘un_daemon’
drcomc.c: In function ‘usage’:
drcomc.c:193: warning: implicit declaration of function ‘puts’
drcomc.c:201: warning: incompatible implicit declaration of built-in function ‘exit’
drcomc.c:201: error: ‘EXIT_FAILURE’ undeclared (first use in this function)
drcomc.c: In function ‘print_result’:
drcomc.c:211: error: ‘struct drcomcd_hdr’ has no member named ‘type’
drcomc.c:213: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:214: error: ‘EXIT_SUCCESS’ undeclared (first use in this function)
drcomc.c:218: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:220: error: ‘EXIT_FAILURE’ undeclared (first use in this function)
make[1]: *** [drcomc.o] Error 1
make[1]: Leaving directory `/tmp/drcom-1.3.7/drcomc'
make: *** [drcomc] Error 2
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

#2

帖子 yaoms » 2007-12-03 12:45

编译环境问题,没找到include目录

执行

代码: 全选

 sudo apt-get install build-essential 
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
tiany_524
帖子: 2
注册时间: 2007-12-01 23:45

#3

帖子 tiany_524 » 2007-12-08 13:17

sudo apt-get install build-essential

安装时报错
说无法找到 软件包

我是安装的7.04
由于学校上网必须安装drcom
所以我没发上网

请问怎样获取 build-essential 软件包呢?



谢谢
回复