需要帮助awk语法错误

时间:2010-09-01 09:53:18

标签: awk

config.status: creating Makefile
awk: ./confYwuPmF/subs.awk:2: S["/; s/!.*/"]=LTLIBOBJS!%!_!# ""
awk: ./confYwuPmF/subs.awk:2:                          ^ syntax error
awk: ./confYwuPmF/subs.awk:3: S["/; s/!.*/"]=LTLIBOBJS!%!_!# ""
awk: ./confYwuPmF/subs.awk:3:                              ^ syntax error
awk: ./confYwuPmF/subs.awk:3: S["/; s/!.*/"]=MAKE_MAN!%!_!# ""
awk: ./confYwuPmF/subs.awk:3:                         ^ syntax error
awk: ./confYwuPmF/subs.awk:4: S["/; s/!.*/"]=MAKE_MAN!%!_!# ""
awk: ./confYwuPmF/subs.awk:4:                             ^ syntax error
awk: ./confYwuPmF/subs.awk:5: S["/; s/!.*/"]=BUILD_POPT!$(popt_OBJS)%!_!# "$(popt_OBJS)"
awk: ./confYwuPmF/subs.awk:5:                                           ^ syntax error
awk: ./confYwuPmF/subs.awk:5: S["/; s/!.*/"]=CC_SHOBJ_FLAG!-o $@%!_!# "-o $@"
awk: ./confYwuPmF/subs.awk:5:                                  ^ invalid char '@' in expression
config.status: error: could not create Makefile

对不起,这可能是一个无聊的问题,但我想知道awk的人会在2分钟内解决它。 我只是想不出来......

修改

我能够在不同的系统上运行它,... 因此,请将问题视为已解决

1 个答案:

答案 0 :(得分:4)

我的猜测是问题不是awk,而是尝试生成awk脚本的程序。由于它包含S["/; s/!.*"]之类的内容,因此我的资金在sed上。

你在机器上安装了(GNU)sed吗?