4

配置要安装的 postgresql 9.1.6,我收到如下消息...

checking for flex... configure: WARNING:
*** The installed version of Flex, /usr/bin/flex, is too old to use with PostgreSQL.
*** Flex version 2.5.31 or later is required, but this is /usr/bin/flex version 2.5.4.
configure: WARNING:
*** The installed version of Flex, /usr/bin/lex, is too old to use with PostgreSQL.
*** Flex version 2.5.31 or later is required, but this is /usr/bin/lex version 2.5.4.
configure: WARNING:
*** The installed version of Flex, /usr/bin/flex, is too old to use with PostgreSQL.
*** Flex version 2.5.31 or later is required, but this is /usr/bin/flex version 2.5.4.
configure: WARNING:
*** The installed version of Flex, /usr/bin/lex, is too old to use with PostgreSQL.
*** Flex version 2.5.31 or later is required, but this is /usr/bin/lex version 2.5.4.
configure: WARNING:
*** The installed version of Flex, /usr/bin/flex, is too old to use with PostgreSQL.
*** Flex version 2.5.31 or later is required, but this is /usr/bin/flex version 2.5.4.
configure: WARNING:
*** The installed version of Flex, /usr/bin/lex, is too old to use with PostgreSQL.
*** Flex version 2.5.31 or later is required, but this is /usr/bin/lex version 2.5.4.
no
configure: WARNING:
*** Without Flex you will not be able to build PostgreSQL from Git nor
*** change any of the scanner definition files.  You can obtain Flex from
*** a GNU mirror site.  (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this because the Flex
*** output is pre-generated.)

上面写着“如果你使用的是PostgreSQL官方发行版~~~”下载的文件是从postgresql官网下载的,可以忽略吗

4

1 回答 1

1

出现此警告是因为您没有安装 flex,它部分用于生成 SQL 语言解析器。发布 tarball 已经生成了 SQL 语言解析器,因此如果您使用发布 tarball,则可以。如果您想从 git 构建,或者您想更改 SQL 的解析方式(或 SQL 语法),那么您需要获取 flex。

在大多数情况下,如果您不知道其他情况,则可以忽略此警告(我假设您是否尝试以您知道的其他方式修改 PostgreSQL 源代码)。如果您无法构建,请使用发布 tarball。

于 2013-04-10T14:14:50.060 回答