[问题]装drcom,一到make,make install这一步就挂了,救命啊……

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

[问题]装drcom,一到make,make install这一步就挂了,救命啊……

#1

帖子 cs7294 » 2008-08-23 9:14

我用的是Ubuntu 8.04的,在装某些tar.gz包时到后面有什么make,make install命令,由于是才学两三天,所以安装时都是照着网上和书上一步一步做的。可真怎么仔细到后面的,make什么的就出问题了。

就比如我要装drcom,在没上网的情况下试验的(因为到了学校可没有网给装,除非能登录drcom)。装好build-essential了,解压得了。一到make && sudo make install 就错误了。

其实不只是装drcom,学着装些什么xmms什么的也是在make这方面出问题。都是照着一步一步做的。也在网上查过,但还是没什么用……

救命啊……明天就要去学校了,再装不好drcom就上不了网了……


glinux@glinux-desktop:~/drcom-1.4.7$ make && sudo make install
make[1]: Entering directory `/home/glinux/drcom-1.4.7/drcomc'
CC 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: unistd.h: No such file or directory
drcomc.c:5:23: error: sys/types.h: No such file or directory
drcomc.c:6:24: error: sys/socket.h: No such file or directory
drcomc.c:7:20: error: sys/un.h: No such file or directory
In file included from drcomc.c:9:
../include/client_daemon.h:4:20: error: stdint.h: No such file or directory
In file included from drcomc.c:9:
../include/client_daemon.h:13: error: expected specifier-qualifier-list before ‘uint16_t’
../include/client_daemon.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘safe_recv’
../include/client_daemon.h:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘safe_send’
In file included from drcomc.c:10:
../include/utils.h:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘safe_send’
../include/utils.h:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘safe_recv’
../include/utils.h:6: error: expected declaration specifiers or ‘...’ before ‘u_int32_t’
drcomc.c: In function ‘usage’:
drcomc.c:17: warning: implicit declaration of function ‘puts’
drcomc.c: At top level:
drcomc.c:21: error: expected declaration specifiers or ‘...’ before ‘uint16_t’
drcomc.c: In function ‘send_command’:
drcomc.c:31: error: ‘ssize_t’ undeclared (first use in this function)
drcomc.c:31: error: (Each undeclared identifier is reported only once
drcomc.c:31: error: for each function it appears in.)
drcomc.c:31: error: expected ‘;’ before ‘r’
drcomc.c:33: error: ‘command’ undeclared (first use in this function)
drcomc.c:48: warning: implicit declaration of function ‘strlen’
drcomc.c:48: warning: incompatible implicit declaration of built-in function ‘strlen’
drcomc.c:51: warning: implicit declaration of function ‘printf’
drcomc.c:51: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:55: warning: implicit declaration of function ‘memset’
drcomc.c:55: warning: incompatible implicit declaration of built-in function ‘memset’
drcomc.c:56: warning: implicit declaration of function ‘strncpy’
drcomc.c:56: warning: incompatible implicit declaration of built-in function ‘strncpy’
drcomc.c:63: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:67: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:68: error: ‘struct drcomcd_hdr’ has no member named ‘type’
drcomc.c:70: error: ‘r’ undeclared (first use in this function)
drcomc.c:70: warning: implicit declaration of function ‘safe_send’
drcomc.c: In function ‘recv_acknowledge’:
drcomc.c:84: error: ‘ssize_t’ undeclared (first use in this function)
drcomc.c:84: error: expected ‘;’ before ‘r’
drcomc.c:88: error: ‘r’ undeclared (first use in this function)
drcomc.c:88: warning: implicit declaration of function ‘safe_recv’
drcomc.c:92: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:93: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:97: error: ‘struct drcomcd_hdr’ has no member named ‘msg_len’
drcomc.c:100: warning: implicit declaration of function ‘malloc’
drcomc.c:100: warning: incompatible implicit declaration of built-in function ‘malloc’
drcomc.c:100: error: ‘struct drcomcd_hdr’ has no member named ‘msg_len’
drcomc.c:101: error: ‘NULL’ undeclared (first use in this function)
drcomc.c:102: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:106: error: ‘struct drcomcd_hdr’ has no member named ‘msg_len’
drcomc.c:107: error: ‘struct drcomcd_hdr’ has no member named ‘msg_len’
drcomc.c:108: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:112: error: ‘struct drcomcd_hdr’ has no member named ‘msg_len’
drcomc.c:114: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:116: warning: implicit declaration of function ‘free’
drcomc.c:117: error: ‘struct drcomcd_hdr’ has no member named ‘is_end’
drcomc.c:120: error: ‘struct drcomcd_hdr’ has no member named ‘type’
drcomc.c: In function ‘init_socket’:
drcomc.c:129: error: storage size of ‘un_daemon’ isn’t known
drcomc.c:131: warning: incompatible implicit declaration of built-in function ‘memset’
drcomc.c:131: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_un’
drcomc.c:132: error: ‘AF_UNIX’ undeclared (first use in this function)
drcomc.c:134: warning: incompatible implicit declaration of built-in function ‘strncpy’
drcomc.c:136: warning: implicit declaration of function ‘socket’
drcomc.c:136: error: ‘PF_UNIX’ undeclared (first use in this function)
drcomc.c:136: error: ‘SOCK_STREAM’ undeclared (first use in this function)
drcomc.c:138: warning: implicit declaration of function ‘perror’
drcomc.c:142: warning: implicit declaration of function ‘connect’
drcomc.c:129: warning: unused variable ‘un_daemon’
drcomc.c: In function ‘main’:
drcomc.c:154: error: ‘uint16_t’ undeclared (first use in this function)
drcomc.c:154: error: expected ‘;’ before ‘command’
drcomc.c:155: error: ‘NULL’ undeclared (first use in this function)
drcomc.c:161: warning: implicit declaration of function ‘strcmp’
drcomc.c:162: error: ‘command’ undeclared (first use in this function)
drcomc.c:170: warning: implicit declaration of function ‘exit’
drcomc.c:170: warning: incompatible implicit declaration of built-in function ‘exit’
drcomc.c:175: warning: incompatible implicit declaration of built-in function ‘exit’
drcomc.c:177: error: too many arguments to function ‘send_command’
drcomc.c:181: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:186: warning: implicit declaration of function ‘close’
make[1]: *** [drcomc.o] Error 1
make[1]: Leaving directory `/home/glinux/drcom-1.4.7/drcomc'
make: *** [all] Error 1
上次由 cs7294 在 2008-08-23 9:22,总共编辑 1 次。
头像
matri
帖子: 1140
注册时间: 2006-10-27 11:14
来自: 悉尼

#2

帖子 matri » 2008-08-23 9:19

先要./configure吧,你不configure,make的时候怎么知道到哪里去找头文件?
cs7294
帖子: 5
注册时间: 2008-08-23 9:03

#3

帖子 cs7294 » 2008-08-23 9:21

解压出来的文件夹里没有configure,就是输了./configure也没用。真弄不明白为什么别的做就得……
上次由 cs7294 在 2008-08-23 9:21,总共编辑 1 次。
头像
bobo712
帖子: 63
注册时间: 2007-09-26 15:27

#4

帖子 bobo712 » 2008-08-23 9:21

./configure
make
sudo make install
试下拉
头像
冲浪板
论坛版主
帖子: 7513
注册时间: 2007-05-06 8:19

#5

帖子 冲浪板 » 2008-08-23 9:36

没编译环境呗~~~
头像
luojie-dune
帖子: 22033
注册时间: 2007-07-30 18:28
系统: Linux
来自: 空气中

#6

帖子 luojie-dune » 2008-08-23 9:40

lz真的有学吗。。。
『这个世界都是我的 ,我爱你们』

ENTP ⥂ INTP ⥄ INFP ⇦ INTJ

在此发布的文章使用 Creative Commons Attribution-ShareAlike 4.0 协议
头像
牙签儿
帖子: 509
注册时间: 2007-06-30 0:27

#7

帖子 牙签儿 » 2008-08-23 9:52

万恶的校园网!
反对台独,反对藏独,反对孤独!
apt-get不是万能的:

代码: 全选

sudo apt-get install girlfriend
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
有一些软件包无法被安装。
下列的信息可能会对解决问题有所帮助:
下列的软件包有不能满足的依赖关系:
girlfiend: 依赖: hourse但是它将不会被安装
girlfiend: 依赖: car但是它将不会被安装
house,car: 依赖: money但是它将不会被安装
E: 无法安装的软件包
cs7294
帖子: 5
注册时间: 2008-08-23 9:03

#8

帖子 cs7294 » 2008-08-23 10:04

build-essential不就是所谓的编译环境吗?

虚拟机出问题了……到真机去再试看……
头像
gamespy
帖子: 126
注册时间: 2007-02-22 18:20

#9

帖子 gamespy » 2008-08-23 10:17

GCC装过没
cs7294
帖子: 5
注册时间: 2008-08-23 9:03

#10

帖子 cs7294 » 2008-08-23 10:31

刚刚看了一下,装了。真机里没动过,从网下sudo apt-get install build-essential。安装得了。

再sudo apt-get install gcc

提示已经是最新版本。

不知道用wine能不能行,我用wine运行 我在学校时装的Dr.COM后可以运行,不过字显示不正常。而且不是在学校,不知道能不用能。

也直接运行过drcom里的那个drcomd文件里的login,提示输入用户名和密码。也不知道能不能用………………

只有看到学校交费后试 一下才知道结果了……总之用make是没用了……
头像
syrano
帖子: 4313
注册时间: 2007-10-06 18:40

#11

帖子 syrano » 2008-08-23 11:00

E=m c^2
头像
syrano
帖子: 4313
注册时间: 2007-10-06 18:40

#12

帖子 syrano » 2008-08-23 11:02

内核是什么?
内核头文件装了没有?
E=m c^2
cs7294
帖子: 5
注册时间: 2008-08-23 9:03

#13

帖子 cs7294 » 2008-08-23 11:32

说白了,我参考的资料和 viewtopic.php?t=113065 上的一模一样,但就是在Make出错,明明全都一样的做法都不行,要不我也不会在这里喊救命了……

我就从Ubuntu上下了个Ubuntu 8.04.1 Desktop下来就装,没升级过内核,我也没听说什么头文件,再说了,那些资料里也没说到这方面的…………
上次由 cs7294 在 2008-08-23 11:33,总共编辑 1 次。
头像
syrano
帖子: 4313
注册时间: 2007-10-06 18:40

#14

帖子 syrano » 2008-08-23 11:33

cs7294 写了:说白了,我参考的资料和 viewtopic.php?t=113065 上的一模一样,但就是在Make出错,明明全都一样的做法都不行,要不我也不会在这里喊救命了……
重装? :oops:
E=m c^2
头像
luojie-dune
帖子: 22033
注册时间: 2007-07-30 18:28
系统: Linux
来自: 空气中

#15

帖子 luojie-dune » 2008-08-23 12:03

在于no such file。。。一步一步看看有没有低级错误。。。
『这个世界都是我的 ,我爱你们』

ENTP ⥂ INTP ⥄ INFP ⇦ INTJ

在此发布的文章使用 Creative Commons Attribution-ShareAlike 4.0 协议
回复