本文介绍了在文件ld-linux-x86-64.so.2中未定义版本GLIBC_PRIVATE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有人可以在gcc版本问题上给初学者一些帮助?

if anyone could give a beginner some help on gcc version issue?

我在"version GLIBCXX_3.4.20' not found"上遇到了这个问题.我点击链接后:如何在CentOS 7.2上安装带有yum的gcc 5.3吗?我遇到了以下额外问题:

I met the issue on "version GLIBCXX_3.4.20' not found". After I followed the link: How to Install gcc 5.3 with yum on CentOS 7.2?I met extra issues as below:

scl enable devtoolset-7 bash
git: relocation error: libc.so.6: symbol _dl_starting_up, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference

推荐答案

您的问题与任何GCC版本无关.

Your problem has nothing to do with any GCC versions.

此错误很可能意味着您正在尝试使用系统libc.so.6以外的其他 (也许通过将LD_LIBRARY_PATH指向包含来自其他系统的libc.so.6副本的目录) ).

This error most likely means that you are trying to use something other than the system libc.so.6 (perhaps by pointing LD_LIBRARY_PATH to directory that contains a copy of libc.so.6 from a different system).

不要那样做:它不起作用.可以使用其他GLIBC版本,但是很复杂.此 answer 提供了一些实现此目的的方法.

Don't do that: it doesn't work. Using alternate GLIBC version is possible, but complicated. This answer provides some ways to do that.

这篇关于在文件ld-linux-x86-64.so.2中未定义版本GLIBC_PRIVATE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 14:35