4
4

More than 5 years have passed since last update.

mac osx mavericks にrbenvとrubyとrailsをインストールする手順

Last updated at Posted at 2014-04-10

App Storeからxcodeをダウンロードしインストールする。インストール後一旦xcodeを起動しライセンスに同意する。
その後xcode-select --installを実行する


http://brew.sh/

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

$ brew doctor

$ brew install git

$ brew install rbenv ruby-build

$ rbenv install -l

※最新版を選択


$ rbenv install 2.3.0

$ rbenv rehash

$ rbenv global 2.3.0

$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

zshの場合
echo 'eval "$(rbenv init -)"' >> ~/.zshrc


シェルを再起動


$ brew install openssl
$ brew install readline


$ sudo gem install rails 


シェルを再起動

4
4
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
4
4