运行LDD3的例程scull中的scull_load时,出现了很多错误
2016-06-16 15:53
876 查看
运行LDD3的例程scull中的scull_load时,出现了很多错误:
awk: 0: unexpected character ‘\’
awk: line 1: syntax error at or near ==
mknod: missing operand after
mknod: missing operand after
mknod: missing operand after
mknod: missing operand after
chgrp: cannot access
mknod: missing operand after
mknod: missing operand after
mknod: missing operand after
mknod: missing operand after
chgrp: cannot access
mknod: missing operand after
chgrp: cannot access
mknod: missing operand after
chgrp: cannot access
mknod: missing operand after
chgrp: cannot access
mknod: missing operand after
chgrp: cannot access
解决办法:
原因:ubuntu里面的awk有点问题
办法:
1)apt-get install gawk
2)将scull_load中的
改为:
之后,再次运行scull_load就可以了。
awk: 0: unexpected character ‘\’
awk: line 1: syntax error at or near ==
mknod: missing operand after
0' Trymknod –help’ for more information.
mknod: missing operand after
1' Trymknod –help’ for more information.
mknod: missing operand after
2' Trymknod –help’ for more information.
mknod: missing operand after
3' Trymknod –help’ for more information.
chgrp: cannot access
/dev/scull[0-3]': No such file or directory chmod: cannot access/dev/scull[0-3]’: No such file or directory
mknod: missing operand after
4' Trymknod –help’ for more information.
mknod: missing operand after
5' Trymknod –help’ for more information.
mknod: missing operand after
6' Trymknod –help’ for more information.
mknod: missing operand after
7' Trymknod –help’ for more information.
chgrp: cannot access
/dev/scullpipe[0-3]': No such file or directory chmod: cannot access/dev/scullpipe[0-3]’: No such file or directory
mknod: missing operand after
8' Trymknod –help’ for more information.
chgrp: cannot access
/dev/scullsingle': No such file or directory chmod: cannot access/dev/scullsingle’: No such file or directory
mknod: missing operand after
9' Trymknod –help’ for more information.
chgrp: cannot access
/dev/sculluid': No such file or directory chmod: cannot access/dev/sculluid’: No such file or directory
mknod: missing operand after
10' Trymknod –help’ for more information.
chgrp: cannot access
/dev/scullwuid': No such file or directory chmod: cannot access/dev/scullwuid’: No such file or directory
mknod: missing operand after
11' Trymknod –help’ for more information.
chgrp: cannot access
/dev/scullpriv': No such file or directory chmod: cannot access/dev/scullpriv’: No such file or directory
解决办法:
原因:ubuntu里面的awk有点问题
办法:
1)apt-get install gawk
2)将scull_load中的
major=$(awk "\\$2==\"$module\" {print \\$1}" /proc/devices)
改为:
major=$(awk "\$2==\"$module\" {print \$1}" /proc/devices)
之后,再次运行scull_load就可以了。
相关文章推荐
- 文本处理工具AWK详解
- awk简介与学习笔记收集第1/3页
- awk 九九乘法表 shell实现代码
- linux shell awk获得外部变量(变量传值)简介
- sed或awk处理文件最后一行的实现方法
- awk中查看包含某两列字符的用法
- awk区间取值的例子
- 一天一个shell命令 linux文本内容操作系列-awk命令详解
- awk实现Left、join查询、去除重复值以及局部变量讲解例子
- awk中让人郁闷的system()函数
- awk中实现ord函数功能
- awk中RS、ORS、FS、OFS的区别和联系小结
- 分享awk变量$0的妙用
- linux awk时间计算脚本及awk命令详解
- awk正则表达式和内置函数的使用方法实例详解
- Shell正则表达式之grep、sed、awk实操笔记
- Linux里awk中split函数的用法小结
- Shell对比两个文件中的记录有多少重复
- LDD3阅读笔记-概述
- awk学习系列-第3/3部分