Skip to content

Instantly share code, notes, and snippets.

@rubiii
Created April 29, 2011 09:34
Show Gist options
  • Save rubiii/948105 to your computer and use it in GitHub Desktop.
Save rubiii/948105 to your computer and use it in GitHub Desktop.
jruby/bundler conflict
# install the latest version of bouncy-castle
$ gem install bouncy-castle-java -v=1.5.0146.1
# create a Gemfile depending on the previous version
source :rubygems
gem "bouncy-castle-java", "1.5.0145.2"
# install the dependencies
$ bundle install
# create a test.rb file containing:
require "bundler"
Bundler.require
# run the file
$ ruby test.rb
# and you get this:
/Users/rubiii/.rvm/gems/jruby-1.5.6@rails3/gems/bundler-1.0.10/lib/bundler/runtime.rb:31:in `setup': You have already activated bouncy-castle-java 1.5.0146.1, but your Gemfile requires bouncy-castle-java 1.5.0145.2. Consider using bundle exec. (Gem::LoadError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment