Many UNIX-like systems use gawk (GNU awk). Scripts written for gawk may not run under awk. You can download and build gawk. The gawk home page is www.gnu.org/software/gawk, and contains links for documentation and source code.
See page 637 for examples of awk error messages and how to interpret them.