asdf-php icon indicating copy to clipboard operation
asdf-php copied to clipboard

PHP 7.0.33, Ubuntu 20.04 (WSL2), error with icu-config

Open MaybeThisIsRu opened this issue 3 years ago • 4 comments

Install the dependencies required for Debian, then run asdf install php 7.0.33 and meet with the following error:

checking for icu-config... no
checking for location of ICU headers and libraries... not found
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.

Not sure where to go from here. 😕

MaybeThisIsRu avatar Jul 14 '21 07:07 MaybeThisIsRu

Use this command it's worked for me

sudo apt-get update && apt-get install -y autoconf bison build-essential curl gettext git libgd-dev libcurl4-openssl-dev libedit-dev libicu-dev libjpeg-dev libmysqlclient-dev libonig-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libxml2-dev libzip-dev openssl pkg-config re2c zlib1g-dev

josematheus10 avatar Feb 16 '22 02:02 josematheus10

The command mentioned by @josematheus10 needs a tweak to [ sudo apt-get update && sudo apt-get install -y ... ] and it works on ubuntu.

maycon-queiroz avatar Mar 01 '22 18:03 maycon-queiroz

Use this command it's worked for me ( Arch ) sudo pacman -S autoconf bison base-devel curl gettext git gd libpqxx oniguruma libcurl4-openssl-dev libedit-dev libicu-dev libjpeg-dev libmysqlclient-dev libonig-dev libpng-dev libreadline-dev libsqlite3-dev libssl-dev libxml2-dev libzip openssl pkg-config re2c zlib1g-dev

maycon-queiroz avatar Mar 01 '22 18:03 maycon-queiroz

As per @josematheus10 Im still getting, on my 22:04 Ubuntu release

libpq-dev : Depends: libpq5 (= 14.4-0ubuntu0.22.04.1) but 14.3-0ubuntu0.22.04.1 is to be installed

stefumies avatar Jul 07 '22 09:07 stefumies