LoginSignup
4
5

More than 5 years have passed since last update.

El Capitanをクリーンインストールしたので、一からRuby開発環境を作ってみる

Last updated at Posted at 2016-02-27
sublimetext3のインストール

テキストエディタ
https://www.sublimetext.com/3

homebrewのインストール

homebrewはOS X 用のパッケージマネージャー

homebrewのホームページを参照し、homebrewをインストールする(下記のURL)
http://brew.sh/index_ja.html

homebrewのupdate
$ brew update
rbenvのinstall

rbenvはrubyの開発環境を便利にするコマンド
rubyをインストールしたり、インストールした複数のrubyのバージョンを切り替えたり、アプリごとに環境を切り分けたりができる
https://github.com/rbenv/rbenv

rbenvのインストール

$ brew install rbenv
$ brew install rbenv-gemset
rubyのインストール
$ rbenv install -l # インストールできるrubyの一覧を表示
$ rbenv install 2.3.0 # 現時点での最新安定バージョンをインストール
$ benv global 2.3.0 # 全環境共通のバージョン指定
bundlerのインストール

bundlerはruby gemsのパッケージマネージャー

$ gem install bundler

You don't have write permissions into the /Library/Ruby/Gems... エラーが出る場合
https://github.com/rbenv/ruby-build/issues/168

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