Mcollective one of the best open sourced orchestration tools. It’s build on Ruby and depends on Ruby1.8. But now a days most of the Ruby apps are build on Ruby1.9+, so the default Ruby versions will be 1.9+. This ususally causes problem for Mcollective to run. By default when we install Mcollective from APT, it will install Ruby1.8 also. So the best hack to make Mcollective run under such Multi-Ruby setup is edit the
From #!/usr/bin/env ruby*, Change it to #!/usr/bin/env ruby1.8.
This will help the mcollective to work normally. That’s it, a small hack, but will helps us in Multi Ruby environment