可以将RBENV与Ruby2一起安装Ruby3吗?
我正在尝试在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 method
encode' for URI:Module (NoMethodError)
not sure if the versions are related, but since the error i am getting (undefined method
encode' 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论