2012-04-13 68 views
0

我已经安装了ruby193,并且我已经通过命令提示符安装了rails(我还安装了DevKit)。然而,每当我尝试的命令:我在运行我的Rails web服务器时遇到了问题

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宝石时出错。有什么建议么?

回答

0

请确保您的Gemfile要包括正确的宝石(无拼写错误等)

0

看起来,你是在Windows上。

我在Windows上通过手动安装我的宝石Gemfilegem install gem_to_install),击败了同样的问题。成功安装特定的宝石后,我跑了bundle check看看我还需要安装什么。这种方式几经安装的宝石后,我再次运行bundle check,并看到输出The Gemfile's dependencies are satisfied

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

P.S.您可以一次安装几块宝石:gem install gem1 gem2