Skip to content

Instantly share code, notes, and snippets.

@tomoya55
Last active August 29, 2015 14:19
Show Gist options
  • Save tomoya55/46449808c5331d219ceb to your computer and use it in GitHub Desktop.
Save tomoya55/46449808c5331d219ceb to your computer and use it in GitHub Desktop.
Rails5.0.0alphaインストール手順 ref: http://qiita.com/tomoya55/items/b536b77aa366c3b5b4ad
brew update && brew upgrade rbenv ruby-build
rbenv install --list | grep 2.2.2
2.2.2
$ brew link readline --force
$ export CFLAGS=-Wno-error=shorten-64-to-32
$ CONFIGURE_OPTS="--with-readline-dir=/usr/local --with-openssl-dir=`brew --prefix openssl`" RUBY_CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`" rbenv install 2.2.2
$ brew unlink readline
gem install bundler --no-ri --no-rdoc
mkdir project
bundle init
source "https://rubygems.org"
gem 'rails', '5.0.0.alpha', github: 'rails/rails'
gem 'arel', github: 'rails/arel'
gem 'sqlite3'
bundle install --path vendor/bundle
bundle exec rails new .
bin/rails s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment