The company's computer is a Linux system. These days, the software was installed with blood, and various versions and paths were messy. Summarize the Ruby installation method and save some files. 1. In Windows, you just need to remember to change the environment variables. 2. LinuxUbuntu13.042.1 Software Center. Very convenient. 2.2 compile and install. Decompress the compilation installation: tar-zxfruby-1.9.3-p495.tar.gzcdruby-1.9.3-p49
The company's computer is a Linux system. These days, the software was installed with blood, and various versions and paths were messy. Summarize the Ruby installation method and save some files.
1. In Windows, you just need to remember to change the environment variables.
2. Linux Ubuntu 13.04
2.1 software center. Very convenient.
2.2 compile and install.
Decompress, compile, and install:
Tar-zxf ruby-1.9.3-p495.tar.gz
Cd ruby-1.9.3-p495
./Configure -- prefix =/usr/local/ruby
Make
Sudo make install
Change the environment variable and add the PATH of Ruby to PATH:
Sudo vi/etc/environment
Source/etc/environment
Check the version to verify whether the installation is successful:
Ruby-v
We recommend that you use RVM to install and manage Ruby in 2.3.
Curl-L get. rvm. io | bash-s stable
Source ~ /. Bash_profile
Rvm install 1.9.3
Rvm use 1.9.3 -- default
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2