简体   繁体   English

如何使用较新版本的libc?

[英]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/pythonLD_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命令添加rpathelf 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.

相关问题 如何在较新版本的 libreoffice 中使用 unoconv - How to use unoconv with a newer version of libreoffice 当我使用的较新版本的库使用不同的函数名称时,如何解决硬编码? -蟒蛇 - How to resolve the hardcoding when a newer version of the library i use uses a different function name? - python 如何使用“venv”更新 Python 虚拟环境以使用更新版本的 Python? - How do I update a Python virtual environment with `venv` to use a newer version of Python? 如何为新的python版本安装numpy - how to install numpy for newer python version 如何让pip指向更新版本的Python - How to get pip to point to newer version of Python 我安装了 2 个版本的 python,但 cmake 使用的是旧版本。 如何强制 cmake 使用较新版本? - I have 2 versions of python installed, but cmake is using older version. How do I force cmake to use the newer version? 如何将 python 软件包从旧版本安装到新版本? - How to install python packages from older version to newer version? 在 AWS Lambda 上安装更新版本的 sqlite3 以与 Python 一起使用 - Install newer version of sqlite3 on AWS Lambda for use with Python 如何告诉 package 管理器(pip)永远不要用旧版本替换新版本 - How to tell package manager (pip) to never replace newer with older version 如何根据 scikit learn 的较新版本修改该行? - How to modify the line as per the newer version of scikit learn?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM