Asked by Wilson Edwards
at 2025-02-07 01:07:31
Point:500 Replies:0 POST_ID:829299USER_ID:12108
Topic:
gcc;linux
When upgrade gcc or lib, it will cause issue, and may cause reboot is not working
for exmaple:
su root
Password:
node: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /lib64/libstdc++.so.6)
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v16.20.2 --silent` to unset it.
For example, running
-------------------
node
node: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /lib64/libstdc++.so.6)
Or
php
php: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /lib64/libstdc++.so.6)
after re-install glibc at /usr/local
and run nvm use --delete-prefix v16.20.2 --silent` //for node other issue
now ok, php and node
but got some error when install python3.9 version
rm -f /usr/local/glibc-2.18/build/stubs.h
/usr/local/glibc-2.18/build/elf/sln /usr/local/glibc-2.18/build/elf/symlink.list
rm -f /usr/local/glibc-2.18/build/elf/symlink.list
test ! -x /usr/local/glibc-2.18/build/elf/ldconfig || LC_ALL=C LANGUAGE=C \
/usr/local/glibc-2.18/build/elf/ldconfig \
/lib64 /usr/lib64
LD_SO=ld-linux-x86-64.so.2 CC="gcc -B/usr/bin/" /usr/bin/perl scripts/test-insta llation.pl /usr/local/glibc-2.18/build/
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libm.so: undefined refe rence to `__strtod_nan@GLIBC_PRIVATE'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libm.so: undefined refe rence to `__strtof128_nan@GLIBC_PRIVATE'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libm.so: undefined refe rence to `__strtof_nan@GLIBC_PRIVATE'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libm.so: undefined refe rence to `__strtold_nan@GLIBC_PRIVATE'
collect2: error: ld returned 1 exit status
Execution of gcc -B/usr/bin/ failed!
The script has found some problems with your installation!
Please read the FAQ and the README file and check the following:
- Did you change the gcc specs file (necessary after upgrading from
Linux libc5)?
- Are there any symbolic links of the form libXXX.so to old libraries?
Links like libm.so -> libm.so.5 (where libm.so.5 is an old library) are wrong,
libm.so should point to the newly installed glibc file - and there should be
only one such link (check e.g. /lib and /usr/lib)
You should restart this script from your build directory after you've
fixed all problems!
Btw. the script doesn't work if you're installing GNU libc not as your
primary library!
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/local/glibc-2.18'
make: *** [install] Error 2
Change libm.so link to 2.18 version
Make sure glibc, libc.so libm.so is same version