setenv is used to set an environment variable typically in the csh or tcsh shells.
Which shell are you using ?
Find out with :
Assuming you are using the bash or sh shell, instead of setenv command, :
This varies with different shells.
So depending upon which shell you have, you might have to Google a it and see how to set the environment variable in your shell