Search code examples
rakerubygemsruby-enterprise-edition

REE rake gems:install is not working correct


I've installed REE on CentOS 5 for a very special task (using rails 2.3.10 and ruby 1.8) and I really need it to be isolated

In this case I won't use bundler or smth so.

Everything works ok if I'll setup every gem manually via

/opt/ree/bin/gem install agem

But when I run

/opt/ree/bin/rake gems:install

in prepared for this command project - all (or most, I haven't check every dependency) gems are installed via /usr/bin/gem into common gem path, where I do not need any of them

This is an issue and I do not want to install all gems manually. Have smb ever hit into this issue and probably knows solution?


Solution

  • Solution that really helped me was to temporarily replace /usr/bin/gem with a symbolic link to /opt/ree/bin/gem

    With this replacement /opt/ree/bin/rake gems:intall worked as expected - all required gems were installed to REE path - returning /usr/bin/gem to original gem executable made system stable again

    This is not very clean solution but it works, so it can be used like hammer in critical situation.