Ruby on Rails cannot bundle install

删除回忆录丶 提交于 2019-12-23 01:46:06

问题


Ruby version: 2.1.5p273
Rails version: 4.2.0
Gem Version: 2.2.2
OS: Windows 7 x64

Hello, I am very very new to rails programming. I am trying to start learning, but cannot
because of these problems.

  • I created a rails app
    I type: >rails new app

  • I then navigate to the created folder
    I type: >rails server

  • It tells me
    "Run 'bundle install' to install missing gems."

  • I do so and it than tells me:
    "Make sure that 'gem install debugger-linecache -v '1.2.0' succeeds before bundling'"

after installing said gem I try bundle install again, but it than repeats the same error with a different gem.

""Make sure that 'gem install *random gem* -v '*random version*' succeeds before bundling'""

I hardly have any idea what I'm doing here. How can I get this server running?


回答1:


i started to write an answer, and then saw you comment,

but for everyone out there who need an answer and didn't notice your comment:

Try this,

first run:

bundle update

and then try to bundle install

if its not working, install bundler:

gem install bundler

and now run bundle install




回答2:


Solved by using the following two commands:
gem update --system
gem install bundler



来源:https://stackoverflow.com/questions/27729983/ruby-on-rails-cannot-bundle-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!