安装的 Bison 版本 /c/Program Files (x86)/GnuWin32/bin/bison 太旧,无法与 PostgreSQL 一起使用

问题描述 投票:0回答:1

我正在尝试通过从 Github 克隆 PostgreSQL 的源代码,在我的 Windows 笔记本电脑上运行 PostgreSQL。 为此,我正在关注这个文档 但是在尝试运行

./configure
命令时,我遇到了这个错误

configure: error:
*** The installed version of Bison, /c/Program Files (x86)/GnuWin32/bin/bison, is too old to use with PostgreSQL.
*** Bison version 2.3 or later is required, but this is .

虽然我已经在我的电脑中使用

检查了 bison 的版本
PS C:\Program Files (x86)\GnuWin32\bin> bison --version
bison (GNU Bison) 2.4.1
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

我也在 user

PATH
变量中添加了 bison 。 现在我不知道为什么它抱怨版本低于2.3!

database postgresql rdbms bison configure
1个回答
0
投票

这是 GnuWin32 和 Bison 的错误。根据此处的 Postgres 文档安装 Windows:

注意

GnuWin32 的 Bison 发行版似乎存在一个错误,当安装在名称中包含空格的目录中时,例如英文安装的默认位置 C:\Program Files\GnuWin32,会导致 Bison 出现故障。考虑安装到 C:\GnuWin32 或在 PATH 环境设置中使用 GnuWin32 的 NTFS 短名称路径(例如 C:\PROGRA~1\GnuWin32)。

© www.soinside.com 2019 - 2024. All rights reserved.