Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by D Ft
at 2024-09-18 09:54:01
Point:500 Replies:3 POST_ID:829281USER_ID:12422
Topic:
linux#lib64#nodejs
Yesterday, I have upgrade npm and nodes, and run command
node -v
it got error
[root@vmi8751296 lib64]# node -v
node: /usr/local/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by node)
node: /usr/local/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node)
node: /usr/local/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by node)
node: /usr/lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)
node: /usr/lib64/libc.so.6: version `GLIBC_2.27' not found (required by node)
node: /usr/lib64/libc.so.6: version `GLIBC_2.28' not found (required by node)
node: /usr/lib64/libc.so.6: version `GLIBC_2.25' not found (required by node)
And tried to fix it by the link ,https://blog.csdn.net/hellohake/article/details/111194888
strings/libc.so.6 |grep GLIBC
find / -name " *libc.so.6*'
Want to replace the current by others whcih can haveGLIBC_2.27
After changed that, my Putty shell access is stopped. And I can NOT login ssh again
Even I tried to use resuce mode on my server still not start up
Please advise
Author: D Ft replied at 2024-09-18 10:05:33
if u want to use update nodejs, u can update those library at /usr/lib64 as the link
Accepted Solution
Expert: Wilson Edwards replied at 2024-09-18 09:49:44
500 points Excellent
you can reset your root password on your VPS server provider help pages, then login rescue mode again from VNC viewer..Before login, u should shut down your server then run rescue mode with root account.Once u logging in successfully, try to run these command
#>fdisk -l
then select the disk u want to fix, for example /dev/sda3/, then mount it to /mnt
mount /dev/sda3 /mnt
cd /mnt
cd /usr/lib64
now u can change it back to your privous libc.so.6 file, then reboot the server again
For nodejs and npm , u should return the previous version by nvm command
nvm list-remote
nvm install v1X.1X.2X ......
hope it help
Author: D Ft replied at 2024-09-18 09:38:10