版本的校验和与捆绑安装不匹配

时间:2021-01-15 00:22:14

Okay so I created a project on my old laptop in rails and heroku. I wish to access the files and push new edits to heroku on my laptop. They are all saved on Git so I am able to clone the git depository onto my new laptop.

好的,所以我在rails和heroku的旧笔记本电脑上创建了一个项目。我希望在我的笔记本电脑*问这些文件并将新编辑推送到heroku。它们都保存在Git上,所以我可以将git存储库克隆到我的新笔记本电脑上。

My laptop had no previous software on it so I installed ruby and rails and the versions were fine but when I try and bundle install when the folder is open in command prompt I get the error "The checkum of /versions does not match the checksum provided by server! Something is wrong".

我的笔记本电脑上没有以前的软件,所以我安装了ruby和rails并且版本很好但是当我在命令提示符下打开文件夹时尝试捆绑安装时出现错误“/ checkum of / versions与提供的校验和不匹配通过服务器!出了点问题“。

I am new to rails etc etc so I do not have a clue whats going on here I just want to setup my environment exactly the same as last time so I can start where I left off on my old laptop. I've tried numerous things like clearing the gems, updating the gems, reinstalling ruby and rails.

我是rails等等的新手,所以我不知道在这里发生了什么我只是想设置我的环境与上次完全相同所以我可以从我在旧笔记本电脑上停下的地方开始。我尝试了很多东西,比如清理宝石,更新宝石,重新安装红宝石和铁轨。

In addition to this when I try rails -v i get the error message "You do not have [insert gem name] try running bundle install" So i'll install the new gem and then i get the same error.

除了这个当我尝试rails -v我得到错误消息“你没有[插入宝石名称]尝试运行bundle install”所以我将安装新的gem然后我得到相同的错误。

This has become a nightmare and I just want to find a clean way to install ruby and rails so that these errors will get out the way.

这已成为一场噩梦,我只是想找到一种安装ruby和rails的简洁方法,以便这些错误能够解决问题。

I created this project by following a guide so I guess I could do that all again but I would much prefer to just fix this current issue. I found one other occurrence of this happening to someone but it was in the case of creating a new file.

我按照指南创建了这个项目,所以我想我可以再次这样做,但我更愿意解决当前的问题。我发现另外一件事发生在某人身上,但是在创建一个新文件的情况下。

This is my gem file in the project

这是我项目中的gem文件

source 'http://rubygems.org'

ruby '2.1.8'

gem 'rails', '4.1.8'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0',          group: :doc
gem 'pygments.rb', '~> 0.6.0'
gem 'redcarpet', '~> 3.2.2'
gem 'friendly_id', '~> 5.1.0'
gem 'will_paginate', '~> 3.0.7'

gem 'tzinfo-data', platforms: [:mingw, :mswin]

group :development do
    gem 'sqlite3'
end

group :production do
    gem 'pg'
    gem 'rails_12factor'
end

2 个解决方案

#1


18  

Try this. I was having a similar problem. Same error.

尝试这个。我遇到了类似的问题。同样的错误。

Try running

试试跑步

gem uninstall bundler

If it doesn't let you, add --force at the end of the command.

如果它不允许你,在命令的末尾添加--force。

Then reinstall bundler

然后重新安装捆绑器

gem install bundler
bundle

I also did some extra deleting, but I'm not sure that was necessary.

我还做了一些额外的删除,但我不确定是否有必要。

#2


1  

had a similar Issue:

有类似的问题:

fixed using

固定使用

rm -rf ~/.bundle/cache

rm -rf~ / .bundle / cache

#1


18  

Try this. I was having a similar problem. Same error.

尝试这个。我遇到了类似的问题。同样的错误。

Try running

试试跑步

gem uninstall bundler

If it doesn't let you, add --force at the end of the command.

如果它不允许你,在命令的末尾添加--force。

Then reinstall bundler

然后重新安装捆绑器

gem install bundler
bundle

I also did some extra deleting, but I'm not sure that was necessary.

我还做了一些额外的删除,但我不确定是否有必要。

#2


1  

had a similar Issue:

有类似的问题:

fixed using

固定使用

rm -rf ~/.bundle/cache

rm -rf~ / .bundle / cache