Rubyアップデート
brew update
----------
Updated Homebrew from 04771ec8 to e89d1e75.
==> New Formulae
chinadns-c smali synscan ucommon
==> Updated Formulae
ansible flac jenkins mplayershell wimlib
assimp flow juju neo4j wireshark
cfengine fontforge libksba ninja wxpython
clamav git liboping percona-server xz
cracklib giter8 libpng percona-toolkit youtube-dl
d-bus gnupg mit-scheme pyenv
easy-tag gnupg2 mpd rbenv-default-gems
emscripten irrlicht mplayer uru
----------
brew upgrade ruby-build
----------
==> Upgrading 1 outdated package, with result:
ruby-build 20141113
==> Upgrading ruby-build
==> Downloading https://github.com/sstephenson/ruby-build/archive/v20141113.tar.gz
######################################################################## 100.0%
==> ./install.sh
/usr/local/Cellar/ruby-build/20141113: 136 files, 584K, built in 3 seconds
----------
rbenv install -l | grep "2\.1\."
----------
2.1.0-dev
2.1.0-preview1
2.1.0-preview2
2.1.0-rc1
2.1.0
2.1.1
2.1.2
2.1.3
2.1.4
2.1.5
rbx-2.1.0
rbx-2.1.1
----------
rbenv install 2.1.5
----------
Downloading ruby-2.1.5.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/4305cc6ceb094df55210d83548dcbeb5117d74eea25196a9b14fa268d354b100
Installing ruby-2.1.5...
Installed ruby-2.1.5 to /Users/matsumoto/.rbenv/versions/2.1.5
----------
使用Ruby変更
ruby -v
----------
ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-darwin13.0]
----------
rbenv global 2.1.5
ruby -v
----------
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin13.0]
----------
Railsインストール
- Railsコマンドエラー確認
rails -v
----------
rbenv: rails: command not found
The `rails' command exists in these Ruby versions:
2.1.3
2.1.4
----------
- Railsインストール
gem i rails
----------
Fetching: thread_safe-0.3.4.gem (100%)
Successfully installed thread_safe-0.3.4
Fetching: minitest-5.4.3.gem (100%)
Successfully installed minitest-5.4.3
Fetching: tzinfo-1.2.2.gem (100%)
Successfully installed tzinfo-1.2.2
Fetching: i18n-0.7.0.beta1.gem (100%)
Successfully installed i18n-0.7.0.beta1
Fetching: activesupport-4.1.8.gem (100%)
Successfully installed activesupport-4.1.8
Fetching: erubis-2.7.0.gem (100%)
Successfully installed erubis-2.7.0
Fetching: builder-3.2.2.gem (100%)
Successfully installed builder-3.2.2
Fetching: actionview-4.1.8.gem (100%)
Successfully installed actionview-4.1.8
Fetching: rack-1.5.2.gem (100%)
Successfully installed rack-1.5.2
Fetching: rack-test-0.6.2.gem (100%)
Successfully installed rack-test-0.6.2
Fetching: actionpack-4.1.8.gem (100%)
Successfully installed actionpack-4.1.8
Fetching: activemodel-4.1.8.gem (100%)
Successfully installed activemodel-4.1.8
Fetching: arel-5.0.1.20140414130214.gem (100%)
Successfully installed arel-5.0.1.20140414130214
Fetching: activerecord-4.1.8.gem (100%)
Successfully installed activerecord-4.1.8
Fetching: mime-types-2.4.3.gem (100%)
Successfully installed mime-types-2.4.3
Fetching: mail-2.6.3.gem (100%)
Successfully installed mail-2.6.3
Fetching: actionmailer-4.1.8.gem (100%)
Successfully installed actionmailer-4.1.8
Fetching: thor-0.19.1.gem (100%)
Successfully installed thor-0.19.1
Fetching: railties-4.1.8.gem (100%)
Successfully installed railties-4.1.8
Fetching: bundler-1.7.7.gem (100%)
Successfully installed bundler-1.7.7
Fetching: sprockets-3.0.0.beta.4.gem (100%)
Successfully installed sprockets-3.0.0.beta.4
Fetching: sprockets-rails-2.2.1.gem (100%)
Successfully installed sprockets-rails-2.2.1
Fetching: rails-4.1.8.gem (100%)
Successfully installed rails-4.1.8
23 gems installed
----------
rbenv rehash
rails -v
----------
Rails 4.1.8
----------