【问题标题】:Installing PostGIS on Windows在 Windows 上安装 PostGIS
【发布时间】:2010-05-01 22:53:52
【问题描述】:

我已经安装了 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 正在运行,因为我现在正在使用它!

安装开源应用程序有时会令人沮丧...

非常感谢您的帮助!

【问题讨论】:

    标签: django postgresql cygwin postgis


    【解决方案1】:

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

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

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

    【讨论】:

    • 感谢您的回答。我仍然没有机会检查它,因为我现在正在做其他事情,但如果我回到 PostGIS,我一定会让你知道。再次感谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-17
    • 1970-01-01
    • 2020-05-31
    • 1970-01-01
    • 2012-01-17
    • 1970-01-01
    相关资源
    最近更新 更多