Ruby on rails 捆绑安装抛出错误
当我尝试运行Ruby on rails 捆绑安装抛出错误,ruby-on-rails,bundle,bundler,Ruby On Rails,Bundle,Bundler,当我尝试运行bundle安装时,出现以下错误 Bundler::GemspecError: Could not read gem at /usr/local/rvm/gems/ruby-1.9.3-p484@rails3tutorial/cache/turbolinks-2.1.0.gem. It may be corrupted. An error occurred while installing turbolinks (2.1.0), and Bundler cannot continu
bundle安装时,出现以下错误
Bundler::GemspecError: Could not read gem at /usr/local/rvm/gems/ruby-1.9.3-p484@rails3tutorial/cache/turbolinks-2.1.0.gem. It may be corrupted.
An error occurred while installing turbolinks (2.1.0), and Bundler cannot continue.
Make sure that `gem install turbolinks -v '2.1.0'` succeeds before bundling.
即使在安装上述gem和rubbundle install
时,它也会抛出类似的错误,并要求我确保安装了另一个gem,并且这种情况会继续下去。
我正在使用Rails 4.0.2和ruby 1.9.3p484。可能是文件缓存损坏了。尝试:
bundle install --no-cache
如果此操作不起作用,请删除缓存目录并重试:
rm -rf /usr/local/rvm/gems/ruby-1.9.3-p484@rails3tutorial/cache
bundle install
可能是文件缓存损坏了。尝试:
bundle install --no-cache
如果此操作不起作用,请删除缓存目录并重试:
rm -rf /usr/local/rvm/gems/ruby-1.9.3-p484@rails3tutorial/cache
bundle install
可能是文件缓存损坏了。尝试:
bundle install --no-cache
如果此操作不起作用,请删除缓存目录并重试:
rm -rf /usr/local/rvm/gems/ruby-1.9.3-p484@rails3tutorial/cache
bundle install
可能是文件缓存损坏了。尝试:
bundle install --no-cache
如果此操作不起作用,请删除缓存目录并重试:
rm -rf /usr/local/rvm/gems/ruby-1.9.3-p484@rails3tutorial/cache
bundle install
我刚刚在bcrypt
gem上遇到了这个问题
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Bundler::GemspecError: Could not read gem at /data/code/mdweb/vendor/bundle/ruby/2.1.0/cache/bcrypt-3.1.7.gem. It may be
corrupted.
An error occurred while installing bcrypt (3.1.7), and Bundler cannot continue.
Make sure that `gem install bcrypt -v '3.1.7'` succeeds before bundling.
/data/code/mdweb/vendor/bundle/ruby/2.1.0/cache/bcrypt-3.1.7.gem
文件为0字节;删除此文件或使用--no cache
选项没有帮助
使用gem安装bcrypt-v'3.1.7'
确实有效,所以我将~/.gem/ruby/2.1.0/cache/bcrypt-3.1.7.gem
复制到/data/code/mdweb/vendor/bundle/ruby/2.1.0/cache/bcrypt-3.1.7.gem
,这让我可以继续。如果在系统中找不到.gem
文件,也可以从中获取该文件
我怀疑bundler
存在某种连接问题(但由于某种原因,gem
没有);我怀疑DNS,因为在我得到错误之前有一个不寻常的长时间等待,但没有进一步调查。我只是在bcrypt
gem上遇到了这个问题
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Bundler::GemspecError: Could not read gem at /data/code/mdweb/vendor/bundle/ruby/2.1.0/cache/bcrypt-3.1.7.gem. It may be
corrupted.
An error occurred while installing bcrypt (3.1.7), and Bundler cannot continue.
Make sure that `gem install bcrypt -v '3.1.7'` succeeds before bundling.
/data/code/mdweb/vendor/bundle/ruby/2.1.0/cache/bcrypt-3.1.7.gem
文件为0字节;删除此文件或使用--no cache
选项没有帮助
使用gem安装bcrypt-v'3.1.7'
确实有效,所以我将~/.gem/ruby/2.1.0/cache/bcrypt-3.1.7.gem
复制到/data/code/mdweb/vendor/bundle/ruby/2.1.0/cache/bcrypt-3.1.7.gem
,这让我可以继续。如果在系统中找不到.gem
文件,也可以从中获取该文件
我怀疑bundler
存在某种连接问题(但由于某种原因,gem
没有);我怀疑DNS,因为在我得到错误之前有一个不寻常的长时间等待,但没有进一步调查。我只是在bcrypt
gem上遇到了这个问题
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Bundler::GemspecError: Could not read gem at /data/code/mdweb/vendor/bundle/ruby/2.1.0/cache/bcrypt-3.1.7.gem. It may be
corrupted.
An error occurred while installing bcrypt (3.1.7), and Bundler cannot continue.
Make sure that `gem install bcrypt -v '3.1.7'` succeeds before bundling.
/data/code/mdweb/vendor/bundle/ruby/2.1.0/cache/bcrypt-3.1.7.gem
文件为0字节;删除此文件或使用--no cache
选项没有帮助
使用gem安装bcrypt-v'3.1.7'
确实有效,所以我将~/.gem/ruby/2.1.0/cache/bcrypt-3.1.7.gem
复制到/data/code/mdweb/vendor/bundle/ruby/2.1.0/cache/bcrypt-3.1.7.gem
,这让我可以继续。如果在系统中找不到.gem
文件,也可以从中获取该文件
我怀疑bundler
存在某种连接问题(但由于某种原因,gem
没有);我怀疑DNS,因为在我得到错误之前有一个不寻常的长时间等待,但没有进一步调查。我只是在bcrypt
gem上遇到了这个问题
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Bundler::GemspecError: Could not read gem at /data/code/mdweb/vendor/bundle/ruby/2.1.0/cache/bcrypt-3.1.7.gem. It may be
corrupted.
An error occurred while installing bcrypt (3.1.7), and Bundler cannot continue.
Make sure that `gem install bcrypt -v '3.1.7'` succeeds before bundling.
/data/code/mdweb/vendor/bundle/ruby/2.1.0/cache/bcrypt-3.1.7.gem
文件为0字节;删除此文件或使用--no cache
选项没有帮助
使用gem安装bcrypt-v'3.1.7'
确实有效,所以我将~/.gem/ruby/2.1.0/cache/bcrypt-3.1.7.gem
复制到/data/code/mdweb/vendor/bundle/ruby/2.1.0/cache/bcrypt-3.1.7.gem
,这让我可以继续。如果在系统中找不到.gem
文件,也可以从中获取该文件
我怀疑bundler
存在某种连接问题(但由于某种原因,gem
没有);我怀疑是DNS,因为在我出错之前有一个不寻常的长时间等待,但是没有进一步调查。尝试将gem'turbolinks'
添加到您的gem文件中,然后使用bundle安装
。尝试将gem'turbolinks'
添加到您的gem文件中,然后使用bundle安装
。尝试添加gem'turbolinks'
到您的gem文件,然后使用bundle安装
。嘿,Sparkplug,反馈不会有什么坏处;-)嘿,火花塞,反馈不会有什么坏处;-)嘿,火花塞,反馈不会有什么坏处;-)嘿,火花塞,反馈不会有什么坏处;-)哇,是的,我刚刚遇到这个问题,从rubygems.org手动下载.gem文件就成功了(侧边栏中有一个名为“下载”的链接)。哇,这是一个很糟糕的bug…哇,是的,我刚刚遇到了这个问题,并从rubygems.org手动下载了.gem文件(侧边栏中有一个名为“下载”的链接)。哇,这是一个很糟糕的bug…哇,是的,我刚刚遇到了这个问题,并从rubygems.org手动下载了.gem文件(侧边栏中有一个名为“下载”的链接)。哇,这是一个很糟糕的bug…哇,是的,我刚刚遇到了这个问题,并从rubygems.org手动下载了.gem文件(侧边栏中有一个名为“下载”的链接)。哇,那是个坏虫子。。。