gawk: fatal: can't open source file

今天来了以后运行一个脚本,却给我显示如下错误

[root@mx3 ~/crontab]# /home/sysadmin/zhaoyj/statistic/statistic_spam.sh

gawk: fatal: can't open source file "statistic_spam.awk" for reading (No such file or directory)
ERROR 1136 (21S01) at line 1: Column count doesn't match value count at row 1


我看一下是不是gawk没装啊

[root@mx3 ~/crontab]# whereis gawk

gawk: /usr/local/bin/gawk /usr/local/man/man1/gawk.1 /usr/ports/japanese/gawk


结果显示gawk是装好了的,那我再重新装一下试试看,只能碰运气喽

[root@mx3 ~/crontab]# cd /usr/ports/japanese/gawk
[root@mx3 /usr/ports/japanese/gawk]# ls
Makefile distinfo files pkg-descr pkg-plist work
[root@mx3 /usr/ports/japanese/gawk]# cd work/gawk-3.0.6/
[root@mx3 /usr/ports/japanese/gawk/work/gawk-3.0.6]# make clean
rm -rf gawk *.o core */core y.output

[root@mx3 /usr/ports/japanese/gawk/work/gawk-3.0.6]# ./configure

[root@mx3 /usr/ports/japanese/gawk/work/gawk-3.0.6]# make && make install


装完之后,再运行一下上述脚步,嘿嘿嘿,竟然没有报错,成功显示了我想要的结果

瞎猫碰死耗子,其实我也不知道是什么原因导致的报错


你可能感兴趣的:(open source)