百胜看不到Ruby已安装

发布于 2025-01-21 07:56:00 字数 995 浏览 5 评论 0原文

我正在尝试从CentOS 7上的rpm文件安装一个软件包,并依赖Ruby(> = 2.6)。

我们通过RVM安装了Ruby(2.6.6)(我们可以通过YUM获得的最新版本为2.0)。

It seems YUM is unable to tell that we have Ruby installed and won't install the package we want:

Error: Package: shopify-cli-2.15.6-1.noarch (/shopify-cli-2.15.6-1.noarch)
           Requires: ruby >= 2.6.0
           Available: ruby-2.0.0.648-36.el7.x86_64 (base)
               ruby = 2.0.0.648-36.el7
           Available: ruby-2.0.0.648-39.el7_9.x86_64 (updates)
               ruby = 2.0.0.648-39.el7_9

RVM List shows:

$ rvm list
=* ruby-2.6.6 [ x86_64 ]
   ruby-3.0.0 [ x86_64 ]

And the ruby version:

$ ruby -v
ruby 2.6.7p197 (2021-04-05 revision 67941) [x86_64-linux]

I'm a bit stuck how to get past this point - is there a way for YUM要知道我们已经安装了Ruby并让我们进步吗?

I'm trying to install a package from an RPM file on Centos 7, with a dependency for Ruby (>= 2.6).

We have Ruby installed (2.6.6) via RVM (The latest version we can get via YUM is 2.0).

It seems YUM is unable to tell that we have Ruby installed and won't install the package we want:

Error: Package: shopify-cli-2.15.6-1.noarch (/shopify-cli-2.15.6-1.noarch)
           Requires: ruby >= 2.6.0
           Available: ruby-2.0.0.648-36.el7.x86_64 (base)
               ruby = 2.0.0.648-36.el7
           Available: ruby-2.0.0.648-39.el7_9.x86_64 (updates)
               ruby = 2.0.0.648-39.el7_9

RVM List shows:

$ rvm list
=* ruby-2.6.6 [ x86_64 ]
   ruby-3.0.0 [ x86_64 ]

And the ruby version:

$ ruby -v
ruby 2.6.7p197 (2021-04-05 revision 67941) [x86_64-linux]

I'm a bit stuck how to get past this point - is there a way for YUM to know we have Ruby installed and let us progress?

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

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

发布评论

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

评论(1

好倦 2025-01-28 07:56:00

在这种情况下,您需要将shopify-cli从RVM内部安装为宝石:

rvm 2.6.6
gem install shopify-cli

然后,您可以在RVM内部执行它。另一种选择是使用Shopify-Cli容器图像。

In this situation you would want to install the shopify-cli as a gem from within your RVM:

rvm 2.6.6
gem install shopify-cli

Then you can execute it from within your RVM. An alternative would be to use a shopify-cli container image.

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