Can anyone help me solve this Ruby gem dependency issue??
I'm trying to install this library described here
http://datagraph.rubyforge.org/sinatra-linkeddata/#Dependencies
Bundler gives me the following error. (Does it seem like there is an incompatibility between the 'linkeddata' gem and the 'sinatra-linkeddata' gem I'm trying to install.
Bundler could not find compatible versions for gem "linkeddata":
In Gemfile:
sinatra-linkeddata (>= 0) ruby depends on
linkeddata (~> 0.2.0) ruby
linkeddata (1.1.1)
My gem file looks like this: how should I modify it.
source 'https://rubygems.org'
gem "nokogiri"
gem 'sinatra'
gem 'rdf'
gem 'sparql'
gem 'linkeddata'
gem 'sass'
gem 'tilt', '>= 1.3.4', '~> 1.3'
gem 'thin'
gem 'sinatra-linkeddata'
Try running bundle update. If that doesn't work you can modify gem 'linkeddata' to gem 'linkeddata', '~> 0.2.0' in order to match the dependency of sinatra-linkeddata and then run bundle update linkeddata
Related
This is my gemfile:
source 'https://rubygems.org'
gem 'watir', '~> 5.0', '>= 5.0.0'
gem 'watir-scroll'
gem 'cucumber'
gem 'rspec'
gem 'page-object'
gem 'require_all'
gem 'selenium-webdriver', '~> 2.53', '>= 2.53.1'
gem 'nokogiri', '~> 1.6.8', '>= 1.6.8.1'
gem 'webdriver-user-agent', '~> 7.1'
gem 'headless'
gem 'bundle', '~> 0.0.1'
gem 'appium_lib'
gem 'rake'
gem 'test-unit'
When I execute bundle install with this gemfile, I find watir-webdriver & commonwatir are installed.
I want to only want watir installed.
I don't want watir-webdriver or commonwatir installed.
How should I edit my gemfile?
Thanks for your assistance.
Watir v5.0 is the last version of Watir where it was a meta gem for Watir-Webdriver and Watir-Classic. This is where commonwatir and watir-webdriver gems are dependencies. To remove them and only use Watir(-Webdriver), update the Watir gem to be the current 6.x release.
In other words, change:
gem 'watir', '~> 5.0', '>= 5.0.0'
To:
gem 'watir', '~> 6.0'
You probably should also remove (or at least update) the Selenium-WebDriver requirement. The current version of Watir is not going to work with Selenium-WebDriver v2.x. Given that Watir will already require Selenium, I don't think you need it in your gem file.
gem 'selenium-webdriver', '~> 2.53', '>= 2.53.1'
Both are runtime dependencies of the watir gem, so of course, they would be installed automatically.
https://rubygems.org/gems/watir/versions/5.0.0
Runtime Dependencies (2):
commonwatir ~> 4
watir-webdriver >= 0
I'm using RSpec with Guard, and targeting RSpec 3.0.0.rc1. guard-rspec has the following in its gemspec:
s.add_dependency 'rspec', '>= 2.14', '< 4.0'
and in my Gemfile, I am specifying:
gem 'guard-rspec', require: false
gem 'rspec-rails', '~> 3.0.0.rc1'
When I run bundle update, I get the following output:
Bundler could not find compatible versions for gem "rspec-expectations":
In Gemfile:
rspec (< 4.0, >= 2.14) ruby depends on
rspec-expectations (~> 2.14.0) ruby
rspec-rails (~> 3.0.0.rc1) java depends on
rspec-expectations (3.0.0.rc1)
How can I make this configuration resolve properly?
You should also add gem 'rspec', '~> 3.0.0.rc1' to your Gemfile
New to jruby. I am getting error when trying to run
jruby -S bundle exec rake assets:precompile
Bundler could not find compatible versions for gem "json":
In snapshot (Gemfile.lock):
json (1.8.1)
In Gemfile:
carrierwave (>= 0) ruby depends on
json (>= 1.7) ruby
I have tried removing Gemfile.lock and run "jruby -S bundle install", did not help.
I am using jruby 1.7.3 and ruby 1.8.7 on a Mac. I have successfully run precompile before and have not made any changes to the Gemfile.
My Gemfile (has not been changed since last Oct., used to work):
source 'https://rubygems.org'
gem 'rails', '3.2.13'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'activerecord-jdbcmysql-adapter'
gem 'jruby-openssl'
gem 'mini_magick'
gem 'carrierwave'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'bourbon'
#gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyrhino'
gem 'uglifier', '>= 1.0.3'
end
gem 'uuidtools'
gem 'amazon-ses-mailer'
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
Thanks
This looks like a bundler issue. Update Bundler to 1.5.2 and trying again:
jruby -S gem install bundler
any idea what should I do? this is error message from bundler
$ bundle install
Fetching gem metadata from http://rubygems.org/........
Fetching gem metadata from http://rubygems.org/..
Bundler could not find compatible versions for gem "dm-core":
In Gemfile:
dm-adapter-simpledb (>= 0) ruby depends on
dm-core (~> 0.10.0) ruby
dm-core (1.2.0)
here is my Gemfile
source 'http://rubygems.org'
gem 'sinatra'
gem 'json'
gem 'prawn'
gem 'prawn-graph'
gem 'prawn-layout'
gem 'prawn-fast-png'
gem 'prawn-qrcode'
gem 'data_mapper'
gem 'dm-core'
gem 'dm-mysql-adapter'
gem 'dm-postgres-adapter'
gem 'dm-migrations'
gem 'dm-adapter-simpledb'
gem 'aws-sdk', '~> 1.3.4'
gem 'dm-paperclip'
gem 'savon'
gem 'rmagick'
gem 'SystemTimer', :require => "system_timer", :platforms => :ruby_18
gem 'rack-timeout'
gem 'rufus-scheduler'
gem 'mail'
Try to remove dm-core gem from the Gemfile. You don't need it anyway - dm-adapter-simpledb requires it.
If you absolutely must include dm-core gem in the Gemfile, set it to the version required by dm-adapter-simpledb in Gemfile.lock.
dm-adapter-simpledb in your gemfile depends on dm-core version 0.10.0, the one you have is 1.2.0. either remove it as Lukas suggested or update your gemfile: `dm-core', '~> 0.10.0'
I have the following gemfile:
source 'http://rubygems.org'
source 'http://gems.engineyard.com'
gem 'rails', '~> 3.1.0.rc4'
gem 'sass-rails', :git => 'https://github.com/rails/sass-rails.git'
gem 'compass', :git => 'https://github.com/chriseppstein/compass.git', :branch => 'rails31'
gem 'fancy-buttons'
gem 'haml'
gem 'authlogic', :git => 'https://github.com/AndreasWurm/authlogic.git'#, :branch => 'rails3'
gem 'nokogiri'
gem 'bundler'
gem 'resque'
gem 'resque-meta'
gem 'jquery-rails'
gem 'rake', '~> 0.8.7'
gem 'eventmachine'
gem 'em-websocket'
gem 'json'
gem 'coffee-script'
gem 'uglifier'
Whenever I run bundle install, I get the following error:
Bundler could not find compatible versions for gem "railties":
In Gemfile:
sass-rails depends on
railties (~> 3.2.0.beta)
rails (~> 3.1.0.rc4) depends on
railties (3.1.0.rc4)
Can anyone suggest a solution?
Remove, or comment out, the following:
# , :git => 'https://github.com/rails/sass-rails.git'
Explanation: it has been a while since the last release candidate of Rails 3.1 has been released, a sass-rails gem has been released that works with 3.1 so no need to pull sass-rails from git, and sass-rails master is now looking forward towards Rails 3.2.
try bundle update, that worked for me... Maybe delete all gems, and update rails first, then put gems back and run bundle update again?