Ruby Version 관리 툴 – rvm.io rbenv

개요

rvm보다 가볍고 시스템에 영향을 주지 않는다(삭제하기쉽다)는 이유로 rbenv으로 루비 버전관리 툴의 대세가 넘어간 것 같다.

rvm

http://rvm.io 접속해서 스크립트로 설치

rbenv

설치는 좀 더 성가시다.
공식 주소 :
https://github.com/rbenv/rbenv
install명령을 쓰려면 이것도 깔아줘야한다 :
https://github.com/rbenv/ruby-build

ubuntu 17.04 desk

$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
$ cd ~/.rbenv && src/configure && make -C src
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ ~/.rbenv/bin/rbenv init
수동으로 추가해야할 수 있다.
$ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
설치
$ rbenv insall 2.3.3
버전확인
$ rbenv versions
버전선택
$ rbenv global 2.3.4
버전확인
$ ruby -v

Leave a Reply

Your email address will not be published. Required fields are marked *

 characters available