Here we are talking about installing ruby through apt-get In Ubuntu, so we will not need to compile ruby by ourselves. First, you must install both ruby and ruby-dev when installing ruby. The version is 1.8, so you should execute the following command sudoapt-getinstallruby1.8ruby1.8-devrubygems because many plugin or gems depend on the stuff below dev, for example, ferret will use a East called mkmf
Here we are talking about installing ruby through apt-get In Ubuntu, so we will not need to compile ruby by ourselves.
First, you must install both ruby and ruby-dev when installing ruby. The version is 1.8. Therefore, run the following command:
Sudo apt-get install ruby1.8 ruby1.8-dev rubygems
This is because many plug-ins or gems depend on the stuff in dev. For example, ferret will use something called mkmf, which is included in dev.
You can install rails using gem or apt-get, but we recommend the former because the version is definitely the latest. For example, if rails is not 1.2 In the source I use, it is not good to use apt-get.
The last step is to find out where these things are installed. You can run the find command in the root directory.
Sudo find-iname * ruby *> result.txt