Lots of missing gems, bundler won't work

Added by Zach La Celle over 5 years ago

I recently tried to install the redmine_hudson plugin, and my rake db:migrate_plugins command failed due to missing gem dependencies. Now, even if I remove the redmine_hudson plugin, I'm stuck in dependency hell.

I've tried to manually install the specific versions of gems shown as missing, but there are too many. So, I try to execute the "bundle install" command. But, it says the following:

ERROR: Gem bundler is not installed, run `gem install bundler` first.

But, I've already done this. Doing a "which bundle" shows that it's in /home/redmine/.rvm/bin (same as rake).

How do I solve this dependency hell, and should bunde install work?

Infomation:

$ RAILS_ENV="production" script/about
Could not find uuidtools-2.1.4 in any of the sources
Run `bundle install` to install missing gems.

$ rake -v
Could not find uuidtools-2.1.4 in any of the sources
Run `bundle install` to install missing gems.

ruby -v
ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-linux]

Running Redmine 2.2

$ uname -a
Linux redmine 3.2.0-60-virtual #91-Ubuntu SMP Wed Feb 19 04:13:28 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Replies (1)

RE: Lots of missing gems, bundler won't work - Added by Zach La Celle over 5 years ago

OK...so in typical support fashion, just when I post this I find out how to fix it.

For those who follow in my footsteps:

1) If bundle's not working, you need to source the rvm script. While I'd already added /home/redmine/.rvm/bin to my PATH, I hadn't sources /home/redmine/.rvm/scripts/rvm.

$ source /home/redmine/.rvm/scripts/rvm

Now, bundle works.

2) To fix my dependencies:

$ bundle install --without test development xapian

Note that I had to add the xapian, since if you don't it tries to build it and complains about your C compiler not being able to create executables.

3) Now, I could run rake db:migrate_plugins RAILS_ENV="production"

Hope this helps.

(1-1/1)