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.