LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 802|回复: 4

drcom无法安装!(已解决)

[复制链接]
发表于 2009-11-15 17:47:40 | 显示全部楼层 |阅读模式
  1. [ballakay@myhost drcom-pum-1.0 (2)]$ sudo make install
  2. make[1]: Entering directory `/home/ballakay/drcom-pum-1.0 (2)/src'
  3. make[1]: Leaving directory `/home/ballakay/drcom-pum-1.0 (2)/src'
  4. make[1]: Entering directory `/home/ballakay/drcom-pum-1.0 (2)/resource'
  5. make[1]: Leaving directory `/home/ballakay/drcom-pum-1.0 (2)/resource'
  6. :: Starting drcom kernel module.                                         [DONE]
  7. Could not find add/remove init scripts to a runlevel utility
  8. This operation can not continue without it
复制代码
用的是改版的!Ubuntu9.10可用,Arch无法安装!郁闷!

解决办法:
就这句话:
  1. ## FIXME: ArchLinux has to del runlevel by hand.
  2.         ## Edit /etc/rc.conf, and del "drcom" to the MODULES list:
  3.         ## DAEMONS=(... drcom ...)
复制代码
并且安装python-notify
搞定了!!!!!!!!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2009-11-16 11:39:24 | 显示全部楼层
我们学校用的也是dr.com ,不过能有网页登录。
回复 支持 反对

使用道具 举报

发表于 2009-11-16 22:55:38 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2009-11-16 23:47:56 | 显示全部楼层
我也很郁闷 ,主要是/usr/src/linux-*arch 下的源代码不全,只有32M ,无法编译 ,我重新下了一个linux kernel 源码,重编译了一个内核, 然后在那个内核下进行以上工作应该可以编译通过
我不知道如何把系统默认的源代码下载下载,不用新新编译内核,谁 能告诉我呀
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-17 01:13:02 | 显示全部楼层
估计是这个脚本有问题:
  1. #! /bin/bash
  2. ##
  3. ## drcom-client PUM v1.0, Python User Mode
  4. ##
  5. ##               drunlevel
  6. ## install init script for drcom kernel module loaded at boot-up
  7. ##
  8. ## Copyright (c) 2009, drcom-client Team
  9. ## Author:                Henry Huang <henry.s.huang@gmail.com>
  10. ##
  11. ## This program is free software; you can redistribute it and/or
  12. ## modify it under the terms of the GNU General Public
  13. ## License as published by the Free Software Foundation; either
  14. ## version 2.1 of the License, or (at your option) any later version.
  15. ##
  16. ## This program is distributed in the hope that it will be useful,
  17. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  19. ## General Public License for more details.
  20. #
  21. ## You should have received a copy of the GNU General Public
  22. ## License along with this program; if not, write to the
  23. ## Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  24. ## Boston, MA 02111-1307, USA.
  25. runlevels=35
  26. system=unknown
  27. if [ -f /etc/redhat-release ]; then
  28.     system=redhat
  29.     util=$(type -p /sbin/chkconfig)
  30. elif [ -f /etc/SuSE-release ]; then
  31.     system=suse
  32.     util=$(type -p /sbin/chkconfig)
  33. elif [ -f /etc/debian_version ]; then
  34.     system=debian
  35.     util=$(type -p update-rc.d)
  36. elif [ -f /etc/gentoo-release ]; then
  37.     system=gentoo
  38.     util=$(type -p rc-update)
  39. ## FIXME: ArchLinux has to add/del runlevel by hand.
  40. elif [ -f /etc/arch-release ]; then
  41.         system=archlinux
  42. else
  43.     echo "$0: Unknown system" 1>&2
  44. fi
  45. if [ -z $util ]; then
  46.     echo Could not find add/remove init scripts to a runlevel utility 1>&2
  47.     echo This operation can not continue without it 1>&2
  48.     exit 1
  49. fi
  50. fail() {
  51.     echo "$1"
  52.     exit 1
  53. }
  54. addrunlevel() {
  55.     if [ $system == "redhat" ] || [ $system == "suse" ]; then
  56.         $util --del $1 >&/dev/null
  57.         if $util -v &>/dev/null; then
  58.             $util --level $runlevels $1 on || {
  59.                 fail "Cannot add $1 to run levels: $runlevels"
  60.             }
  61.         else
  62.             $util $1 $runlevels || {
  63.                 fail "Cannot add $1 to run levels: $runlevels"
  64.             }
  65.         fi
  66.     elif [ $system == "debian" ]; then
  67.         # Debian does not support dependencies currently -- use argument $2
  68.         # for start sequence number and argument $3 for stop sequence number
  69.         $util -f $1 remove >&/dev/null
  70.         $util $1 defaults $2 $3 >&/dev/null
  71.     elif [ $system == "gentoo" ]; then
  72.         $util del $1 >&/dev/null
  73.         $util add $1 default >&/dev/null
  74.         ## FIXME: ArchLinux has to add runlevel by hand.
  75.         ## Edit /etc/rc.conf, and add "drcom" to the MODULES list:
  76.         ## DAEMONS=(... drcom ...)       
  77.     fi
  78. }
  79. delrunlevel() {
  80.     if [ $system == "redhat" ] || [ $system == "suse" ]; then
  81.         if $util --list $1 >& /dev/null; then
  82.             $util --del $1 >& /dev/null || {
  83.                 fail "Cannot delete $1 from runlevels"
  84.             }
  85.         fi
  86.     elif [ $system == "debian" ]; then
  87.         $util -f $1 remove >&/dev/null
  88.     elif [ $system == "gentoo" ]; then
  89.         $util del $1 >&/dev/null
  90.     fi
  91.         ## FIXME: ArchLinux has to del runlevel by hand.
  92.         ## Edit /etc/rc.conf, and del "drcom" to the MODULES list:
  93.         ## DAEMONS=(... drcom ...)       
  94. }
  95. usage() {
  96.     echo "Usage: $0 {add|del} script"
  97.     exit 1
  98. }
  99. # Test for second argument
  100. test -z $2 && {
  101.     usage
  102. }
  103. case "$1" in
  104. add)
  105.     addrunlevel $2 $3 $4
  106.     ;;
  107. del)
  108.     delrunlevel $2
  109.     ;;
  110. *)
  111.     usage
  112. esac
  113. exit
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表