Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6391393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:39:57+00:00 2026-05-25T03:39:57+00:00

I’m in the process of upgrading my rails app originally in ruby 1.8.7 and

  • 0

I’m in the process of upgrading my rails app originally in ruby 1.8.7 and rails 2.3.5 to ruby 1.9.2 and rails 2.3.12, and trying to use RVM and bundler, expecting the migration would be easier. Everything works great on my local machine, but I’m having a very hard time using RVM and deploy my bundle in production.

First of all, I’m not sure whether RVM loads my default environment correctly. I did a multi user install with my root user. Then I typed:

rvm –default use 1.9.2

and added:

[[ -s "/usr/local/rvm/scripts/rvm" ]] && ."/usr/local/rvm/scripts/rvm"

to my root user ~/.bash_profile, but when I open a new shell, and type “which ruby”, it links to “/usr/local/rvm/bin/ruby”. When I type “rvm default” then “which ruby”, I get “/usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby” as expected. So I’m not sure RVM is installed and configured properly.

Then, my bundle is installed in (I believe) in:

“/home/web-app/www/shared/bundle”

and when I type “bundle list” I can see the gems I installed (including my rails 2.3.12). But when I do “gem list” I only see:

*** LOCAL GEMS ***

bundler (1.0.18) 
daemon_controller (0.2.6) 
fastthread (1.0.7)
passenger (3.0.8) 
rack (1.3.2) 
rake (0.9.2 ruby)

The gems from my bundle are not part of the list. So right now, on my live site (sigh), passenger can’t find Rails 2.3.12 (accessible from the bundle, not in Local Gems). Not sure how to tell passenger there are some gems available in the shared/bundle folder…

Would love some help!

—
EDITS:

1: I hadn’t install passenger the right way. I used

sudo passenger-install-apache2-module

Using “sudo” caused the install to happen on my system ruby, not on the RVM one. Once I ran the command WITHOUT sudo, the console gave me the right lines to insert into my apache2.conf file, and I was able to start my server. Good first step, but now I can’t start thinking-sphinx: it complains it can’t find Rails 2.3.12…

  1. By default, Rails 2.3 only loads gems from the Gemset. I had to add a little code to tell my application to load the bundled Gems as well, as explained here.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:39:58+00:00Added an answer on May 25, 2026 at 3:39 am

    When using RVM, install Passenger without the sudo command. Just do:

    passenger-install-apache2-module

    It will give you the config lines matching your RVM environment (as opposed to your system Ruby’s env).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
We're building an app, our first using Rails 3, and we're having to build
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Basically, what I'm trying to create is a page of div tags, each has
I am confused How to use looping for Json response Array in another Array.
I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
I want use html5's new tag to play a wav file (currently only supported
I am trying to render a haml file in a javascript response like so:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.