[RubyGems] Could not find xxx in any of the sources

Tadashi Shigeoka ·  Thu, March 7, 2013

In Rails, when I specified ransack as 0.7.3 in the Gemfile and ran bundle install, I got the error “Could not find xxx in any of the sources”.

Gemfile

# meta search
gem 'ransack', '0.7.3' #MIT
% cap deploy:cold
...
  * 2013-03-07 21:27:57 executing `bundle:install'
  * executing "cd /srv/myapp/releases/20130307122736 && bundle install --gemfile /srv/myapp/releases/20130307122736/Gemfile --path /srv/myapp/shared/bundle --deployment --quiet --without development test"
    servers: ["example.com"]
    [example.com] executing command
 ** [out :: example.com] Could not find ransack-0.7.3 in any of the sources

ransack-0.7.3 doesn’t exist?

It could be installed in the development environment and staging environment, but when building the production environment, 0.7.3 didn’t exist and 0.7.2 seemed to be the latest.

% gem search --remote ransack

*** REMOTE GEMS ***

ransack (0.7.2)
ransack_abbreviator (0.0.8)
ransack_chronic (1.1.0)
ransack_ffcrm (0.7.1)
ransack_ui (1.1.0)

Since there were no operational problems, I dealt with it by downgrading the ransack version.

That’s all from the Gemba.