当前位置: 技术问答>linux和unix
LDD3中SCULL问题
来源: 互联网 发布时间:2016-04-02
本文导语: 我编译这个SCULL通过了,没有什么问题,但是在调用程序中的SCULL_LOAD时,会报如下错误: [root@localhost scull]# ./scull_load ./scull_load: line 8: grep: command not found ./scull_load: line 19: awk: command not found ./scull_load: line 2...
我编译这个SCULL通过了,没有什么问题,但是在调用程序中的SCULL_LOAD时,会报如下错误:
[root@localhost scull]# ./scull_load
./scull_load: line 8: grep: command not found
./scull_load: line 19: awk: command not found
./scull_load: line 24: rm: command not found
./scull_load: line 25: mknod: command not found
./scull_load: line 26: mknod: command not found
./scull_load: line 27: mknod: command not found
./scull_load: line 28: mknod: command not found
./scull_load: line 29: ln: command not found
./scull_load: line 30: chgrp: command not found
./scull_load: line 31: chmod: command not found
./scull_load: line 33: rm: command not found
./scull_load: line 34: mknod: command not found
./scull_load: line 35: mknod: command not found
./scull_load: line 36: mknod: command not found
./scull_load: line 37: mknod: command not found
./scull_load: line 38: ln: command not found
./scull_load: line 39: chgrp: command not found
./scull_load: line 40: chmod: command not found
./scull_load: line 42: rm: command not found
./scull_load: line 43: mknod: command not found
./scull_load: line 44: chgrp: command not found
./scull_load: line 45: chmod: command not found
./scull_load: line 47: rm: command not found
./scull_load: line 48: mknod: command not found
./scull_load: line 49: chgrp: command not found
./scull_load: line 50: chmod: command not found
./scull_load: line 52: rm: command not found
./scull_load: line 53: mknod: command not found
./scull_load: line 54: chgrp: command not found
./scull_load: line 55: chmod: command not found
./scull_load: line 57: rm: command not found
./scull_load: line 58: mknod: command not found
./scull_load: line 59: chgrp: command not found
./scull_load: line 60: chmod: command not found
可是仍然是挂上了,不知道什么原因,同样在调用SCULL_UNLOAD时,也出现类似的错误。请高手指正,不知道什么原因,具郁闷。
[root@localhost scull]# ./scull_load
./scull_load: line 8: grep: command not found
./scull_load: line 19: awk: command not found
./scull_load: line 24: rm: command not found
./scull_load: line 25: mknod: command not found
./scull_load: line 26: mknod: command not found
./scull_load: line 27: mknod: command not found
./scull_load: line 28: mknod: command not found
./scull_load: line 29: ln: command not found
./scull_load: line 30: chgrp: command not found
./scull_load: line 31: chmod: command not found
./scull_load: line 33: rm: command not found
./scull_load: line 34: mknod: command not found
./scull_load: line 35: mknod: command not found
./scull_load: line 36: mknod: command not found
./scull_load: line 37: mknod: command not found
./scull_load: line 38: ln: command not found
./scull_load: line 39: chgrp: command not found
./scull_load: line 40: chmod: command not found
./scull_load: line 42: rm: command not found
./scull_load: line 43: mknod: command not found
./scull_load: line 44: chgrp: command not found
./scull_load: line 45: chmod: command not found
./scull_load: line 47: rm: command not found
./scull_load: line 48: mknod: command not found
./scull_load: line 49: chgrp: command not found
./scull_load: line 50: chmod: command not found
./scull_load: line 52: rm: command not found
./scull_load: line 53: mknod: command not found
./scull_load: line 54: chgrp: command not found
./scull_load: line 55: chmod: command not found
./scull_load: line 57: rm: command not found
./scull_load: line 58: mknod: command not found
./scull_load: line 59: chgrp: command not found
./scull_load: line 60: chmod: command not found
可是仍然是挂上了,不知道什么原因,同样在调用SCULL_UNLOAD时,也出现类似的错误。请高手指正,不知道什么原因,具郁闷。
|
似乎可以排除权限问题,因为insmod可以执行,从提示符看来好像已经是root了
1)检查PATH环境变量,
2)缺省的shell是什么shell?
1)检查PATH环境变量,
2)缺省的shell是什么shell?
|
locate mknod
找一下 mknod命令,在什么地方。
找一下 mknod命令,在什么地方。
|
切换到超级用户, 再试一下。
这个错误是找不到 mknod 命令.可能是权限不够。
这个错误是找不到 mknod 命令.可能是权限不够。
|
系统问题,看看PATH环境变量的