linux branch, or to use many different differences, most recently to look more popular to use ubuntu, install ROR or find some subtle differences, then the next to speak.
1. Installation ruby1.9.2
(1) tar jxvf ruby-1.9.2-p0.tar.bz2
(2) cd ruby-1.9.2-p0
(3). / Configure-prefix = / usr / local / ruby
(5) make test
(6) sudo make install
Set environment variables:
As ubuntu10.0.4 comes with gedit, so you can directly gedit:
sudo gedit / etc / environment
My environment variable values are as follows:
PATH = "/ usr / local / sbin: / usr / local / bin: / usr / sbin: / usr / bin: / sbin: / bin: / usr / games: / usr / local / ruby / bin"
If there are other ruby, can be added in front.
Although the use of source / etc / environment can also be effective, but best to restart it because sometimes still can not find the ruby.
Then you can view the current command ruby-v ruby 1.9.2 is the latest of the.
But if you use gem list, will go wrong, suggesting that the library can not find zlib:
no such file to load - zlib (LoadError)
(1) sudo apt-get install zlib1g-dev
(2) and then to the source directory ext / zlib under
(3) ruby extconf.rb
(5) sudo make install
This ruby and gem install over.
2. Installation rails3rc
Theory can be used directly gem install rails - pre, but the installation requires Administrator privileges so that the use of sudo gem install rails - pre
In such a use of ubuntu on there are also problems, suggesting that the command was not found actually gem gem-v or gem list are available in the online search a bit, but also Gaoge soft link
sudo ln-s / usr / local / ruby / bin / ruby / usr / bin / ruby
sudo ln-s / usr / local / ruby / bin / gem / usr / bin / gem
This sudo ruby or sudo gem can be used normally, rails can be properly installed.
3. Install jdk and netbeans
Jdk had nothing to do with the installation of ruby, but the mainstream development tools, java netbeans is developed, it must be installed jdk.
https: / / cds.sun.com / is-bin / INTERSHOP.enfinity / WFS / CDS-CDS_Developer-Site / en_US /-/ USD / ViewFilteredProducts-SingleVariationTypeFilter
First before installing jdk installation file to the directory you want to install, such as
sudo mv jdk-6u21-linux-i586.bin / usr / local /
Then let the file has executable permissions:
sudo chmod + x jdk-6u21-linux-i586.bin
Installed, do not set the java environment variables, because the installation will automatically search netbeans jdk path.
To be compared to the previous installation netbeans simple:
sudo sh netbeans-6.9.1-ml-ruby-linux.sh
As for the free installation of mysql and the server tried to write down after the first to write here.