Skip to content

Instantly share code, notes, and snippets.

@sioncojp
Last active December 19, 2015 08:19
Show Gist options
  • Save sioncojp/5925232 to your computer and use it in GitHub Desktop.
Save sioncojp/5925232 to your computer and use it in GitHub Desktop.
$sudo brew install rbenv
$sudo brew install ruby-build
※makeコマンドがない場合
xcode->preference->downloadでcuiをインストール
linux版
$sudo yum install git
$git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
$git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$cd .rbenv/plugins/ruby-build/
$./install.sh
$cd ~
$echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
$echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
$rbenv-install list
$rbenv-install 2.0.0-p247
$rbenv global 2.0.0-p247
$gem search -r rails
*** REMOTE GEMS ***
rails (4.0.0)
rails-3-settings (0.1.1)
rails-action-args (0.1.1)
$gem install rails
##The Ruby openssl extension was not compiled. Missing the OpenSSL lib? 対策
$sudo brew install openssl
$sudo brew install readline
$RUBY_CONFIGURE_OPTS="--with-readline-dir=`brew --prefix readline` --with-openssl-dir=`brew --prefix openssl`" rbenv install 2.0.0-p195
$rbenv global 2.0.0-p247
$ruby -v
$gem install rails --version="~>3.2.14"
$. ~/.bash_profile
$rails -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment