gpt4 book ai didi

ruby - bundle install 为 # 提供未定义的方法 `ruby'

转载 作者:数据小太阳 更新时间:2023-10-29 06:45:21 24 4
gpt4 key购买 nike

bundle install 给出:

> undefined method `ruby' for #<Bundler::Dsl:0x00000001c4e1f8>

知道如何解决吗?我使用的是 Ruby 1.9.3-p125。

最佳答案

Gembundler 的 1.2 版介绍了一个ruby method to the dsl允许您指定您的应用程序应使用的 Ruby 版本。

看起来您使用的Gemfile 是为这个新版本编写的,但是您的bundler 版本不支持ruby 方法。您需要安装最新的 bundler (gem install bundler 应该这样做)或从您的 Gemfile 中删除该行。

关于ruby - bundle install 为 #<Bundler::Dsl:0x00000001c4e1f8> 提供未定义的方法 `ruby',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11480598/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com