Skip to content

Instantly share code, notes, and snippets.

@taogawa
Created February 9, 2016 17:14
Show Gist options
  • Save taogawa/8a753678e11542ce5e04 to your computer and use it in GitHub Desktop.
Save taogawa/8a753678e11542ce5e04 to your computer and use it in GitHub Desktop.
Railsの環境構築

最終更新日

2016-02-10

前提環境

MacOS X ElCapitan(10.11.3)

手順

.ruby-versionの作成

$ echo <ruby-version> >> .ruby-version 

nokogiriの依存ライブラリのインストール

そのままだとnokogiriがbundleでインストールするときにエラーになる。

$ brew install libxml2
$ brew install libxslt
$ brew link libxml2 --force
$ brew link libxslt --force

gemのインストール

$ bundle install

libv8とrubytracerがインストールエラーになるはず

libv8のアップデート

libv8とrubytracerがインストールされる

$ bundle update libv8

ここを参照 http://qiita.com/ganta/items/53f616b48e94d989952f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment