求助:ubuntu8.04安装不了drcom,出现错误

重复贴和参考价值不大的帖子,版主维护
回复
南蛮人
帖子: 12
注册时间: 2008-10-17 3:39
送出感谢: 0
接收感谢: 0

求助:ubuntu8.04安装不了drcom,出现错误

#1

帖子 南蛮人 » 2008-11-04 23:06

wei@wei-desktop:~/drcom-1.4.7$ make&&sudo make install
执行这步时出现错误

部分错误原因如下

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/wei/drcom-1.4.7/drcomc'
make: *** [all] Error 1
南蛮人
帖子: 12
注册时间: 2008-10-17 3:39
送出感谢: 0
接收感谢: 0

Re: 求助:ubuntu8.04安装不了drcom,出现错误

#2

帖子 南蛮人 » 2008-11-04 23:07

刚刚开始时的原因

make[1]: Entering directory `/home/wei/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:
南蛮人
帖子: 12
注册时间: 2008-10-17 3:39
送出感谢: 0
接收感谢: 0

Re: 求助:ubuntu8.04安装不了drcom,出现错误

#3

帖子 南蛮人 » 2008-11-04 23:08

不知道啥子原因

希望高手帮忙解决
南蛮人
帖子: 12
注册时间: 2008-10-17 3:39
送出感谢: 0
接收感谢: 0

Re: 求助:ubuntu8.04安装不了drcom,出现错误

#4

帖子 南蛮人 » 2008-11-04 23:08

sudo mount -o loop ubuntu-*.iso /cdrom ##挂载iso
sudo apt-cdrom -m -d /cdrom add ##添加cdrom为源
sudo apt-get update ##刷新列表
sudo apt-get install build-essential ##安装编译环境
tar -xzf drcom-1.4.5.tar.gz ##解压命令
cd drcom-1.4.5
make
sudo make install #编译安装

就在这里开始出现错误
南蛮人
帖子: 12
注册时间: 2008-10-17 3:39
送出感谢: 0
接收感谢: 0

Re: 求助:ubuntu8.04安装不了drcom,出现错误

#5

帖子 南蛮人 » 2008-11-05 14:27

帅哥帮帮忙
小弟刚刚接触ubuntu
回复

回到 “归档贴”