英文:
I want generate a digital book from Github repository but there's a problem with my command gem or gems from Ruby on Windows 10
问题
I want to generate a digital book from GitHub repository, but there's a problem with my command gem or gems from Ruby on Windows 10.
当我尝试执行示例中的命令在我的目录中时:
bundle install
出现了与 "undefined method untaint" 相关的错误:
undefined method untaint String:Method Error
这是较旧的 Ruby 版本中的错误,但我使用的是 Ruby 版本 2.4.18,而此存储库是使用版本 1.16.5 创建的,因此我的系统安装了 Bundler 1.16.5 版本,这会导致错误。我该如何解决它?
我想要从 GitHub 生成数字书籍,以使用 Ruby 和 Asciidoctor。
英文:
I want to generate a digital book from GitHub repository, but there's a problem with my command gem or gems from Ruby on Windows 10
When I want to execute for example as the repository explain to me on my directory
bundle install
An error occurs related to "undefined method untaint"
undefined method untaint String:Method Error
It's a bug in older ruby versions, but I have a ruby version 2.4.18, but this repository was
created with version 1.16.5, so my system installed the version of Bundler 1.16.5, it's a problem
because generate the bug
How can I solve it?
I want to generate the digital book in GitHub to use ruby and Asciidoctor.
答案1
得分: 0
> 此方法已被弃用,并将在 Ruby 3.2 中删除。
因此,请双重检查您的 ruby -v
版本。
使用 rbenv 可能有助于确保您的项目使用正确的 Ruby 版本。
然后尝试 gem install bundler -v '1.16.5'
。
英文:
core/Object:untaint
mentions:
> This method is deprecated and will be removed in Ruby 3.2.
So double-check your ruby -v
version.
Using rbenv could help to make sure your project is using the right Ruby version.
Then try gem install bundler -v '1.16.5'
.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论