【问题标题】:Problem when installing rails on windows?在窗户上安装导轨时出现问题?
【发布时间】:2023-03-10 12:10:01
【问题描述】:

我正在尝试创建新的演示 Rails 程序,作为我书中的指南,就像这个命令

rails new demo

然后它给了我这个错误

https://imgur.com/rUSzO4B

说是我的问题

Could not find gem sqlite3 <> 1.4 x86-mingw32 in any of the gem sources listed in your Gem file

我必须跑

bundle install

解决它

我跑了bundle install,但没有任何改变。

我知道我的问题可能太容易解决了,但我对此很坚持,你能给我一些想法吗?

【问题讨论】:

    标签: ruby-on-rails ruby-on-rails-4


    【解决方案1】:

    来自 rails 中 bootsnap gem 的文档:“此 gem 适用于 macOS 和 Linux。”见:https://github.com/Shopify/bootsnap

    他们似乎在这里找到了解决方法: How can I properly install bootsnap on windows

    在您的项目 Gemfile 中添加或更改为 gem 'bootsnap', '=1.4.1', require: false

    【讨论】:

    猜你喜欢
    • 2016-11-19
    • 2012-01-28
    • 1970-01-01
    • 2015-06-01
    • 2012-01-17
    • 1970-01-01
    相关资源
    最近更新 更多