Victor, What version of PostgreSQL are you running.
The $libdir is a variable built into PostgreSQL that points at the location of the lib file. I don't think your problem is with that given your earlier message. The earlier message results either if the postgis-2.0.dll wasn't copied to the right place (the lib folder of your PostgreSQL install) or one of its dependencies wasn't copied. Our guess is you missed copying in the latest version of GEOS from the zip file we provided. If you for example had another PostGIS install on your PostgreSQL -- there would already exist a geos_c.dll file, but it would be pointing to GEOS 3.2.2 or whatever other GEOS you had. When the batch script runs, there is a message that says something to the effect -- file exists -- overwrite yes/no/all? If you said No -- then you need to manually copy the GEOS files. Everything else is the same (with the additon of libgdal) from the prior versions of PostGIS, but the PostGIS 2.0 will refuse to run if the geos_c.dll is from a GEOS older than GEOS 3.3.0. It is also possible we left out including a dependency. If the above doesn't work, use dependency walker to see what its complaining about as missing. http://www.dependencywalker.com/ Leo and Regina http://www.postgis.us -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of victor Sent: Tuesday, October 12, 2010 9:37 AM To: [email protected] Subject: Re: [postgis-users] error with a $libdir variable defined inpostgis.sql 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 _______________________________________________ postgis-users mailing list [email protected] http://postgis.refractions.net/mailman/listinfo/postgis-users _______________________________________________ postgis-users mailing list [email protected] http://postgis.refractions.net/mailman/listinfo/postgis-users
