Well, that might indeed be your problem! set the environment variables and see what happens..
environment variables are something like global settings, very much like Windows Registry. e.g. this is where your Linux environment is set up. HOME, DISPLAY, USER .... all these are environment variables used for example, Home directory, display, user name/uid respectively...
Here's how you set an environment variable:
using the bash and Korn shells:
using the C shell, as far as i remember:
#setenv var some_value
where var is the name of your environment variable and some_value is the to-be-set value.