2
3

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.

mac book (air|pro)にruby2.1.2をインストール

Last updated at Posted at 2014-02-08

mac book airにruby2.1をインストール

brew update

brew update

最新のXcodeをインストール (5.1.1)

brew upgrade ruby-build

brew upgrade ruby-build

upgradeしても更新されなかったので、消して入れ直した

brew uninstall ruby-build
brew install --HEAD ruby-build

installリストを表示

rbenv install -l | grep 2.1.2

ruby 2.1.2をインストール

RUBY_CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline) --with-openssl-dir=$(brew --prefix openssl)" rbenv install 2.1.2

確認

スクリーンショット 2014-06-19 17.57.31.png

特定のディレクトリだけの場合は

cd hoge/foo/var
rbenv local 2.1.2

bundlerをインストール

gem install bundler

bundle

所定のディレクトリで

bundle

備考

https://github.com/sstephenson/rbenv
https://github.com/sstephenson/ruby-build

readlineオプションでインストールしとかないとirbとかで日本語が使えない

Ruby 2.1の基本構文/基本文法まとめ&Pryの使い方

pry入れる

gem install pry
2
3
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
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?