flickr-photo-downloader icon indicating copy to clipboard operation
flickr-photo-downloader copied to clipboard

Could not find gem 'mechanize'

Open bh4017 opened this issue 8 years ago • 1 comments

I tried your program just now and I get the output below. Unfortunately I am not familiar with ruby (in fact, yours is the first ruby program I've ever tried to execute!).

/var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/resolver.rb:354:inblock in verify_gemfile_dependencies_are_found!': Could not find gem 'mechanize' in any of the gem sources listed in your Gemfile or available on this machine. (Bundler::GemNotFound) from /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/resolver.rb:330:in each' from /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/resolver.rb:330:inverify_gemfile_dependencies_are_found!' from /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/resolver.rb:199:in start' from /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/resolver.rb:183:inresolve' from /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/definition.rb:198:in resolve' from /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/definition.rb:137:inspecs' from /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/definition.rb:182:in specs_for' from /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/definition.rb:171:inrequested_specs' from /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/environment.rb:18:in requested_specs' from /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:13:insetup' from /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler.rb:92:in setup' from /var/lib/gems/2.1.0/gems/bundler-1.11.2/lib/bundler.rb:99:inrequire' from flickr-photo-downloader.rb:10:in <main>'

bh4017 avatar Apr 27 '16 11:04 bh4017

I ran into this with OS X 10.13 High Sierra trying to use the system Ruby install. I was able to solve it by installing RVM and installing Ruby 2.4.1, then running:

gem install bundler
bundle install

jbuckner avatar Mar 05 '18 05:03 jbuckner