asdf-php
asdf-php copied to clipboard
PHP 7.0.33, Ubuntu 20.04 (WSL2), error with icu-config
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. 😕
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
The command mentioned by @josematheus10 needs a tweak to [ sudo apt-get update && sudo apt-get install -y ... ] and it works on ubuntu.
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
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