差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| linux:centos_ruby_install [2014/06/25 10:33] – ともやん | linux:centos_ruby_install [2015/08/04 03:17] (現在) – 削除 ともやん | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== RVM(Ruby Version Manager)によるRubyのインストール ====== | ||
| - | ===== RVM(Ruby Version Manager) のインストール ===== | ||
| - | < | ||
| - | $ curl -L https:// | ||
| - | </ | ||
| - | < | ||
| - | % Total % Received % Xferd Average Speed | ||
| - | | ||
| - | 100 20511 100 20511 0 | ||
| - | Downloading https:// | ||
| - | |||
| - | Installing RVM to / | ||
| - | Adding rvm PATH line to / | ||
| - | Adding rvm loading line to / | ||
| - | Installation of RVM in / | ||
| - | |||
| - | * To start using RVM you need to run `source / | ||
| - | in all your open shell windows, in rare cases you need to reopen all shell windows. | ||
| - | |||
| - | # redmine, | ||
| - | # | ||
| - | # 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:// | ||
| - | |||
| - | * WARNING: You have ' | ||
| - | to do that add the following line to '/ | ||
| - | |||
| - | source ~/.profile | ||
| - | |||
| - | </ | ||
| - | インストールが完了したら rvm を読み込む。 | ||
| - | < | ||
| - | $ source ~/ | ||
| - | </ | ||
| - | |||
| - | ===== Ruby のビルドに必要なパッケージのインストール ===== | ||
| - | < | ||
| - | $ sudo yum install readline readline-devel ncurses ncurses-devel gdbm gdbm-devel glibc-devel tcl-devel tk-devel libX11-devel autoconf gcc unzip openssl-devel db4-devel byacc patch libyaml-devel libffi-devel gcc-c++ patch automake libtool bison | ||
| - | </ | ||
| - | |||
| - | ===== Ruby のインストール ===== | ||
| - | < | ||
| - | $ rvm install 2.0.0 | ||
| - | </ | ||
| - | < | ||
| - | Searching for binary rubies, this might take some time. | ||
| - | No binary rubies available for: centos/ | ||
| - | Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. | ||
| - | Checking requirements for centos. | ||
| - | Requirements installation successful. | ||
| - | Installing Ruby from source to: / | ||
| - | ruby-2.0.0-p451 - # | ||
| - | % Total % Received % Xferd Average Speed | ||
| - | | ||
| - | 100 10.2M 100 10.2M 0 | ||
| - | ruby-2.0.0-p451 - #extracting ruby-2.0.0-p451 to / | ||
| - | ruby-2.0.0-p451 - #applying patch / | ||
| - | ruby-2.0.0-p451 - #applying patch / | ||
| - | ruby-2.0.0-p451 - #applying patch / | ||
| - | ruby-2.0.0-p451 - # | ||
| - | ruby-2.0.0-p451 - # | ||
| - | ruby-2.0.0-p451 - # | ||
| - | ruby-2.0.0-p451 - # | ||
| - | ruby-2.0.0-p451 - #making binaries executable.. | ||
| - | ruby-2.0.0-p451 - # | ||
| - | % Total % Received % Xferd Average Speed | ||
| - | | ||
| - | 100 404k 100 404k 0 | ||
| - | No checksum for downloaded archive, recording checksum in user configuration. | ||
| - | ruby-2.0.0-p451 - #extracting rubygems-2.2.2... | ||
| - | ruby-2.0.0-p451 - #removing old rubygems......... | ||
| - | ruby-2.0.0-p451 - #installing rubygems-2.2.2............... | ||
| - | ruby-2.0.0-p451 - #gemset created / | ||
| - | ruby-2.0.0-p451 - #importing gemset / | ||
| - | ruby-2.0.0-p451 - #generating global wrappers......... | ||
| - | ruby-2.0.0-p451 - #gemset created / | ||
| - | ruby-2.0.0-p451 - #importing gemsetfile / | ||
| - | ruby-2.0.0-p451 - #generating default wrappers......... | ||
| - | ruby-2.0.0-p451 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake). | ||
| - | Install of ruby-2.0.0-p451 - #complete | ||
| - | Please be aware that you just installed a ruby that requires 2 patches just to be compiled on an up to date linux system. | ||
| - | This may have known and unaccounted for security vulnerabilities. | ||
| - | Please consider upgrading to ruby-2.1.1 which will have all of the latest security patches. | ||
| - | Ruby was built without documentation, | ||
| - | </ | ||
| - | |||
| - | ===== Ruby バージョンの切り替え ===== | ||
| - | Ruby 2.0.0 をデフォルトにする。 | ||
| - | < | ||
| - | $ rvm use 2.0.0 --default | ||
| - | Using / | ||
| - | |||
| - | $ ruby -v | ||
| - | ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-linux] | ||
| - | </ | ||