I am using ruby 2.0.0 and Rails 4.0 . i added
gem 'fog'
gem "fog-aws"
on my gem file when i am trying to bundle install, getting following error
An error occurred while installing fog-aws (0.8.1), and Bundler cannot continue.
Make sure that `gem install fog-aws -v '0.8.1'` succeeds before bundling.
ranjith#Ranjith-laptop:~/projects/recruitement$ gem install fog-aws -v '0.8.1' ERROR: Could not find a valid gem 'fog-aws' (= 0.8.1), here is why:
Unable to download data from https://rubygems.org/ - server did not return a valid file (https://rubygems.org/specs.4.8.gz)
Sounds like that's a temporary rubygems issue. fog-aws 0.8.1 is available https://rubygems.org/gems/fog-aws/versions/0.8.1. I'd try 0.9.1 instead.
Related
Bundler could not find compatible versions for gem "bundler":
The error is below
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
bundler (~> 2.2)
rails (= 6.1.4.6) was resolved to 6.1.4.6, which depends on
bundler (>= 2.2.0)
Current Bundler version:
bundler (2.1.4)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (~> 2.2)', which is required by gem 'rails (= 6.1.4.6)', in any of the relevant sources:
the local ruby installation
Your solution is actually in the error message that you are getting. Run
gem install bundler
to install the latest version of bundler (that should satisfy the constraints
You can also specify a particular version of any gem by specifying the version flag. For example.
gem install bundler -v 2.2.0
gem install bundler --version 2.2.19 --default
Okay so I'm trying to install the gem bootstrap-sass in my ruby on rails app but getting this error.
I followed the basic steps by pasting $ gem 'bootstrap-sass' and $ gem 'autoprefixer-rails' into the gemfile and runnig bndle install in the terminal. My laptop is running on ubuntu 18.04 if that might be causing issue.
Installing autoprefixer-rails 9.6.1
Using debug_inspector 0.0.2
Using binding_of_caller 0.7.2
Fetching ffi 1.11.1
Installing ffi 1.11.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/tmp/bundler20190706-4690-hktydzffi-1.11.1/gems/ffi-1.11.1/ext/ffi_c
/usr/bin/ruby2.5 -r ./siteconf20190706-4690-tr7q8y.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in
/tmp/bundler20190706-4690-hktydzffi-1.11.1/gems/ffi-1.11.1 for inspection.
Results logged to
/tmp/bundler20190706-4690-hktydzffi-1.11.1/extensions/x86_64-linux/2.5.0/ffi-1.11.1/gem_make.out
An error occurred while installing ffi (1.11.1), and Bundler cannot
continue.
Make sure that `gem install ffi -v '1.11.1'` succeeds before bundling.
In Gemfile:
bootstrap-sass was resolved to 3.4.1, which depends on
sassc was resolved to 2.0.1, which depends on
ffi
gem 'bootstrap-sass', '3.3.7'
repelce
gem 'bootstrap-sass'.
because bootstrap-sass was 3.4.1 too higher.
hello guys i have checked all people sharing about installing ruby on rails but its the same problem
like this:
Fetching selenium-webdriver 3.4.3
Using listen 3.1.5
Using rails-dom-testing 2.0.3
Using globalid 0.4.0
Using activemodel 5.1.2
Using jbuilder 2.7.0
Using spring 2.0.2
Using rails-html-sanitizer 1.0.3
Using capybara 2.14.4
Bundler::GemspecError: Could not read gem at
/usr/local/lib/ruby/gems/2.4.0/cache/selenium-webdriver-
3.4.3.gem. It may be
corrupted.
An error occurred while installing selenium-webdriver (3.4.3), and
Bundler cannot continue.
Make sure that gem install selenium-webdriver -v '3.4.3' succeeds before
bundling.
In Gemfile:
selenium-webdriver
run bundle exec spring binstub --all
Could not find gem 'sass-rails (~> 5.0)' in any of the gem sources listed in your Gemfile.
Run bundle install to install missing gems.
I have experience with this driver, and downgraded to lower version here is the sample that work with my system, you can delete minitest incase you don't need it. I'm using rails 5.0.2
group :development, :test do
gem 'selenium-webdriver', '2.53.4'
gem 'minitest-rails-capybara'
gem 'minitest-reporters'
end
Bundler is trying to fetch the selenium-webdriverfrom its cache. Also, bundler suggests that the package is probably corrupt. You can try removing it from cache so bundler can install the gem again.
rm -f /usr/local/lib/ruby/gems/2.4.0/cache/selenium-webdriver-3.4.3.gem
bundle install
$ bundle install
Errno::ENOENT: No such file or directory # rb_sysopen - /Users/Sean/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.3/ext/gem_make.out
An error occurred while installing eventmachine (1.0.3), and Bundler cannot
continue.
Make sure that `gem install eventmachine -v '1.0.3'` succeeds before bundling.
$ gem list
eventmachine (1.0.3 x86-mingw32)
$ gem build eventmachine -v 1.0.3
ERROR: While executing gem ... (Gem::CommandLineError)
Too many gem names (eventmachine, 1.0.3); please specify only one
Try to edit Gemfile.lock and change eventmachive version from 1.0.3 to 1.0.4.
This works for me.
bundle update
bundle install Hope this will work.
I had a similar issue with eventmachine -v '1.0.4' and i resolved it like this.
gem install eventmachine -v '1.0.4' -- --with-cppflags=-I/usr/local/opt/openssl/include
I just started doing some development with a Ruby on Rails and trying to run the application locally. The app is working in a production environment with Ruby 1.8.7 installed.
I setup RVM on my computer with Ruby 1.8.7 as the default. But, when I try to run bundle install, I am getting the following error message:
Gem::InstallError: mime-types requires Ruby version >= 1.9.2.
An error occurred while installing mime-types (2.1), and Bundler cannot continue.
Make sure that `gem install mime-types -v '2.1'` succeeds before bundling.
I tried looking for mime-types in my Gemfile but could not find it; which leads me to believe it's a dependency from another gem.
The weird thing is that the production server is also setup with Ruby 1.8.7 so I'm not really sure how the application was originally setup to run especially when mime-types requires Ruby version >= 1.9.2 to run.
I can't find mime-types in my Gemfile.lock on the production server and therefore can't pinpoint what gem is trying to include it.
Does anyone know how I can get this app to work locally so I can begin development?
I don't really have a lot of experience with Ruby or Rails.
Thanks in advance.
Gemfile:
source :gemcutter
gem "mongrel"
gem "ruby-debug"
gem "rails", "2.3.5"
gem "inherited_resources", "1.0.2"
gem "responders", "0.4.2"
gem "activerecord-sqlserver-adapter", :path => "vendor/plugins/activerecord-sqlserver-adapter-1.0.0"
gem "paperclip"
gem "ferret"
gem "crypt" # might need to install for system because of native dependencies
gem "active_scaffold", :path => "vendor/plugins/active_scaffold"
gem "render_component", :path => "vendor/plugins/render_component"
gem "unobtrusive_date_picker", :path => "vendor/plugins/unobtrusive_date_picker"
gem "acts_as_reportable"
gem "will_paginate", :path => "vendor/plugins/will_paginate"
gem "acts_as_transformer", :path => "vendor/plugins/acts_as_transformer"
gem "acts_as_paranoid", :path => "vendor/plugins/acts_as_paranoid"
gem "select_from_lookup", :path => "vendor/plugins/select_from_lookup"
gem "pdfkit"
gem "wirble"
gem "hirb"
gem "dbi"
gem "dbd-odbc"
gem "geokit"
gem "htmlentities"
gem "jeremyevans-exception_notification", :path => "vendor/plugins/exception_notification"
group :development, :test do
gem "pdf-toolkit"
gem "rspec", "1.2.9"
gem "rspec-rails", "1.2.9"
gem "mongrel"
gem "mysql"
gem "populator"
end
group :staging do
gem "mongrel"
gem "ruby-debug"
gem "rails", "2.3.5"
gem "inherited_resources", "1.0.2"
gem "responders", "0.4.2"
gem "activerecord-sqlserver-adapter", :path => "vendor/plugins/activerecord-sqlserver-adapter-1.0.0"
gem "paperclip"
gem "ferret"
gem "crypt" # might need to install for system because of native dependencies
gem "unobtrusive_date_picker", :path => "vendor/plugins/unobtrusive_date_picker"
gem "acts_as_reportable"
gem "will_paginate", :path => "vendor/plugins/will_paginate"
gem "acts_as_transformer", :path => "vendor/plugins/acts_as_transformer"
gem "acts_as_paranoid", :path => "vendor/plugins/acts_as_paranoid"
gem "select_from_lookup", :path => "vendor/plugins/select_from_lookup"
gem "pdfkit"
gem "wirble"
gem "hirb"
gem "dbi"
gem "dbd-odbc"
gem "geokit"
gem "htmlentities"
end
group :test do
gem "ZenTest"
end
Console Output:
Fetching gem metadata from http://rubygems.org/...........
Fetching additional metadata from http://rubygems.org/..
Resolving dependencies...
Using rake (10.1.1)
Invalid gemspec in [/Users/imaginationplus/.rvm/gems/ruby-1.8.7-p374#global/specifications/ZenTest-4.9.5.gemspec]: Illformed requirement ["< 3.0, >= 1.8"]
Invalid gemspec in [/Users/imaginationplus/.rvm/gems/ruby-1.8.7-p374/specifications/ZenTest-4.9.5.gemspec]: Illformed requirement ["< 3.0, >= 1.8"]
Installing ZenTest (4.9.5)
Using activesupport (2.3.5)
Using rack (1.0.1)
Using actionpack (2.3.5)
Using actionmailer (2.3.5)
Invalid gemspec in [/Users/imaginationplus/.rvm/gems/ruby-1.8.7-p374#global/specifications/ZenTest-4.9.5.gemspec]: Illformed requirement ["< 3.0, >= 1.8"]
Invalid gemspec in [/Users/imaginationplus/.rvm/gems/ruby-1.8.7-p374/specifications/ZenTest-4.9.5.gemspec]: Illformed requirement ["< 3.0, >= 1.8"]
active_scaffold at /Users/imaginationplus/gitlocal/cpo-core/vendor/plugins/active_scaffold did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was:
missing value for attribute summary
Using active_scaffold (1.0.0) from source at vendor/plugins/active_scaffold
Using activerecord (2.3.5)
activerecord-sqlserver-adapter at /Users/imaginationplus/gitlocal/cpo-core/vendor/plugins/activerecord-sqlserver-adapter-1.0.0 did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was:
["README.rdoc", "LICENSE", "CHANGELOG.rdoc"] are not files
Using activerecord-sqlserver-adapter (1.0.0) from source at vendor/plugins/activerecord-sqlserver-adapter-1.0.0
Using activeresource (2.3.5)
acts_as_paranoid at /Users/imaginationplus/gitlocal/cpo-core/vendor/plugins/acts_as_paranoid did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was:
missing value for attribute summary
Using acts_as_paranoid (1.0.0) from source at vendor/plugins/acts_as_paranoid
Using fastercsv (1.5.5)
Using color (1.5.1)
Using transaction-simple (1.4.0.2)
Using pdf-writer (1.1.8)
Using ruport (1.6.3)
Using acts_as_reportable (1.1.1)
acts_as_transformer at /Users/imaginationplus/gitlocal/cpo-core/vendor/plugins/acts_as_transformer did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was:
["README.rdoc", "LICENSE", "CHANGELOG.rdoc"] are not files
Using acts_as_transformer (1.0.0) from source at vendor/plugins/acts_as_transformer
Using cgi_multipart_eof_fix (2.5.0)
Using cocaine (0.4.2)
Using columnize (0.3.6)
Using crypt (1.1.4)
Using daemons (1.1.9)
Using deprecated (2.0.1)
Using dbi (0.4.5)
Using dbd-odbc (0.2.5)
Using fastthread (1.0.7)
Using ferret (0.11.8.5)
Using gem_plugin (0.2.3)
Using multi_json (1.8.4)
Using geokit (1.8.4)
Using has_scope (0.5.1)
Using hirb (0.7.1)
Using htmlentities (4.3.1)
Using responders (0.4.2)
Using inherited_resources (1.0.2)
Using jeremyevans-exception_notification (1.0.20100406) from source at vendor/plugins/exception_notification
Using rbx-require-relative (0.0.9)
Using linecache (0.46)
Gem::InstallError: mime-types requires Ruby version >= 1.9.2.
An error occurred while installing mime-types (2.1), and Bundler cannot continue.
Make sure that `gem install mime-types -v '2.1'` succeeds before bundling.
If you upgraded to OSX 10.9 Mavericks this might be caused by a leftover executable from an old version of bundler previously installed with ruby 1.8 and still present because bundler has not yet been installed for ruby 2.0.
Fix it by installing bundler:
sudo gem install bundler
Here's a complete investigation verifying that this is indeed the cause of the problem:
$ bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Installing mime-types (2.3)
Gem::InstallError: mime-types requires Ruby version >= 1.9.2.
An error occured while installing mime-types (2.3), and Bundler cannot continue.
Make sure that `gem install mime-types -v '2.3'` succeeds before bundling.
$ gem contents bundler
Unable to find gem 'bundler' in default gem paths
Directories searched:
/Library/Ruby/Gems/2.0.0/specifications
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0/specifications
/Users/yourusername/.gem/ruby/2.0.0/specifications
$ head -n1 $(which bundler)
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
$ sudo gem install bundler
sudo gem install bundler
Fetching: bundler-1.6.3.gem (100%)
Successfully installed bundler-1.6.3
Parsing documentation for bundler-1.6.3
Installing ri documentation for bundler-1.6.3
1 gem installed
$ head -n1 $(which bundle)
#!/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Installing mime-types 2.3
Using bundler 1.6.3
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.