可以将RBENV与Ruby2一起安装Ruby3吗?

发布于 2025-01-21 07:17:53 字数 442 浏览 1 评论 0原文

我正在尝试在ubuntu20.04上获得ruby3(我必须出于策略合规性的原因必须使用它),并且仅包括2.7的Ruby

此版本的Ubuntu提供rbenv,可用口译员的列表具有<代码> RBX-3.0 。当我尝试安装它时,我会得到

bundler-1.3.6/lib/lib/bundler/fetcher.rb:240:在dependency_api_uri':unri:module(nomethoderror)

不确定版本是否相关,但由于错误,但由于错误我得到的(未定义的方法 encode'for Uri:module`)通常是由Ruby 2代码运行Ruby 3引起的,我猜这是我困境的来源。

为此有工作吗?还是在此操作系统上获得Ruby3的更聪明的方法?

I'm trying to get ruby3 on ubuntu20.04 (which I must use for policy compliance reasons) and only includes ruby up to 2.7

this version of ubuntu provides rbenv, and the list of available interpreters have rbx-3.0. When i try to install it i get

bundler-1.3.6/lib/bundler/fetcher.rb:240:in dependency_api_uri': undefined methodencode' for URI:Module (NoMethodError)

not sure if the versions are related, but since the error i am getting (undefined methodencode' for URI:Module`) is often caused by ruby 2 code running ruby 3, i'm guessing this is the source of my predicament.

Is there a work around for this? or a smarter way to go about getting ruby3 on this OS?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文