Build a Ruby platform in Ubuntu

Source: Internet
Author: User
All of the following operations are performed in the Ubuntu environment! 1. Install RadRailsIDE. java support is required. Install jdk first. Sudo-icd/optwget-chttp: // response

All of the following operations are performed in the Ubuntu environment!

1. Install RadRails IDE. java support is required. Install jdk first. It won't be too long here.

Sudo-I

Cd/opt

Http://nchc.dl.sourceforge.net/sourceforge/radrails/radrails-0.7.0-linux-gtk.tar.gz wget-c

Tar xvzf radrails-0.7.0-linux-gtk.tar.gz

Rm radrails-0.7.0-linux-gtk.tar.gz

Vim/usr/share/applications/radrails. desktop

-[Desktop Entry]

-Name = RadRails

-Comment = Integrated development environment for the Ruby on Rails framework

-Exec =/opt/radrails/RadRails

-Icon =/opt/radrails/RadRails. xpm

-Terminal = false

-MultipleArgs = false

-Type = Application

-Categories = Application; Development;

-StartupNotify = true

2. Install ruby

Sudo apt-get install ruby rdoc irb libyaml-ruby libzlib-ruby ri

3. Install RubyGems

Wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz

Tar xzvf rubygems-0.9.0.tgz

Cd rubygems-0.9.0

Sudo ruby setup. rb

Sudo gem update -- system

Cd ..

Rm-fr rubygems *

4. Install Rails

Sudo gem install rails-v 1.1.6-y

5 configure RadRails

Click Application> program> radrails to start RadRails.

Choose windows> preferences to go to settings.

Click Rails-> Gems-> Rails on the left, and then click the Add button on the right to Add a Rails Path: Enter Rails by Name, enter Path/usr, and click OK.

Similarly, click Rails-> Gems-> Rake on the left, and then click Add on the right side to Add a Rake Path: Name input Rake, Path input/usr, and click OK.

Click Ruby-> Installed Interperters on the left, and then click the Add button on the right to Add a Ruby Location: Enter Ruby in Name, and enter/usr/bin/ruby in Location to click OK.

Click Ruby-> Ri/rdoc on the left and enter RDoc path:/usr/bin/rdoc and Ri path:/usr/bin/ri.

Click the OK button in the lower right corner to save the configuration. The setting is complete.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.