有关FLEX的postgresql安装警告

时间:2012-10-09 08:18:35

标签: postgresql

配置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官方网站,那么它可以被忽视

1 个答案:

答案 0 :(得分:1)

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

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