如何在RHEL中安装Luarocks?

发布于 2025-02-06 08:32:49 字数 1049 浏览 5 评论 0原文

我正在尝试在构建阶段的码头图像中安装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

是什么问题?

如何使用二进制安装它?

I am trying to install luarocks in a docker image in the build stage

RUN yum makecache
RUN yum install -y luarocks

I see this error

 => [ 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

What is the problem?

How to install it using the binary?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一抹微笑 2025-02-13 08:32:51

您不说明您正在使用的图像,但是Luarocks大多可能在此图像中或已禁用。

只是一个猜测,但只需将安装序言:

yum -y install epel-release

如果那不起作用,则图像中正在发生一些更复杂的事情,您必须与百胜解开。

You don't state what image you're using, but LuaRocks is mostly likely in EPEL for this image, or is otherwise disabled.

Just a guess, but just preface your installation with:

yum -y install epel-release

If that doesn't work, something slightly more complicated is going on in the image you'll have to untangle with yum.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文