You are not logged in.

#1 2024-04-11 14:38:22

jamnor
Member
Registered: 2024-04-11
Posts: 4

[Solved] PHP broken: error while loading shared libraries: libicui18n

My system is fully updated. Whenever I run the php binary, I get:

php: error while loading shared libraries: libicui18n.so.73: cannot open shared object file: No such file or directory

I have icu74.2-2 and lib32-icu74.2-1 installed. It does work on my other Arch installation which is also fully updated.

Just to be sure I'm running the latest mirrors, I used reflector to generate a new mirrorlist:

# With:       reflector --latest 5 --sort rate --save /etc/pacman.d/mirrorlist.latest
# When:       2024-04-11 14:32:40 UTC
# From:       https://archlinux.org/mirrors/status/json/
# Retrieved:  2024-04-11 14:32:09 UTC
# Last Check: 2024-04-11 14:29:05 UTC

Server = http://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch
Server = http://mirror.telepoint.bg/archlinux/$repo/os/$arch
Server = rsync://mirror.telepoint.bg/archlinux/$repo/os/$arch
Server = https://mirror.f4st.host/archlinux/$repo/os/$arch
Server = https://mirror.cyberbits.eu/archlinux/$repo/os/$arch

And ran sudo pacman -Syyuu. It still doesn't work. I rebooted my system and it doesn't work.

Not sure what to try next.

Last edited by jamnor (2024-04-12 03:10:22)

Offline

#2 2024-04-11 15:19:29

loqs
Member
Registered: 2014-03-06
Posts: 17,420

Re: [Solved] PHP broken: error while loading shared libraries: libicui18n

What is the output of:

type -a php
pacman -Qikk php

Offline

#3 2024-04-11 15:42:11

jamnor
Member
Registered: 2024-04-11
Posts: 4

Re: [Solved] PHP broken: error while loading shared libraries: libicui18n

For type -a php:

php is /usr/local/bin/php
php is /usr/bin/php

For pacman -Qikk php:

Name            : php
Version         : 8.3.4-1
Description     : A general-purpose scripting language that is especially suited to web development
Architecture    : x86_64
URL             : https://www.php.net/
Licenses        : PHP-3.01
Groups          : None
Provides        : php-interpreter=8.3  php-intl=8.3.4
Depends On      : libxml2  curl  libzip  pcre2  argon2  oniguruma
Optional Deps   : None
Required By     : php-fpm  php-gd  php-sqlite
Optional For    : None
Conflicts With  : php-intl
Replaces        : php-intl
Installed Size  : 28.72 MiB
Packager        : Pierre Schmitz <pierre@archlinux.org>
Build Date      : Sun 17 Mar 2024 20:12:30
Install Date    : Fri 12 Apr 2024 00:37:23
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

backup file: php: /etc/php/php.ini (Modification time mismatch)
backup file: php: /etc/php/php.ini (Size mismatch)
backup file: php: /etc/php/php.ini (SHA256 checksum mismatch)
php: 413 total files, 0 altered files

Offline

#4 2024-04-11 15:44:16

jamnor
Member
Registered: 2024-04-11
Posts: 4

Re: [Solved] PHP broken: error while loading shared libraries: libicui18n

Okay. I see what's happening here.

Many months ago I tried to build a version of php various ways, and I must have ended up installing it to /usr/local/bin/php, which must be in my PATH. I removed that version of php and /usr/bin/php works fine now.

Thanks for the help loqs!

Offline

#5 2024-04-11 15:45:39

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,992
Website

Re: [Solved] PHP broken: error while loading shared libraries: libicui18n

You have a custom installation of php in /usr/local/bin, which was probably linked against an older version of the library. How and why did you install that?

Edit: Ninja'd

Last edited by schard (2024-04-11 15:46:10)


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#6 2024-04-11 15:48:56

jamnor
Member
Registered: 2024-04-11
Posts: 4

Re: [Solved] PHP broken: error while loading shared libraries: libicui18n

If you're curious how I installed it, there were a lot of ways...

This must have been a year or so ago now. I first tried building it from source. Then I tried some other PHP installers. Anyway, it never worked out, and I forgot about it until now.

Offline

#7 2024-04-11 15:50:53

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,992
Website

Re: [Solved] PHP broken: error while loading shared libraries: libicui18n

Nah, it's okay. The important thing is that *you* know what you did.
Please remember to mark this topic as solved.


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

Board footer

Powered by FluxBB