Installing AGE PG16 beside Postgresql v16beta1 giving bison is missing while it is not.

huangapple go评论118阅读模式
英文:

Installing AGE PG16 beside Postgresql v16beta1 giving bison is missing while it is not

问题

I have installed Postgres v16beta1 and while installing that I got an issue that while configuring that using

  1. ./configure --prefix=$(pwd) -enable-debug

it shows that:

  1. checking for icu-uc icu-i18n... no
  2. configure: error: ICU library not found
  3. If you have ICU already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory.
  4. Use --without-icu to disable ICU support.

While I have already that ICU installed.

  1. sudo apt-get install libicu-dev

And the config.log has no useful logs. so that it led me to use the flag --without-icu and it get installed successfully. Then when I went to install AGE PG16 branch I got into the following issue:

  1. ERROR: `bison' is missing on your system. It is needed to create the file `src/backend/parser/cypher_gram.c'. You can either get bison from a GNU mirror site or download an official distribution of PostgreSQL, which contains pre-packaged bison output.

WHILE having bison already installed, any idea?

OS: Ubuntu 22.04.2 LTS


英文:

I have installed Postgres v16beta1 and while installing that I got an issue that
while configuring that using

  1. ./configure --prefix=$(pwd) -enable-debug

it shows that:

  1. checking for icu-uc icu-i18n... no
  2. configure: error: ICU library not found
  3. If you have ICU already installed, see config.log for details on the
  4. failure. It is possible the compiler isn't looking in the proper directory.
  5. Use --without-icu to disable ICU support.

While I have already that ICU installed.

  1. sudo apt-get install libicu-dev

And the config.log has no useful logs. so that it led me to use the flag --without-icu
and it get installed successfully. Then when I went to install AGE PG16 branch I got into the following issue:

  1. ERROR: `bison' is missing on your system. It is needed to create the
  2. file `src/backend/parser/cypher_gram.c'. You can either get bison from a GNU mirror site
  3. or download an official distribution of PostgreSQL, which contains
  4. pre-packaged bison output.

WHILE having bison already installed, any idea?

OS: Ubuntu 22.04.2 LTS

<hr/>

答案1

得分: 5

你需要安装 pkg-config 才能完成这个操作。在 Ubuntu Linux 上,可以使用以下命令来安装:

  1. apt-get install pkgconf
英文:

You need to install pkg-config for that. On Ubuntu Linux, that is done with

  1. apt-get install pkgconf

答案2

得分: 2

我遇到了相同的 ICU 相关错误。我首先使用 --without-icu 命令来执行,但这并不是解决方案。通过使用 sudo apt-get install libicu-dev 安装 ICU,然后运行以下命令:

  1. sudo apt-get update
  2. sudo apt-get install bison

这对我来说有效。

英文:

I had same icu related error. I first executed the command with
--without-icu. But that was not the solution. Installing icu using sudo apt-get install libicu-dev and then running these commands

  1. sudo apt-get update
  2. sudo apt-get install bison

Worked fine for me.

答案3

得分: 1

好的,以下是翻译好的内容:

我在配置 postgresql 16beta1 时遇到了相同的问题。首先你需要运行以下命令:

  1. sudo apt-get update

之后使用以下命令安装 icu:

  1. sudo apt-get install libicu-dev

然后运行:

  1. apt-get install pkgconf

这解决了我的问题,希望对你也有用。

英文:

Well I faced the same problem when configurig for postgresql 16beta1. First you want to

  1. sudo apt-get update

After that use run the command to install icu

  1. sudo apt-get install libicu-dev

then run

  1. apt-get install pkgconf

This solved my problem hope it works for you too

答案4

得分: 0

已解决
对于年龄问题,与系统中安装的Bison版本相关,Postgresql需要一个新版本的Bison,因此升级它可以解决这个问题。

英文:

[RESOLVED]

For the AGE issue it was related to the bison version installed in the system, Postgresql requires a new version of Bison so upgrading it solving the problem.

答案5

得分: 0

  • 关于ICU问题:
    Postgres无法找到ICU,因此您可能需要添加ICU路径
    ./configure --prefix=$(pwd) -enable-debug --with-icu=[ICU_PATH]

  • 关于Bison问题,您可能需要重新安装Bison(如果已安装)或重新配置路径。按照这个快速教程安装Bison

英文:
  • Regarding the ICU issue:
    Postgres is unable to locate icu so you might need to add the icu path
    ./configure --prefix=$(pwd) -enable-debug --with-icu=[ICU_PATH]

  • Regarding Bison issue, you might need to reinstall bison (if it is already installed) or you can reconfigure the paths. Follow this quick tutorial for installing bison

huangapple
  • 本文由 发表于 2023年6月15日 05:06:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/76477533.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定