当我已经有 glibc2.31 时如何使用 glibc 2.33

当我已经有 glibc2.31 时如何使用 glibc 2.33

安装沃特福德,我遇到了一个问题glibc。就像我尝试

gfortran TEST_1_fortran_only_fixed.f && ./a.out

我收到以下错误:

/usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/gcc@11/11.3.0/bin/../libexec/gcc/x86_64-pc-linux-gnu/11/liblto_plugin.so: error loading plugin: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/linuxbrew/.linuxbrew/Cellar/gcc@11/11.3.0/bin/../libexec/gcc/x86_64-pc-linux-gnu/11/liblto_plugin.so)
collect2: error: ld returned 1 exit status

我有 GLIBC 2.31,

ldd (Ubuntu GLIBC 2.31-0ubuntu9.9) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

当我搜索更新库时,我收到了来自各处的警告,提示:

glibc 提供的库具有大量的反向依赖性,升级可能会导致需要重建相当多的其他软件包。

那么解决这个问题的最佳方案是什么?任何帮助都将不胜感激。TIA

相关内容