如何在RHEL中安装Luarocks?
我正在尝试在构建阶段的码头图像中安装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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不说明您正在使用的图像,但是Luarocks大多可能在此图像中或已禁用。
只是一个猜测,但只需将安装序言:
如果那不起作用,则图像中正在发生一些更复杂的事情,您必须与百胜解开。
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:
If that doesn't work, something slightly more complicated is going on in the image you'll have to untangle with yum.