Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: HOWTO: Install Ruby On Rails For Your Ubuntu Box

  1. #11
    Join Date
    Nov 2005
    Beans
    179

    Re: HOWTO: Install Ruby On Rails For Your Ubuntu Box

    Great howto...but some questions:

    How do you stop the Ruby server from running ROR?
    What if you want to work in a different ROR application than the one you where working on?
    How do I "start" the Ruby server so I can work on app again?

    Again, great tutorial, made it easy to set up ROR!

  2. #12

    Re: HOWTO: Install Ruby On Rails For Your Ubuntu Box

    Hello!

    I'm a raw newbie, but very excited about Ubuntu. My goal is to set up an Ubuntu server where I can do RoR development.

    I have gotten as far as downloading and extracting rubygems-0.9.0. I'm using Ubuntu 6.06 "LAMP" on a .386 machine (it installed beautifully.) I have Kubuntu desktop installed, too.

    However, I can't run setup.rb because... ruby has no interpreter.

    When I run
    Code:
    sudo ruby ./setup.rb
    I get
    Code:
    sudo: ruby: command not found
    Also, I'm wondering whether I will be able to determine that Ruby should be available to all users on the computer. Right now the setup files are sitting in my user directory, that's probably not the right place for the installation.

    I did
    Code:
    sudo apt-get install ruby rdoc1.8 irb libyam1-ruby libzlib-ruby
    but this returns
    Code:
    Reading package lists ... Done
    Building a dependency tree ... Done
    Package rdoc1.8 is not available but is referred to by another package...
    E: Package rdoc1.8 has no installation candidate
    thanks in advance!!!

  3. #13

    Re: HOWTO: Install Ruby On Rails For Your Ubuntu Box

    Ah...

    I think I did it.

    Code:
    sudo apt-get install ruby
    without all the rdoc1.8 stuff worked.

    And then, at last,
    Code:
    sudo ruby ./setup.rb
    worked, per your instruction above.

    And I got Rails.

    Now I need to haunt the newbie forums some more, to understand the file system better.

  4. #14
    Join Date
    Jun 2006
    Location
    Texas, USA
    Beans
    59
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: Install Ruby On Rails For Your Ubuntu Box

    wonderful i'm glad you got it working, and for multiple users to use it, i'd suggest you move all fils into a root owndership dir, like /usr/bin or /opt/
    it's all up to you and where you really want it to run, because with a root password it can be installed and run from anywhere.

  5. #15
    Join Date
    Feb 2005
    Beans
    16

    Re: HOWTO: Install Ruby On Rails For Your Ubuntu Box

    Thanks for this! I had to do a fresh OS install and wasn't looking forward to re-installing Rails (last time was painful for some reason).

    I to had to run:
    Code:
    sudo apt-get install ruby
    You may want to consider adding that to your tutorial.

    Also, for newbies that are used to developing in an IDE, I'd like to suggest RadRails.

  6. #16
    Join Date
    Oct 2006
    Location
    Singapore
    Beans
    Hidden!
    Distro
    Ubuntu 6.06

    Re: HOWTO: Install Ruby On Rails For Your Ubuntu Box

    great tutorial, worked just as set out. many thanks.

  7. #17
    Join Date
    May 2007
    Beans
    18

    Re: HOWTO: Install Ruby On Rails For Your Ubuntu Box

    When I run this:
    Code:
    ruby script/server
    I get this
    Code:
    ./script/../config/boot.rb:29: undefined method `gem' for main:Object (NoMethodError)
            from script/server:2:in `require'
            from script/server:2

  8. #18
    Join Date
    Jun 2007
    Location
    Rijeka, Croatia
    Beans
    30
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: Install Ruby On Rails For Your Ubuntu Box

    @Burgresso: you stop server by pressing CTRL+C

    @dpcamp: try updating RubyGems with:
    Code:
     sudo gem update --system
    Constructive lurker

  9. #19
    Join Date
    Jun 2007
    Beans
    2

    Re: HOWTO: Install Ruby On Rails For Your Ubuntu Box

    Thanx!
    Spent the whole night trying to figure this out. My problem was the same as dpcamp's. Updating gems solves it.

  10. #20
    Join Date
    Jun 2008
    Beans
    3

    Re: HOWTO: Install Ruby On Rails For Your Ubuntu Box

    sudo gem update --system
    in my system (Ubuntu server 8.10 amd64) say:
    Code:
    ERROR:  While executing gem ... (RuntimeError)
        gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •