0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MacOSX 10.9.4 へのRuby導入メモ

0
Posted at

Homebrew 導入

これはバージョンによって異なるので、
http://brew.sh/index_ja.html
を参考にインストールする。

以下は、
http://www.d-wood.com/blog/2014/03/20_5847.html
を参考にしながら、入れていく。

rbenvの導入

Brewを利用してインストールする。

brew install openssl readline
brew install rbenv
brew install rbenv-gemset
brew install rbenv-gem-rehash

rbenv でのruby 導入

インストール

rbenv install --list
rbenv install 2.1.2

環境設定

.bash_profile
export PATH=$HOME/.rbenv/bin:$PATH
eval "$(rbenv init -)"

環境設定を読み込んでから、以下のコマンドを実行することで、実際に実行されるRuby のバージョンに変更される。

renv global 2.1.2
ruby -v

以下のように導入したバージョンが表示されていれば完了。

ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?