Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJGa4-0000tn-Oc for pgsql-general@arkaria.postgresql.org; Wed, 03 Aug 2022 15:46:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oJGa2-0007IU-Ng for pgsql-general@arkaria.postgresql.org; Wed, 03 Aug 2022 15:46:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJGa2-0007IL-DG for pgsql-general@lists.postgresql.org; Wed, 03 Aug 2022 15:46:42 +0000 Received: from mail.verite.pro ([185.16.44.216]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJGZv-00020r-TJ for pgsql-general@lists.postgresql.org; Wed, 03 Aug 2022 15:46:41 +0000 Received: by mail.verite.pro (Postfix, from userid 1000) id 0856A8C0103; Wed, 3 Aug 2022 17:46:32 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: ICU is not supported in this build. install from source code. From: "Daniel Verite" To: "jian he" Cc: "pgsql-general list" In-Reply-To: Date: Wed, 03 Aug 2022 17:46:28 +0200 Message-Id: X-Mailer: Manitou v1.7.3 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk jian he wrote: > ./configure --with-perl --with-python --with-icu > ICU_CFLAGS=3D'-I/usr/include/unicode' ICU_LIBS=3D'-L/usr/lib/icu' > --enable-debug --with-pgport=3D5440 The location with -L is not sufficient in ICU_LIBS. The list of libraries to link with should be put as well. For instance: ICU_LIBS=3D"-L/usr/lib/icu -licui18n -licuuc -licudata" When using the version of ICU that ships with the distribution (libicu-dev package on Ubuntu), adding only "--with-icu" should be enough. The locations of includes and libraries will be automatically found. I'm not sure that's your case though. On one hand, /usr/include/unicode is where the package puts the ICU includes, but on the other hand it doesn't create any /usr/lib/icu directory.=20 And Ubuntu 22.04 LTS brings ICU 70, not ICU 71. If you need a self-built version of ICU, it might be simpler to use pkgconf= ig as an alternative to ICU_CFLAGS/ICU_LIBS, for instance: ./configure --with-icu PKG_CONFIG_PATH=3D/path/to/icu/lib/pkgconfig where /path/to/icu was passed as the prefix to ICU4C configure invocation. It's recommended to install custom builds to specific locations instead of overwriting the libraries that are part of the distribution (otherwise it becomes unmaintainable) Best regards, --=20 Daniel V=E9rit=E9 https://postgresql.verite.pro/ Twitter: @DanielVerite