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

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

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

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

it shows that:

checking for icu-uc icu-i18n... no
configure: error: ICU library not found
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.
Use --without-icu to disable ICU support.

While I have already that ICU installed.

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:

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

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

it shows that:

checking for icu-uc icu-i18n... no
configure: error: ICU library not found
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.
Use --without-icu to disable ICU support.

While I have already that ICU installed.

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:

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

<hr/>

答案1

得分: 5

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

apt-get install pkgconf
英文:

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

apt-get install pkgconf

答案2

得分: 2

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

sudo apt-get update
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

sudo apt-get update
sudo apt-get install bison

Worked fine for me.

答案3

得分: 1

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

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

sudo apt-get update

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

sudo apt-get install libicu-dev 

然后运行:

apt-get install pkgconf

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

英文:

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

sudo apt-get update

After that use run the command to install icu

 sudo apt-get install libicu-dev 

then run

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:

确定