Ruby basic

From 탱이의 잡동사니
Revision as of 21:36, 21 October 2015 by Pchero (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

Overview

Ruby 프로그래밍 내용 정리

rbenv

Install from git.

$ git clone git://github.com/sstephenson/rbenv.git .rbenv

.bash_profile 수정

[ -f "$HOME/.profile" ] && source "$HOME/.profile"
[ -f "$HOME/.bashrc" ] && source "$HOME/.bashrc"

.bashrc 수정

export RBENV_ROOT="${HOME}/.rbenv"
if [ -d "${RBENV_ROOT}"	]; then
  export PATH="${RBENV_ROOT}/bin:${PATH}"
  eval "$(rbenv	init -)"
fi