Hi Bob,
Upgrade to the latest ruby-lsapi release should fix this. In earlier release, ENV['RAILS_ENV'] has been unset after initialization, not any more. :)
Please make sure do not mix manual and gem installation together, stick to one installation method only. I think the manual installation...