简体   繁体   中英

Can not load Rails. Getting error to run bundle install, but that wont work either

Whenever I run rails s I get:

Could not find multi_json-1.11.0 in any of the sources Try running bundle install .

Running bundle install in turn gives me:

Fetching source index from https://rubygems.org/
Updating git://github.com/rails/activerecord-session_store.git
fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository
Retrying git fetch --force --quiet --tags 'git://github.com/rails/activerecord-session_store.git' "refs/heads/*:refs/heads/*" due to error (2/3): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags 'git://github.com/rails/activerecord-session_store.git' "refs/heads/*:refs/heads/*"` in directory /usr/local/rvm/gems/cache/bundler/git/activerecord-session_store-cf0cfe22b7614cc4fcd416e139ff2bd62ebd6f1d has failed.
If this error persists you could try removing the cache directory '/usr/local/rvm/gems/ruby-2.1.2@global/cache/bundler/git/activerecord-session_store-cf0cfe22b7614cc4fcd416e139ff2bd62ebd6f1d'
fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository
Retrying git fetch --force --quiet --tags 'git://github.com/rails/activerecord-session_store.git' "refs/heads/*:refs/heads/*" due to error (3/3): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags 'git://github.com/rails/activerecord-session_store.git' "refs/heads/*:refs/heads/*"` in directory /usr/local/rvm/gems/cache/bundler/git/activerecord-session_store-cf0cfe22b7614cc4fcd416e139ff2bd62ebd6f1d has failed.
If this error persists you could try removing the cache directory '/usr/local/rvm/gems/ruby-2.1.2@global/cache/bundler/git/activerecord-session_store-cf0cfe22b7614cc4fcd416e139ff2bd62ebd6f1d'
fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository
Git error: command `git fetch --force --quiet --tags
'git://github.com/rails/activerecord-session_store.git'
"refs/heads/*:refs/heads/*"` in directory
/usr/local/rvm/gems/cache/bundler/git/activerecord-session_store-cf0cfe22b7614cc4fcd416e139ff2bd62ebd6f1d
has failed.
If this error persists you could try removing the cache directory
'/usr/local/rvm/gems/ruby-2.1.2@global/cache/bundler/git/activerecord-session_store-cf0cfe22b7614cc4fcd416e139ff2bd62ebd6f1d'

Any help is appreciated.

根据您评论中的其他信息,我认为这可能是弹簧缓存问题,请尝试使用以下方式停止spring:spring stop,然后重试运行您的应用

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM