【问题标题】:how to install luarocks in rhel?如何在 rhel 中安装 luarocks?
【发布时间】:2023-01-05 05:17:32
【问题描述】:

我正在尝试在构建阶段的 docker 镜像中安装 luarocks

RUN yum makecache
RUN yum install -y luarocks

我看到这个错误

 => [ 6/10] RUN yum makecache                                                                                                                                                                                       380.2s
 => ERROR [ 7/10] RUN yum install -y luarocks                                                                                                                                                                         4.7s
------
 > [ 7/10] RUN yum install -y luarocks:
#11 0.662 Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
#11 0.693 
#11 0.693 This system is not registered with an entitlement server. You can use subscription-manager to register.
#11 0.693 
#11 4.450 No package luarocks available.
#11 4.632 Error: Nothing to do
------
executor failed running [/bin/sh -c yum install -y luarocks]: exit code: 1

问题是什么?

如何使用二进制文件安装它?

【问题讨论】:

    标签: docker lua rhel luarocks


    【解决方案1】:

    您没有说明您使用的是什么图像,但 LuaRocks 很可能在该图像的 EPEL 中,或者以其他方式被禁用。

    只是一个猜测,但只需在安装前加上:

    yum -y install epel-release
    

    如果这不起作用,则您必须使用 yum 解决图像中的一些稍微复杂的问题。

    【讨论】:

      猜你喜欢
      • 2016-09-02
      • 2017-05-10
      • 1970-01-01
      • 2020-06-30
      • 2015-12-25
      • 2014-02-14
      • 1970-01-01
      • 2016-03-22
      • 2021-02-09
      相关资源
      最近更新 更多