edit icon indicating copy to clipboard operation
edit copied to clipboard

libicu not found on Ubuntu

Open ZsBT opened this issue 6 months ago • 1 comments

For search/replace, it says "This operation requires the ICU library".

However, as per the documentation the lib is available by the bare SONAME (libicuuc.so) :

Book:~$ ldconfig -p |grep libicuuc
        libicuuc.so.74 (libc6,x86-64) => /lib/x86_64-linux-gnu/libicuuc.so.74
        libicuuc.so.70 (libc6,x86-64) => /lib/x86_64-linux-gnu/libicuuc.so.70
        libicuuc.so.66 (libc6,x86-64) => /lib/x86_64-linux-gnu/libicuuc.so.66
        libicuuc.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libicuuc.so

I am on Ubuntu 24.04.2 LTS, using nightly rust.

The same occurs if I compile the binary with setting the environment variables for the exact version:

EDIT_CFG_ICUI18N_SONAME=libicui18n.so.74
EDIT_CFG_ICUUC_SONAME=libicuuc.so.74

ZsBT avatar Jun 24 '25 21:06 ZsBT

You forgot to set:

EDIT_CFG_ICU_RENAMING_VERSION=74

lhecker avatar Jun 24 '25 22:06 lhecker

Indeed. Thanks for the hint, it works well after all env vars set.

ZsBT avatar Jun 29 '25 15:06 ZsBT