GLIBC_2.11'找不到(需要/ path_name / bin / gfortran) [英] GLIBC_2.11' not found (required by /path_name/bin/gfortran)

查看:182
本文介绍了GLIBC_2.11'找不到(需要/ path_name / bin / gfortran)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了GCC和Gfortran。它是gcc版本4.1.2 20080704(红帽4.1.2-52)。但是,我正在尝试安装更新的gfortran编译器。这是我到目前为止所做的。从 http://gfortran.meteodat.ch/download/x86_64/ 我每晚下载gcc-trunk.tar.xz,然后将其解压到opt目录中。这创建了目录gcc-trunk。然后我下载了gcc-5-infrastructure.tar.xz并解压缩到gcc-trunk中。然后我输入:


PATH =$ HOME / gcc-trunk / bin:$ PATH

MANPATH =$ HOME / gcc-trunk / share / man



LD_LIBRARY_PATH =$ HOME / gcc-trunk / lib64:$ HOME / gcc-trunk / lib:$ LD_LIBRARY_PATH


在bash上。然后我尝试验证gfortran是否正确安装了


/ path_name / gfortran -v


但是,我收到消息GLIBC_2.11'not found(required / path_name / bin / gfortran)。我不确定是什么问题。我应该怎么做?

解决方案

下载的gfortran二进制文件是针对比您安装的glibc更新版本你的系统。



你可以解决这个问题,例如通过


  • 获取针对老版本glibc构建的gfortran二进制文件
  • 从源代码构建GCC

  • 使用新的glibc升级到更新的发行版


I already have GCC and Gfortran installed. It is gcc version 4.1.2 20080704 (Red Hat 4.1.2-52). However, I am trying to install a more recent gfortran compiler. Here is what I did so far. From the http://gfortran.meteodat.ch/download/x86_64/ I downloaded the nightly "gcc-trunk.tar.xz" and I extracted it into the directory "opt." This created the directory "gcc-trunk". I then downloaded the "gcc-5-infrastructure.tar.xz" and extracted it into "gcc-trunk." I then input

PATH="$HOME/gcc-trunk/bin":$PATH

MANPATH="$HOME/gcc-trunk/share/man"

LD_LIBRARY_PATH="$HOME/gcc-trunk/lib64":"$HOME/gcc-trunk/lib":$LD_LIBRARY_PATH

on bash. I then tried to verify whether gfortran installed correctly with

/path_name/gfortran -v

However, I get the message GLIBC_2.11' not found (required by /path_name/bin/gfortran). I am not sure what is the problem. What should I do?

解决方案

The gfortran binary you downloaded was built against a newer version of glibc than the one you have installed on your system.

You can solve this problem e.g. by

  • Acquiring a gfortran binary built against an older version of glibc
  • Building GCC from source
  • Upgrade to a newer distro with a newer glibc

这篇关于GLIBC_2.11'找不到(需要/ path_name / bin / gfortran)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆