-
-
Save carlesloriente/ab3387e7d035ed400dc2816873e9089e to your computer and use it in GitHub Desktop.
| # Check gist comments to verify system PATH and or adapt it. | |
| wget https://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz | |
| tar zxvf glibc-2.18.tar.gz | |
| cd glibc-2.18 | |
| mkdir build | |
| cd build | |
| ../configure --prefix=/opt/glibc-2.18 | |
| make -j4 | |
| sudo make install | |
| export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.18/lib |
how to undo? I have now critical errors with almost every command
have you solved it? I meet the same problem. @Georodin
Seems to be a problem with LD_LIBRARY_PATH
how to undo? I have now critical errors with almost every command
have you solved it? I meet the same problem. @Georodin
I solved it like this:
- Find what the variable has stored
$LD_LIBRARY_PATH
echo $LD_LIBRARY_PATHExample result:
/usr/local/lib:/usr/local/lib64:/opt/glibc-2.18- Remove the following:
:/opt/glibc-2.18It would look like this (for example):
/usr/local/lib:/usr/local/lib64- Save it to variable
$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64the source url is ineffective, replace it with https://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz
Can I update it without root?
ubuntu20.4如何将glibc2.31升级到2.32?
It is more straightforward to replace centos7 (after all, centos7 is really old)
Can I update it without root?
Be sure to use root
Thank you, @crazytaxii for pointing the URL change.
how to undo? I have now critical errors with almost every command
have you solved it? I meet the same problem. @Georodin
I solved it like this:
- Find what the variable has stored
$LD_LIBRARY_PATHecho $LD_LIBRARY_PATHExample result:
/usr/local/lib:/usr/local/lib64:/opt/glibc-2.18
- Remove the following:
:/opt/glibc-2.18It would look like this (for example):
/usr/local/lib:/usr/local/lib64
- Save it to variable
$LD_LIBRARY_PATHexport LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
If all commands fails after adding new glibc in LD_LIBRARY_PATH, simply try
unset $LD_LIBRARY_PATH
how to undo? I have now critical errors with almost every command