I used the foreman-installer to install foreman, and can not get foreman
1.2 to work properly on Scientific Linux 6 due to what I believe are ruby
versioning issues? I am relatively new to Ruby and setting up a Rails
environment, so to try and resolve my issues after a week of
troubleshooting and searching online, thought I'd come here to ask you all
Scientific Linux and RHEL 6 do not maintain ruby1.9.3, they only officially
support 1.8.7. So ruby -v returns "ruby 1.8.7 (2011-06-30 patchlevel 352)
I operate in a standalone environment, so when looking elsewhere for
ruby193, I mostly looked for yum repos that I can reposync and utilize
without access to the internet. Everything I have found for ruby193,
installs the binary as "ruby193-ruby" and my server still thinks ruby 1.8.7
is the default version.
I believe the ruby versioning is preventing foreman from operating properly
because the rake calls to push data to the DB fails. I cannot import any
environments, or classes, yet the web interface and smart-proxy are working
Output from my rake command is:
rake puppet:import:puppet_classes --trace RAILS_ENV=production
no such file to load – rails/all
Rakefile content is:
require File.expand_path('…/config/application', FILE)
SingleTest.load_tasks if defined? SingleTest
Though I woudl rather stick with yum, I tried using RVM to change me
version of ruby over to 1.9.3, and was still unsuccessful.
Any help is appreciated!