The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Ruby Gem Installer - At this time Rails 3.0 is not supported

Discussion in 'General Discussion' started by mikelegg, Jan 31, 2011.

  1. mikelegg

    mikelegg Well-Known Member

    Joined:
    Mar 29, 2005
    Messages:
    330
    Likes Received:
    0
    Trophy Points:
    16
    I'm trying to install the "Rails" gem on new server and I notice that the Ruby Gem Installer says - "!!!! At this time Rails 3.0 is not supported and can cause a broken ruby/rails environment. !!!!"

    How do I install an earlier version?

    When I search for "rails" in the installer the only version that is listed is 3.0.3.

    I notice on one of my other servers that rails 2.3.5 is installed, but I don't recall doing anything special to install that version, it must have been the default at the time.
     
  2. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello,

    Execute the below given steps :

    >> Login in to the server and run the following command: /scripts/installruby
    >> gem install rails
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Of note, you do not need to run "gem install rails" if you run "/scripts/installruby" as our Ruby installer installs rails by default with it.

    Additionally, if you already have ruby and rails on the machine and wanted 2.3.8 installed (the latest supported version we provide), you can simply run this command to get it updated:

    Code:
    gem install rails -v=2.3.8
    You wouldn't want to use "gem install rails" because it will pick up the latest rails version, which is 3.0.3 right now I believe. You should hard code the version you are installing with the -v=2.3.8 flag.
     
  4. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello Tristan,

    That was a new info on how to install RAILS in the required version. Thanks.
     
  5. mikelegg

    mikelegg Well-Known Member

    Joined:
    Mar 29, 2005
    Messages:
    330
    Likes Received:
    0
    Trophy Points:
    16
    I ran /scripts/installruby in the first place as per Installing Ruby, but rails didn't install.

    gem install rails -v=2.3.8 has done the trick - thank you
     
  6. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello,

    That's good to hear that you have installed the required Rails version. Cheers! :)
     
Loading...

Share This Page