Quantcast
Viewing latest article 2
Browse Latest Browse All 7

Compatibility problem between gems, RubyGems or Bundler ?

I tried a prerelease of ruby and I had a nice compatibility problem when gem update command

It seems bundler is not compatible with the new Rubygem version.

$ bundle update
Bundler is not compatible with Ruby 2.0 or Rubygems 2.0.
Please upgrade to Bundler 1.3 or higher.

I had to fix this by updating the bundler to prerelease version too.

gem install bundler --pre

Suddenly, another problem appeared when I tried a bundle update command !

$ bundle install
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
c:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:917:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:
 certificate verify failed (OpenSSL::SSL::SSLError)
        from c:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:917:in `block in connect'
etc...

I tried to remove this bundler version and install the previous one and it worked !

gem uninstall bundler
gem install bundler -v 1.3.0.pre.7
bundle install

Conclusion, try to avoid as much as you can prerelease versions in development or/and production environment :P

As I write this, it seems a new bundler version will be release shortly. Today, a stable release 1.3.0 will maybe repair this problem.


Viewing latest article 2
Browse Latest Browse All 7

Trending Articles