thanks Andrea for replying. those environment variables where effectively set. but i still get the error because $libdir wasn't set anywhere. is it an internal variable for postgresql? -- victor