Amazon Linux 2 / Red Hat Linux Enterprise:binutils 不会安装 'ld' bin

Amazon Linux 2 / Red Hat Linux Enterprise : binutils won't install 'ld' bin

尝试在 Amazon linux 2(基于 Red Hat Linux Enterprise)上安装 mongodb 扩展,但我缺少 ld 扩展。

我安装了 binutils,但没有 ld bin :(

binutils-2.29.1-30.amzn2.x86_64.rpm                                                 | 5.8 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installation : binutils-2.29.1-30.amzn2.x86_64                                                       1/1
/var/lib/alternatives/ld est vide !
/var/lib/alternatives/ld est vide !
  Vérification : binutils-2.29.1-30.amzn2.x86_64                                                       1/1

Installé :
  binutils.x86_64 0:2.29.1-30.amzn2

Terminé !

which ld /usr/bin/which: no ld in (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/ec2-user/.local/bin:/home/ec2-user/bin)

知道如何解决这个问题吗?

很好,我必须删除“/var/lib/alternatives/”中的旧 'ld' 文件,然后重新安装 binutils