Linux installation: I used the source code compilation method for installation. The operating system is Red Hat Linux release 7.3 (Valhalla)
- Download from the ruby Main SiteSource code, "Get Ruby now!" on the right of the Home Page !! ", Which is 1.8.2 at present. decompress the package to the directory.
- ./Configure make install (root permission is required, which is installed under/usr/local by default. If you need to specify another directory, use
./Configure -- prefix = custom path
)
In this step, I have not encountered any problems. Next I will install rubygem, which is a rubyProgramPackage Manager, which is similar to the RPM of RedHat. it packages an independent Ruby application into a gem file, which can be easily installed and upgraded. This is much more convenient than Java, and gem can automatically manage the dependencies between packages, you can also automatically query, download, and manage packages from rubyforge. The current release is 0.8.10. We only need to manually install the gem once, you can install and manage other packages using the gem later. The gem is installed by default in Ruby one-click installer on Windows, therefore, even this step is omitted. Decompress rubygem and enter it in the corresponding directory.Ruby setup. Rb
After printing some logs on the screen, it will tell you that the installation is successful.Gem-V
You can view the gem installation version.