加载共享库时出错:libicui18n.so.68

问题描述 投票:0回答:7

我使用pacman安装nodejs和npm后出现此错误:

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

我已经尝试将

LD_LIBRARY_PATH
设置为
/usr/local/lib/
,但这没有用,我也尝试到处寻找该文件,但没有找到。

LD_LIBRARY_PATH=/usr/local/lib/
find / -iname libicui18n.so.68
node.js archlinux manjaro
7个回答
14
投票

我遇到了同样的问题,但更新系统解决了我的问题。 用途:

$ pacman -Syu

13
投票
sudo pacman -S nodejs                                                                                                                1 ✘ 
resolving dependencies...
looking for conflicting packages...
:: nodejs and nodejs-lts-erbium are in conflict. Remove nodejs-lts-erbium? [y/N] y

Packages (2) nodejs-lts-erbium-12.22.11-1 [removal]  nodejs-18.7.0-1

Total Download Size:   10.22 MiB
Total Installed Size:  38.16 MiB
Net Upgrade Size:      11.81 MiB

重新安装nodejs对我有用


4
投票

libicui18n.so.68 由 core/icu 包提供,位于 /usr/lib

$ pacman -F libicui18n.so
core/icu 65.1-2 [installed: 68.2-1]
usr/lib/libicui18n.so

$ pacman -Qo /usr/lib/libicui18n.so.68
/usr/lib/libicui18n.so.68 is owned by icu 68.2-1

4
投票

检查您使用的

node-js
版本。

尝试安装

nodejs
。如果您遇到安装另一个
nodejs
的冲突,则可能是您的问题。

示例:

nodejs and nodejs-lts-dubnium are in conflict. Remove nodejs-lts-dubnium? [y/N] y

2
投票

答案:

安装这些库将解决您的问题:

sudo pacman -Sy brltty harfbuzz-icu icu

背景:

由于 icu 的原因,无法运行 samba 服务器,当我尝试更新 icu 包时,它发现两个依赖项存在冲突。包括它们解决了 icu 安装,还解决了 smb 服务问题并干净地重新启动了 samba 服务器...... 出现错误:

/usr/bin/smbd: error while loading shared libraries: libicui18n.so.71: cannot open shared object file: No such file or directory

icu 依赖性错误是:

X@Y ~ $ sudo pacman -S icu
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing icu (71.1-1) breaks dependency 'libicuuc.so=70-64' required by brltty
:: installing icu (71.1-1) breaks dependency 'libicuuc.so=70-64' required by harfbuzz-icu

1
投票

基本上与 MauricioOtta 的答案相同的方法,如果您使用 brew

 安装了节点。那么你可以考虑
这个答案,它给了我:

brew uninstall node brew install node
它也适用于 Ubuntu 或其他带有 home 的发行版

brew

 - 甚至可能适用于 MacOS。

也可以用 node

 安装 
nix-env


0
投票
所以我也遇到了同样的问题,这就是我解决它的方法->

首先更新你的linux ->

sudo apt update
卸载然后重新安装nodejs ->

brew uninstall node brew install node node -v
在运行 dfx start 和 dfx deploy 之前使用 ->

安装节点模块

npm i npm install [email protected] --save-dev npm run start
这应该可以解决问题 ->

Stderr: node: error while loading shared libraries: libicui18n.so.73: cannot open shared object file: No such file or directory
    
© www.soinside.com 2019 - 2024. All rights reserved.