[英]How to use newer version libc?
When I import a module in python, I find: 当我在python中导入模块时,我发现:
ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/user/tools/root6/lib/libPyROOT.so)
And I have a newer version in /home/user/.linuxbrew/lib64
, but if I export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/.linuxbrew/lib64
I got a Segmentation fault
而且我在
/home/user/.linuxbrew/lib64
有一个较新的版本,但是如果我export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/.linuxbrew/lib64
出现Segmentation fault
Is there any way to solve Segmentation fault
error or just use the newer version libc
有什么办法可以解决
Segmentation fault
错误或仅使用更新版本的libc
my os is Red Hat Enterprise Linux Server release 6.2 (Santiago) 我的操作系统是Red Hat Enterprise Linux Server 6.2版(圣地亚哥)
I got the same problem recently. 我最近也遇到了同样的问题。 Here is what I have done and it works for me:
LD_LIBRARY_PATH=/home/user/.linuxbrew/lib /home/user/.linuxbrew/lib/ld.so /abs/path/to/python
. 这是我所做的并且对我
LD_LIBRARY_PATH=/home/user/.linuxbrew/lib /home/user/.linuxbrew/lib/ld.so /abs/path/to/python
: LD_LIBRARY_PATH=/home/user/.linuxbrew/lib /home/user/.linuxbrew/lib/ld.so /abs/path/to/python
。 I recommend to make the script above, or add rpath
and elf interpreter
using patchelf
command. 我建议制作上面的脚本,或使用
patchelf
命令添加rpath
和elf interpreter
。
I may be way out of your access level with this. 我可能与此无关。 Apologies if this is not possible for you.
抱歉,如果您不能这样做。 I was researching this same issue with our db stack as we were upgrading to a newer db version that required a newer version of glibc.
当我们升级到需要新版本的glibc的新数据库版本时,我正在研究数据库堆栈中的同一问题。 What I found was that the most practical, easiest solution for us was to upgrade to CentOS7.
我发现对我们来说最实用,最简单的解决方案是升级到CentOS7。 I hope that helps.
希望对您有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.