Make sure the environment is set up right.