+ Reply to Thread
Results 1 to 5 of 5

Thread: Ruby support?

  1. #1
    Join Date
    Feb 2005
    Posts
    10

    Default Ruby support?

    Hi,

    Any chance of adding the Ruby language as a value app? I'm particularly interested in using the Ruby on Rails framework. If not, does anyone have experience installing Ruby manually on the system?

    -- Josh

  2. #2
    Join Date
    Mar 2004
    Location
    Overland Park, KS
    Posts
    192

    Default Ruby on Rails inside a VDS

    Hi Josh,

    I personally have installed both Ruby and RubyonRails. Went pretty easy. The only thing that I have yet to get working is lighttpd/fastcgi.

    When compiling Ruby, be sure to configure with the prefix flags. i.e.
    Code:
    ./configure --prefix=/usr/local/ruby --exec-prefix=/usr/local/ruby
    Let me know if you need help getting it installed. I will also talk with Sphera about the possibility of working on some ValueApps.
    Chris
    HardHat Guy

  3. #3
    Join Date
    Feb 2005
    Posts
    10

    Default

    Thanks, Chris. It worked great. The only thing I had to do was rename the shebang in the gem script after I installed RubyGems. I haven't played with lighttpd or apache/fastcgi yet but the webrick server works fine for development.

  4. #4
    Join Date
    Mar 2004
    Location
    Overland Park, KS
    Posts
    192

    Arrow Ruby shortcuts

    Quote Originally Posted by rashgash
    Thanks, Chris. It worked great. The only thing I had to do was rename the shebang in the gem script after I installed RubyGems. I haven't played with lighttpd or apache/fastcgi yet but the webrick server works fine for development.
    Cool...glad to hear!

    When I installed Ruby, it created a bunch of symbolic links in /usr/local/bin:
    Code:
    lrwxrwxrwx erb -> /usr/local/ruby/bin/erb
    lrwxrwxrwx eruby -> /usr/local/ruby/bin/eruby
    lrwxrwxrwx gem -> /usr/local/ruby/bin/gem
    lrwxrwxrwx gem_server -> /usr/local/ruby/bin/gem_server
    lrwxrwxrwx irb -> /usr/local/ruby/bin/irb
    lrwxrwxrwx rails -> /usr/local/ruby/bin/rails
    lrwxrwxrwx rake -> /usr/local/ruby/bin/rake
    lrwxrwxrwx rdoc -> /usr/local/ruby/bin/rdoc
    lrwxrwxrwx ri -> /usr/local/ruby/bin/ri
    lrwxrwxrwx ruby -> /usr/local/ruby/bin/ruby
    lrwxrwxrwx testrb -> /usr/local/ruby/bin/testrb
    lrwxrwxrwx update_rubygems -> /usr/local/ruby/bin/update_rubygems
    You can run these commands to mimic this setup:
    Code:
    cd /usr/local/bin
    ln -s /usr/local/ruby/bin/erb erb
    ln -s /usr/local/ruby/bin/eruby eruby
    ln -s /usr/local/ruby/bin/gem gem
    ln -s /usr/local/ruby/bin/gem_server gem_server
    ln -s /usr/local/ruby/bin/irb irb
    ln -s /usr/local/ruby/bin/rails rails
    ln -s /usr/local/ruby/bin/rake rake
    ln -s /usr/local/ruby/bin/rdoc rdoc
    ln -s /usr/local/ruby/bin/ri ri
    ln -s /usr/local/ruby/bin/ruby ruby
    ln -s /usr/local/ruby/bin/testrb testrb
    ln -s /usr/local/ruby/bin/update_rubygems update_rubygems
    Hope this helps...
    Chris
    HardHat Guy

  5. #5
    Join Date
    May 2005
    Location
    Portland, OR
    Posts
    13

    Default

    Great info here guys! I came here expressly to ask about Ruby on Rails support. I'm going to try out some new "Ajax on Rails" stuff and it requires the Rails framework.

    Even after creating the symlinks, I also had to edit the first line of '/usr/local/ruby/bin/gem' to:

    #!/usr/local/bin/ruby

    before gem would work.

    Thanks again!
    Last edited by rog; 06-11-2005 at 06:32 PM.

Posting Permissions

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

Why Choose Our Hosting?

Continue reading »

Featured Hosting Plan


Learn more about our VPS Extreme

What is Included?

  • PHP 5/MySQL 5
  • Plesk Control Panel
  • Unique IP Address
  • SAS Hardware Raid diskspace
  • CentOS 5 x86_64 bit
  • Multi-homed Tier 1 Bandwidth
  • Full Upgrade capabilities
Continue reading »