繁体   English   中英

如何在 rhel 中安装 luarocks?

[英]how to install luarocks in rhel?

我正在尝试在构建阶段的 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

问题是什么?

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

你不知道 state 你正在使用什么图像,但 LuaRocks 很可能在 EPEL 中用于此图像,或者被禁用。

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

yum -y install epel-release

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM