postgresql的Windows安装错误。 make命令

时间:2018-01-10 09:23:54

标签: c postgresql ssl locale postgresql-9.5

我是postgresql的新手。我想通过windows中的源代码安装postgresql。我正在使用MinGW和msys进行安装。配置命令对我来说工作正常。当我执行make命令时,我收到错误。请任何人帮我纠正这些错误。

[gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -I../../../../src/include -I./src/include/port/win32 -DEXEC_BACKEND  -I/home/roopteja.itha/openssl/include -I/home/roopteja.itha/uuid "-I../../../../src/include/port/win32" -DBUILDING_DLL  -c -o spgtextproc.o spgtextproc.c
In file included from ../../../../src/include/c.h:101:0,
                 from ../../../../src/include/postgres.h:47,
                 from spgtextproc.c:40:
../../../../src/include/pg_config_os.h:333:18: error: unknown type name '_locale_t'
 #define locale_t _locale_t
                  ^
../../../../src/include/utils/pg_locale.h:69:9: note: in expansion of macro 'locale_t'
 typedef locale_t pg_locale_t;
         ^~~~~~~~
make[4]: *** [spgtextproc.o] Error 1
make[4]: Leaving directory `/home/roopteja.itha/postgresql-9.5.10/src/backend/access/spgist'
make[3]: *** [spgist-recursive] Error 2
make[3]: Leaving directory `/home/roopteja.itha/postgresql-9.5.10/src/backend/access'
make[2]: *** [access-recursive] Error 2
make[2]: Leaving directory `/home/roopteja.itha/postgresql-9.5.10/src/backend'
make[1]: *** [all-backend-recurse] Error 2
make[1]: Leaving directory `/home/roopteja.itha/postgresql-9.5.10/src'
make: *** [all-src-recurse] Error 2]

我无法解决此问题。有人会建议必要的实施。

1 个答案:

答案 0 :(得分:0)

在xlocale.h中定义了'locale_t'类型。 pg_locale.h在包含xlocale.h之前有一个条件。可能不满足其中一个条件,因此您的xlocale.h尚未包括在内。像这样的东西。

Application