New Rails Project: 'bundle install' can't install rails in gemfile

前端 未结 9 1649
不知归路
不知归路 2020-12-11 06:37

I have installed a new rails project like so:

$ rails new site

and it executes and reaches:

bundle install
<
9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-11 07:08

    I had this same problem and what worked for me was installing RVM, installing Ruby 2.1.1 (an upgrade from the 2.0 that comes packaged in Mavericks)...

    rvm get stable
    rvm reinstall 2.1.1
    

    (use whatever the latest version is, for me that's 2.1.1)

    ...and then run rvm use 2.1.1 to make sure that I had switched to using that version.

    After that, my gem installs ran smoothly.

提交回复
热议问题