1

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


5 Answers5

5

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

apt-get install pkgconf
Laurenz Albe
  • 209,280
  • 17
  • 206
  • 263
2

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.

1

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

0

[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.

0
  • 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

Humza Tareen
  • 146
  • 6