SitePoint Sponsor

User Tag List

Results 1 to 15 of 15
  1. #1
    SitePoint Member
    Join Date
    Feb 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ruby on Rails Linux Installation Problem

    Does anyone know of some good documentation on how to install Rails. I'm following the steps in the Sitepoint Ruby on Rails book, but I'm stuck at the instructions on p.36 to install rails. The problem must be the firewall that I'm behind. I've tried following all the instructions on how to install from behind a firewall, but I've had no luck. So, my other option is to try to install locally. I haven't found any instructions on installing locally that make sense to me. What I'm looking for are some very specific step-by-step instructions on how to do this. Any advice?

  2. #2
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I assume you're using windows.

    1. download the One Click Ruby Installer (google), double click it and install
    2. open a console and type "gem install rails --include-dependencies"

    That's it.

    Edit: :S didn't read the title...what is your distribution? I'm using Arch and `pacman -S ruby rubygems` + `gem install rails` worked fine.

  3. #3
    SitePoint Member
    Join Date
    Feb 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've googled One Click Ruby Installer like you said, but all I can find are Windows installations. Can you point me to a Linux installer?

  4. #4
    SitePoint Zealot daveporter's Avatar
    Join Date
    Mar 2002
    Location
    Perth, Western Australia
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Jase,

    See if this one helps...

    http://apacheguide.org/

    Dave Porter

  5. #5
    Once I was a Factory Worker goofy's Avatar
    Join Date
    Dec 2004
    Location
    Sydney Australia
    Posts
    559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What Linux distribution are you using?
    Goofy
    Life is what you make it!
    Follow your dreams!

  6. #6
    SitePoint Member
    Join Date
    Feb 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm using Red Hat Enterprise Linux 4 update 4.

  7. #7
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not familiar with RedHat but does it use yum like Fedora?

    Try: `yum install ruby rubygems` + `gem install rails`.

  8. #8
    SitePoint Member
    Join Date
    Feb 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I probably wasn't very clear in my original post. The problem is that it automatically tries to install via the Internet. I'm behind a firewall and can't do this. So, I need to run the installation locally, but I haven't found any clear instructions on the web on how to do this.

  9. #9
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK so you already have Ruby and RubyGems?

    You can download the gems here: http://rubyforge.vm.bytemark.co.uk/gems/

    Then execute this: `gem install {the name of the gem file you downloaded}`.

  10. #10
    SitePoint Member
    Join Date
    Feb 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks that's helpful. I think I've made a little progress, but I'm still stuck. When I try to run gem install rails, I get this. I was able to install a couple of gems, but don't I need to install the rails.gem? I'm so confused. I wish there were some step-by-step info on this. I'd really like to do the tutorials in this book.

    # gem install rails
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:92:in `load_specification': /usr/local/lib/ruby/site_ruby/1.8/rubygems/version.rb:116:in `initialize': Malformed version number string 2006-09-05 (ArgumentError)
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/version.rb:106:in `create'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/specification.rb:288:in `version='
    from (eval):3:in `load_specification'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/specification.rb:421:in `initialize'
    from (eval):1:in `load_specification'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:128:in `eval'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:92:in `load_specification'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:128:in `load_gems_in'
    ... 12 levels...
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:12
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:112:in `manage_gems'
    from /usr/local/bin/gem:10

  11. #11
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please try this package: http://rubyforge.org/frs/?group_id=307

  12. #12
    SitePoint Member
    Join Date
    Feb 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's the one I'm using - 1.2.2

  13. #13
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try it out anyway: that's the official package. The other one was the .gem file only. This one has the whole package in the .gz.

  14. #14
    SitePoint Member
    Join Date
    Feb 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fenrir2 View Post
    OK so you already have Ruby and RubyGems?

    You can download the gems here: http://rubyforge.vm.bytemark.co.uk/gems/

    Then execute this: `gem install {the name of the gem file you downloaded}`.
    But how can i find the corresponding version of each other gem file.?
    any docs or options available?

  15. #15
    SitePoint Member
    Join Date
    Mar 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


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
  •