分页: 1 / 2

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

发表于 : 2008-08-23 9:14
cs7294
我用的是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

发表于 : 2008-08-23 9:19
matri
先要./configure吧,你不configure,make的时候怎么知道到哪里去找头文件?

发表于 : 2008-08-23 9:21
cs7294
解压出来的文件夹里没有configure,就是输了./configure也没用。真弄不明白为什么别的做就得……

发表于 : 2008-08-23 9:21
bobo712
./configure
make
sudo make install
试下拉

发表于 : 2008-08-23 9:36
冲浪板
没编译环境呗~~~

发表于 : 2008-08-23 9:40
luojie-dune
lz真的有学吗。。。

发表于 : 2008-08-23 9:52
牙签儿
万恶的校园网!

发表于 : 2008-08-23 10:04
cs7294
build-essential不就是所谓的编译环境吗?

虚拟机出问题了……到真机去再试看……

发表于 : 2008-08-23 10:17
gamespy
GCC装过没

发表于 : 2008-08-23 10:31
cs7294
刚刚看了一下,装了。真机里没动过,从网下sudo apt-get install build-essential。安装得了。

再sudo apt-get install gcc

提示已经是最新版本。

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

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

只有看到学校交费后试 一下才知道结果了……总之用make是没用了……

发表于 : 2008-08-23 11:00
syrano

发表于 : 2008-08-23 11:02
syrano
内核是什么?
内核头文件装了没有?

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

我就从Ubuntu上下了个Ubuntu 8.04.1 Desktop下来就装,没升级过内核,我也没听说什么头文件,再说了,那些资料里也没说到这方面的…………

发表于 : 2008-08-23 11:33
syrano
cs7294 写了:说白了,我参考的资料和 viewtopic.php?t=113065 上的一模一样,但就是在Make出错,明明全都一样的做法都不行,要不我也不会在这里喊救命了……
重装? :oops:

发表于 : 2008-08-23 12:03
luojie-dune
在于no such file。。。一步一步看看有没有低级错误。。。