我已经安装了PostgreSQL和PostGIS,现在我正在尝试按照这些说明操作: http://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#spatialdb-template
但是我在命令提示符和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正在运行,因为我现在正在使用它!
安装开源应用程序有时会令人沮丧......
我将非常感谢你的帮助!
答案 0 :(得分:1)
你有没有机会在这里使用cygwin?特别是,系统是从cygwin二进制文件中获取的吗?
如果您的服务器是cygwin,请尝试将其删除并将其替换为Windows版本。
如果您的服务器是Windows版本,但是您已经从PATH中的cygwin安装创建了b,请尝试从PATH中删除cygwin以确保您选择了Windows版本的createdb。