private large model-nvm

Error GLIBC_2.28' not found

(privateGPT-py38) root@k8s-master01:/nfs/jett/privateGPT-main/client# npm install
node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28’ not found (required by node)

The reason for this error is that the current Node.js version requires the glibc2.28 library, and the glibc version in your system is too low.

You can try the following two solutions:

Upgrade your system's glibc version:
1.1 Add a source to your Ubuntu system to install the new version of glibc:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install -y libc6
1.2 Update and upgrade system:

sudo apt-get update && sudo apt-get upgrade
Use the Node.js version manager NVM to specify a lower version of Node.js:
2.1 Install nvm:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
source ~/.bashrc
2.2 Install a lower version of Node.js:

nvm install 12.19.0
2.3 Use this version of Node.js in your project directory:

nvm use 12.19.0
npm install
Hope these methods can help you solve the problem.

nvm install 17.0.0 stuck

If you're stuck installing a Node.js version using nvm install, it could be due to network connectivity issues. You can try the following methods:

Check network connection: Make sure your network connection is normal, try to access the Internet through other means, such as ping command test or web browsing through web browser.

Change source: You can try to change the source of Node.js to Taobao image or official source, the command is as follows:

Taobao Mirror:

nvm install 17.0.0 --registry=https://registry.npm.taobao.org
official source:

nvm install 17.0.0 --registry=https://registry.npmjs.org
Test network connection: You can try to use curl to test network connection, the command is as follows:
curl -v https://nodejs.org/dist/v17.0.0 /node-v17.0.0.tar.gz

Guess you like

Origin blog.csdn.net/qq_15821487/article/details/131004212