Ruby on rails 使用crapp进行捆绑安装时出现奇怪错误
下面是默认Rails应用程序的Ruby on rails 使用crapp进行捆绑安装时出现奇怪错误,ruby-on-rails,dependencies,gemfile,cramp,Ruby On Rails,Dependencies,Gemfile,Cramp,下面是默认Rails应用程序的Gemfile source 'https://rubygems.org' gem 'rails', '4.1.0' gem 'sqlite3' 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' ge
Gemfile
source 'https://rubygems.org'
gem 'rails', '4.1.0'
gem 'sqlite3'
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 'tzinfo-data', platforms: [:mingw, :mswin]
当我运行bundle安装时
一切正常
现在做
gem install cramp
它也正在安装中,没有任何问题
最后包括
gem 'cramp'
进入Gemfile
。从现在起,我们取得了以下成果:
捆绑安装
DL is deprecated, please use Fiddle
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
cramp (>= 0) x86-mingw32 depends on
activesupport (= 3.0.pre) x86-mingw32
rails (= 4.1.0) x86-mingw32 depends on
railties (= 4.1.0) x86-mingw32 depends on
activesupport (4.1.0)
包更新
DL is deprecated, please use Fiddle
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "thor":
In Gemfile:
cramp (>= 0) x86-mingw32 depends on
thor (~> 0.14.6) x86-mingw32
rails (= 4.1.0) x86-mingw32 depends on
railties (= 4.1.0) x86-mingw32 depends on
thor (0.19.1)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
cramp (>= 0) x86-mingw32 depends on
activesupport (= 3.0.pre) x86-mingw32
rails (= 4.1.0) x86-mingw32 depends on
activesupport (4.1.0)
我没有指定crapp版本,因此必须使用与我安装的gem install crapp
相同的版本。但是为什么gem安装
没有任何问题,bundle安装发现了一些未解决的依赖项
我正试图在Windows7+Ruby2.0.0p451+Rails4.1.0上完成这一切
在Ubuntu12.04LTS上使用相同的Ruby和Rails版本
我尝试的是:我在默认的
Gemfile
上运行bundle安装
和bundle更新
,然后添加gem'crapp'
,再次运行bundle安装
和bundle更新
。结果您可以看到上面的几行。从过去4个月到第4个月,抽筋似乎不活跃
这里有一些更多的选择抽筋宝石
@SNEH PANDYA:在这里发布之前已经这样做了,但没有结果。重命名Gemfile.lock并重新进行捆绑安装。@Sumit Munot:相同的结果。看来“crapp”gem可能不支持“Rails 4”。你能用Rails 3试试吗……这是git repo对Rails->3+的支持。。