【问题标题】:I'm having trouble running my Rails web server我在运行 Rails Web 服务器时遇到问题
【发布时间】:2012-04-13 18:10:54
【问题描述】:

我已经安装了 ruby​​193 并通过命令提示符安装了 rails(我还安装了 DevKit)。但是,每当我尝试命令时:

rails server

我收到此错误:

←[31mCould not find gem 'jquery-rails (>= 0) x86-mingw32' in the gems available
on this machine.←[0m
←[33mRun `bundle install` to install missing gems.←[0m

我尝试了捆绑安装,但在尝试安装 json gem 时出现错误。有什么建议吗?

【问题讨论】:

    标签: ruby-on-rails configuration webserver


    【解决方案1】:

    确保在您的 Gemfile 中包含正确的 gem(没有拼写错误等)

    【讨论】:

      【解决方案2】:

      看起来你在 Windows 上。

      通过从Gemfile (gem install gem_to_install) 手动安装我的 gem,我在 Windows 上解决了同样的问题。成功安装特定 gem 后,我运行 bundle check 以查看还需要安装什么。这样,在安装了几个 gem 之后,我再次运行 bundle check 并看到了输出 The Gemfile's dependencies are satisfied

      然后服务器启动。我希望你也一样!

      附:您可以一次安装几个 gem:gem install gem1 gem2

      【讨论】:

        猜你喜欢
        • 2021-05-23
        • 1970-01-01
        • 1970-01-01
        • 2010-09-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多