The syntax of setenv (and set) doesn't use an equal character between the variable name and value, e.g.
Code:
setenv PATH "/opt/pgi/linux86/6.2/bin:$PATH"
That accounts for the "syntax error" message, but I don't know about the "Command not found". Perhaps one of the source commands references a non-existing file, or one of those files contains an invalid command name.