Skip to content

Instantly share code, notes, and snippets.

@puzzeljp
Last active October 20, 2015 05:49
Show Gist options
  • Select an option

  • Save puzzeljp/52c3fe4c6214f37be0ef to your computer and use it in GitHub Desktop.

Select an option

Save puzzeljp/52c3fe4c6214f37be0ef to your computer and use it in GitHub Desktop.
El Capitan 10.11 GM で Ruby on Rails の環境を作る ref: http://qiita.com/puzzel/items/78638944ec2b0ffccb1b
sudo xcodebuild -license
$ xcode-select --install
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew doctor
$ brew update
$ rbenv exec gem install bundler
$ rbenv rehash
$ bundle install
$ gem install libv8-3.16.14.11-x86_64-darwin-15.gem
$ gem install therubyracer
csrutil enable
$ git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
$ mkdir -p ~/.rbenv/plugins
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
$ source ~/.zshrc
$ brew install openssl
$ brew install readline
$ RUBY_CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline) --with-openssl-dir=$(brew --prefix openssl)" rbenv install 2.1.2 #
$ brew tap homebrew/dupes
$ brew install apple-gcc42
$ export CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2
$ export CXX=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2
$ export CPP=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2
$ rbenv versions
$ rbenv global 2.1.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment