我指挥node -v,发现错误:
Node: /lib/x86_64-linux-gnu/libc.so.6: 文本`GLIBC_2.28未找到(按点查询)。
Is there a solution?
我指挥node -v,发现错误:
Node: /lib/x86_64-linux-gnu/libc.so.6: 文本`GLIBC_2.28未找到(按点查询)。
Is there a solution?
最后,我通过领导以下指挥而找到解决办法。
sudo apt-get remove nodejs
nvm install 16.15.1
Node.js v16.15.1 version and npm v16.15.1 is installed. For the same, make sure nvm is installed in your machine.
页: 1
我的顾问版:Ubuntu 18.04.6 LTS (Bionic Beaver)
我尝试了三种办法,在我的板上安装Node.js和Npm:
(fail) apt-get。 版本非常老
$ sudo apt-get install nodejs
$ sudo apt-get install npm
$ node -v
v8.10.0
$ npm -v
6.1.0
(fail) script from source code of Node.js, only Node.js is updated, npm is not. https://github.com/nodesource/distributions/blob/master/README.md#using-ubuntu-1
$ curl -sL https://deb.nodesource.com/setup_14.x -o /tmp/nodesource14_setup.sh
$ node -v
v14.20.1
$ npm -v
6.1.0
(success) 十五
https://github.com/nvm-sh/nvm#installing-and-updating
$ sudo apt-get remove nodejs
$ sudo apt-get remove npm
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
$ chmod +x ~/.nvm/nvm.sh
$ source ~/.bashrc
$ nvm -v
0.39.2
$ nvm install 14
$ node -v
v14.20.1
$ npm -v
6.14.17
$ nvm install 16
$ node -v
v16.18.0
$ npm -v
8.19.2
$ nvm install 17
$ node -v
v17.9.1
$ npm -v
8.11.0
# Failed to install 18
$ nvm install 18
$ node -v
node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28 not found (required by node)
$ npm -v
node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28 not found (required by node)
I d had the same problem when installing Node.js with versions greater than or equal to 18. My solution was upgrade my distribution Ubuntu to version 20.04, followings the steps:
如果你不使用世界女权运动,你就能够绕过步骤:
wsl --shutdown
wsl-backup
with the command mkdir C:wsl-backup
.wsl --export Ubuntu-18.04 C:wsl-backupubuntu-18.04.tar
.如果存在问题,请你利用“指挥编码”wsl --import 乌班图18.04 C:WSL C:wsl-backupubuntu-18.04.tar
torecovery.
拆除Snapd包裹:
对我来说,必须删除<代码>napd的包裹,因为乌班图不允许我升至20.04 LTS版本。
sudo apt purge snapd
Run commands to update and upgrade packages:
sudo apt update
sudo apt list --upgradable
sudo apt upgrade -y
www.un.org/Depts/DGACM/index_french.htm 一揽子:
安装这一更新管理者核心包裹是很必要的,这将把这个系统引向新掌握的LTS,并允许你进行内部升级。
sudo apt install update-manager-core
1. 新版本:
sudo do-release-upgrade
如果你使用LTS版本(建议),发现没有新的LTS版本,就会显示这一信息。
Checking for a new Ubuntu release
There is no development version of an LTS available.
To upgrade to the latest non-LTS development release
set Prompt=normal in /etc/update-manager/release-upgrades.
如果与你不使用LTS版本无关,你可以更改文件,使之符合正常状态/etc/update-manager/release-upgrads档案,并重新管理以前的指挥。
sudo do-release-upgrade -d
在安装期间,需要您的互动,以便安装第20.04版(包括Node.js要求的校准6)的额外包裹。
总结,现在可以核实你的分发版本。 乌班图使用指挥系统:
lsb_release -a
你们应该获得类似于这一结果的产出。
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
现在你可以使用第18号或以后版本。
Installing Node.js LTS
在本日期(2022-11-26)为18
nvm install lts
# Or nvm install --lts
使用LTS版本
nvm use lts
查阅Node.js版本
node -v
# v18.12.1
你之所以提出这个问题,是因为Node.js版本不符合Utu。 在我的案件中,我与Ubuntu 18.04(Bionic Beaver)和Nodejs 16.15.1.
https://en.wikipedia.org/wiki/GNU_C_Library” rel=“nofollow noreferer”>glibc 。 文本:
ldd --version
我的版本是2.27。 因此,我试图通过修改诺伊斯版本来加以纠正。
sudo apt-get remove nodejs
nvm install 14.17.6
这意味着,目前版本的六氯环己烷t有glibc。 2.28 最新版本的Node.js需要。
您可以操作<代码>ldd-version,以检查你的校准版本。
<><><>条码>ldd>>>>>
你们可以通过两种方式解决这一问题:
简单地将你的Node.js版本改为16,是最快的解决办法,它为我工作。
nvm install 16
nvm use 16
如果您没有国家机器设备(Node版本管理员),则使用:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
我在结束发言之前,先是Git Hub Actions。
Node: /lib/x86_64-linux-gnu/libc.so.6: 文本`GLIBC_2.28未找到(按点查询)。
问题在于乌班图18.04(Bionic Beaver)不支持Node.js 18(如以下所述)(Node: /lib/x86_64-linux-gnu/libc.so.6: 文本“GLIBC_2.28(由Node.js提出))) ,因为采用了平衡模式。
解决办法是更新乌班图20.04(Focal Fossa)或更高。
您可能拥有一个Node.js版本,该版本已安装,供乌兰巴托人使用。
我建议删除这个词,然后安装nodesource binary distribution。 它应当自动清除你乌班图的释放,并安装正确的Node.js释放装置。
I agree with others to remove and reinstall Node.js, but if you don t want to uninstall it or you are not sure to remove it, change the version.
nvm use 16
或用于检验的任何版本。 它为我工作!
After installing the LTS version as per the following instructions: Installing Node.js on the Raspberry Pi
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
I got the following error:
node -v
产出:
node: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27 not found (required by node)
node: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.25 not found (required by node)
node: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28 not found (required by node)
这就是说,我没有做任何事情,因此,我试图:
sudo apt-get remove nodejs
sudo apt-get remove npm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh > install.sh
chmod +x install.sh
source ~/.bashrc
产出:
$ nvm -v
0.39.2
$ nvm install 14
$ node -v
v14.22.2
$ npm -v
6.14.17
http://en.wikipedia.org 它像一个药店一样工作,建筑校准所需时间远远少于诺伊斯大楼。 指示(关于Jetson Mano,因此与结构有关的细节将有所不同):
sudo -i
# Start by installing Node.js 20:
curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n
bash n 20
# Node.js 20 is now at /usr/local/bin/node, but glibc 2.28 is missing:
# node: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.28 not found (required by node)
# /usr/local/bin/node: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.28 not found (required by /usr/local/bin/node)
# Build and install glibc 2.28:
apt install -y gawk
cd ~
wget -c https://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz
tar -zxf glibc-2.28.tar.gz
cd glibc-2.28
../configure --prefix=/opt/glibc-2.28
make -j 4 # Use all 4 Jetson Nano cores for much faster building
make install
cd ..
rm -fr glibc-2.28 glibc-2.28.tar.gz
# Patch the installed Node.js 20 to work with /opt/glibc-2.28 instead:
apt install -y patchelf
patchelf --set-interpreter /opt/glibc-2.28/lib/ld-linux-aarch64.so.1 --set-rpath /opt/glibc-2.28/lib/:/lib/aarch64-linux-gnu/:/usr/lib/aarch64-linux-gnu/ /usr/local/bin/node
# Et voilà:
node --version
v20.8.0
I ve also posted this on GitHub: NodeJS 18 not working on Ubuntu 18.04 #1392
This was the only solution that helped me: How can I fix issue "node: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28 not found (required by node)"?
Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
Configure nvm in the $HOME/.bashrc 档案:
check= export NVM_DIR="$HOME/.nvm"
if ! grep -qF "$check" ~/.bashrc; then
echo "" >>~/.bashrc
echo "# Add NVM to path" >>~/.bashrc
echo export NVM_DIR="$HOME/.nvm" >>~/.bashrc
echo [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" >>~/.bashrc
echo [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" >>~/.bashrc
fi
我之所以提出这个问题,是因为我试图利用《演播室视觉守则》和“C”讲台,把偏远的SSH延伸延伸到乌班图18.04系统。 当我失败时,我发现GLIBC2.28在遥远的系统推广记录中错误。
Downward node on therange don t help because theextions 下载他们自己的笔记。
给我留下的黑板是用与当地安装的自行车子的短距离取代这一下载的双向:
cd $HOME/.vscodium-server/bin/<UUID>
mv node node.broken
ln -s /usr/bin/node
在SSH下次更新后进行远程推广时,可能会打破这种僵局,需要重新应用。
In certain situations where you have moved everything to a new machine and not rebuilt your node_modules folder, this can happen.
在您的项目中,该项目有:
npm rebuild
情况总是如此,但可能如此。
What would be the most simple way of adding and changing an icon in the Ubuntu (Gnome) Panel? I m looking for something as simple as shell scripting, but I m not restricted to that. Will write a ...
I got this error: OperationalError at / unable to open database file Things I ve tried so far are setting the absolute path of my dev.db file in the settings.py. I ve tried adding www-data to my ...
After create a new system call, how to update the kernel? I tried these lines, make-kpkg clean fakeroot make-kpkg -initrd -append-to-version=-custom kernel_image kernel_headers But Ubuntu asked me ...
I want to save all following Exceptions in a file. The reason why I need this is because the IDLE for python 3.1.1 in Ubuntu raises an Exception at calltipps, but close to fast, that it isn t readble. ...
i am doing a project related to configuration and memory analyzer for kubuntu. i want to display the system statistics information like CPU usage, RAM usage and proceses etc. graphically using an ...
I would like to start my mysql server with the --external-locking option. As mysqld is run by the /etc/init.d/mysql script ubuntu (karmic), I guess that s where I should set this "--external-locking" ...
I just found on my Ubuntu, there are two different C++ compilers: /usr/bin/g++ and /usr/bin/c++. I am not familiar with the latter, but man c++ just jumps to the manpage of gcc. I wonder what is their ...
I ve just installed Zend Studio 7.0.2 on my Linux-Ubuntu 9.10 system. There were no problems during the installation but when I try to create a new project, the New Project form hangs when I click ...