如何在 Amazon Linux 2 上安装 Erlang 24.1

如何在 Amazon Linux 2 上安装 Erlang 24.1

我需要在 Aamazon Linux 2 上安装 Erlang 24.1。我正在为此使用包云脚本和存储库,但失败并显示以下消息。

(venv) [CORP\shiv.d@a-1njrk968l4brs yum.repos.d]$ sudo yum install erlang
Loaded plugins: amzn_workspaces_filter_updates, halt_os_update_check, priorities, update-motd
rabbitmq_erlang/x86_64/signature                                                                                                                                      |  833 B  00:00:00     
rabbitmq_erlang/x86_64/signature                                                                                                                                      | 1.8 kB  00:00:00 !!! 
Not using downloaded rabbitmq_erlang/repomd.xml because it is older than what we have:
  Current   : Fri Oct  1 10:15:14 2021
  Downloaded: Tue Sep 14 08:38:56 2021
rabbitmq_erlang-source/signature                                                                                                                                      |  819 B  00:00:00     
rabbitmq_erlang-source/signature                                                                                                                                      |  951 B  00:00:00 !!! 
rabbitmq_rabbitmq-server-source/signature                                                                                                                             |  836 B  00:00:00     
rabbitmq_rabbitmq-server-source/signature                                                                                                                             | 1.0 kB  00:00:00 !!! 
356 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package erlang.x86_64 0:24.1-1.el8 will be installed
--> Processing Dependency: libz.so.1(ZLIB_1.2.7.1)(64bit) for package: erlang-24.1-1.el8.x86_64
--> Finished Dependency Resolution
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
(venv) [CORP\shiv.d@a-1njrk968l4brs yum.repos.d]$

它抱怨已经安装的 zlib 1.2.7.1。

答案1

不是 100% 确定,但这可能是由于 Amazon Linux 的 Linux 版本所致。

正如您在 Erlang 包名称中看到的,erlang.x86_64 0:24.1-1。el8 这表明它适用于 Enterprise Linux 8。

如果你试图逃跑rpm -E %{rhel},它就会把你送回来7,因此你需要支持el7

相关内容