差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン | |||
| linux:centos_ruby_install [2015/08/04 03:08] – ともやん | linux:centos_ruby_install [2015/08/04 03:17] (現在) – 削除 ともやん | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== RVM(Ruby Version Manager)によるRubyのインストール ====== | ||
| - | ===== RVM(Ruby Version Manager) のインストール ===== | ||
| - | < | ||
| - | $ gpg --keyserver hkp:// | ||
| - | $ \curl -sSL https:// | ||
| - | </ | ||
| - | < | ||
| - | gpg: 鍵D39DC0E3: | ||
| - | gpg: | ||
| - | gpg: | ||
| - | </ | ||
| - | < | ||
| - | $ curl -L https:// | ||
| - | </ | ||
| - | < | ||
| - | # tomoyan, | ||
| - | # | ||
| - | # Thank you for using RVM! | ||
| - | # We sincerely hope that RVM helps to make your life easier and more enjoyable!!! | ||
| - | # | ||
| - | # ~Wayne, Michal & team. | ||
| - | |||
| - | In case of problems: http:// | ||
| - | |||
| - | Upgrade Notes: | ||
| - | |||
| - | |||
| - | * WARNING: You have ' | ||
| - | to do that add the following line to '/ | ||
| - | |||
| - | source ~/.profile | ||
| - | |||
| - | * No new notes to display. | ||
| - | |||
| - | </ | ||
| - | インストールが完了したら rvm を読み込む。 | ||
| - | < | ||
| - | $ source ~/ | ||
| - | $ rvm version | ||
| - | </ | ||
| - | < | ||
| - | rvm 1.26.11 (latest) by Wayne E. Seguin < | ||
| - | </ | ||
| - | |||
| - | ===== Ruby のビルドに必要なパッケージのインストール ===== | ||
| - | < | ||
| - | $ mkdir ~/work | ||
| - | $ cd ~/work | ||
| - | $ yumdownloader --source ruby | ||
| - | $ sudo yum-builddep ruby-2.2.2-40.fc22.src.rpm | ||
| - | </ | ||
| - | |||
| - | ===== Ruby のインストール ===== | ||
| - | < | ||
| - | $ rvm install 2.2.2 | ||
| - | </ | ||
| - | < | ||
| - | $ rvm install 2.2.2 | ||
| - | Searching for binary rubies, this might take some time. | ||
| - | No binary rubies available for: fedora/ | ||
| - | Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. | ||
| - | Checking requirements for fedora. | ||
| - | Installing requirements for fedora. | ||
| - | Installing required packages: libtool, bison..tomoyan password required for 'yum install -y libtool bison': | ||
| - | ..... | ||
| - | Requirements installation successful. | ||
| - | Installing Ruby from source to: / | ||
| - | ruby-2.2.2 - # | ||
| - | % Total % Received % Xferd Average Speed | ||
| - | | ||
| - | 100 12.6M 100 12.6M 0 | ||
| - | No checksum for downloaded archive, recording checksum in user configuration. | ||
| - | ruby-2.2.2 - #extracting ruby-2.2.2 to / | ||
| - | ruby-2.2.2 - # | ||
| - | ruby-2.2.2 - # | ||
| - | ruby-2.2.2 - # | ||
| - | ruby-2.2.2 - # | ||
| - | ruby-2.2.2 - #making binaries executable.. | ||
| - | ruby-2.2.2 - # | ||
| - | % Total % Received % Xferd Average Speed | ||
| - | | ||
| - | 100 437k 100 437k 0 | ||
| - | No checksum for downloaded archive, recording checksum in user configuration. | ||
| - | ruby-2.2.2 - #extracting rubygems-2.4.8.... | ||
| - | ruby-2.2.2 - #removing old rubygems......... | ||
| - | ruby-2.2.2 - #installing rubygems-2.4.8...................... | ||
| - | ruby-2.2.2 - #gemset created / | ||
| - | ruby-2.2.2 - #importing gemset / | ||
| - | ruby-2.2.2 - #generating global wrappers........ | ||
| - | ruby-2.2.2 - #gemset created / | ||
| - | ruby-2.2.2 - #importing gemsetfile / | ||
| - | ruby-2.2.2 - #generating default wrappers........ | ||
| - | ruby-2.2.2 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake). | ||
| - | Install of ruby-2.2.2 - # | ||
| - | Ruby was built without documentation, | ||
| - | </ | ||
| - | |||
| - | ===== Ruby バージョンの切り替え ===== | ||
| - | Ruby 2.2.2 をデフォルトにする。 | ||
| - | < | ||
| - | $ rvm use 2.2.2 --default | ||
| - | Using / | ||
| - | $ ruby -v | ||
| - | ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] | ||
| - | </ | ||