Question
How do I troubleshoot rails applications and installs?
Answer
You must have ssh enabled on your account to install or test rails/ruby. If you do not, then please, open a support ticket to get it enabled
Step 1: Add the following lines to your $HOME/.bashrc file (these can be copy and pasted):
Step 1: Add the following lines to your $HOME/.bashrc file (these can be copy and pasted):
export GEM_HOME=$HOME/ruby/gems export GEM_PATH=$GEM_HOME:/usr/lib64/ruby/gems/1.8 export GEM_CACHE=$GEM_HOME/cache export PATH=$PATH:$HOME/ruby/gems/binStep 2: Install rails 2.3.3:
% gem install rails --version="2.3.3"This should install rails, the active* gems, rake, and rack. If it doesn't install rack then you'll need to install it separately:
% gem install rackstep 3: Now, you'll have to edit the source file for the rack gem. This *should* be located here:
$HOME/ruby/gems/gems/rack-1.0.0/lib/rack/handler/fastcgi.rbJust comment out line #7 so it looks like this:
#alias _rack_read_without_buffer readStep 4: Now modify the applications environment.rb file so that the correct gem path is included. This line should go up at the top before the version of rails is specified:
ENV['GEM_PATH'] = '/path/to/their/home/ruby/gems:/usr/lib/ruby/gems/1.8'Step 5: Kill off fastcgi processes.
Still need help?
If you need further assistance than this entry provided, please, do open up a support ticket, we are here to help you out