2010-05-01 215 views
0
PostGIS的

我已经安装PostgreSQL和PostGIS的,现在我想请遵循以下说明: http://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#spatialdb-template在Windows上安装

但我不断收到以下错误,无论是在命令提示符,然后在Cygwin中:

C:\Users\Home>createdb -E UTF8 template_postgis 
createdb: could not connect to database postgres: could not connect to server: No such file or directory 
     Is the server running locally and accepting 
     connections on Unix domain socket "/tmp/.s.PGSQL.5432"? 

而且我知道PostgreSQL正在运行,因为我现在正在使用它!

安装开源应用程序有时是如此令人沮丧......

我会是你的帮助,非常感谢!

回答

1

你有没有在这里使用cygwin?特别地,系统是否从cygwin二进制文件中获取createdb?

如果您的服务器是cygwin,请尝试删除它并将其替换为Windows版本。

如果您的服务器是Windows版本,但是您已经从PATH中的cygwin安装中创建了b,请尝试从PATH中删除cygwin,以确保您获取了createdb的Windows版本。

+0

谢谢你的回答。我仍然没有机会查看它,因为我现在正在处理其他事情,但是如果我回到PostGIS,我一定会让你知道。再次感谢! – 2010-05-08 05:07:29