1 개요[ | ]
- 리눅스 RVM ruby 설치
- ruby와 gem이 설치됨
2 사전작업[ | ]
3 확인[ | ]
Console
Copy
root@zetawiki:~# rvm list
rvm rubies
# No rvm rubies installed yet. Try 'rvm help install'.
4 ruby 설치[ | ]
Console
Copy
root@zetawiki:~# rvm install ruby
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/12.04/x86_64/ruby-2.2.1.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system..........
Installing required packages: gawk, libreadline6-dev, zlib1g-dev, libssl-dev, libyaml-dev, libsqlite3-dev, sqlite3, autoconf, libgdbm-dev, libncurses5-dev, automake, libtool, bison, pkg-config, libffi-dev..............
Requirements installation successful.
ruby-2.2.1 - #configure
ruby-2.2.1 - #download
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 21.5M 100 21.5M 0 0 1932k 0 0:00:11 0:00:11 --:--:-- 2180k
ruby-2.2.1 - #validate archive
ruby-2.2.1 - #extract
ruby-2.2.1 - #validate binary
ruby-2.2.1 - #setup
ruby-2.2.1 - #gemset created /usr/local/rvm/gems/ruby-2.2.1@global
ruby-2.2.1 - #importing gemset /usr/local/rvm/gemsets/global.gems..............................
ruby-2.2.1 - #generating global wrappers........
ruby-2.2.1 - #gemset created /usr/local/rvm/gems/ruby-2.2.1
ruby-2.2.1 - #importing gemsetfile /usr/local/rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.2.1 - #generating default wrappers........
5 확인 2[ | ]
Console
Copy
root@zetawiki:~# ruby -v
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
Console
Copy
root@zetawiki:~# gem -v
2.4.6
Console
Copy
root@zetawiki:~# rvm list
rvm rubies
=* ruby-2.2.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
Console
Copy
root@zetawiki:~# rvm env
export PATH="/usr/local/rvm/gems/ruby-2.2.1/bin:/usr/local/rvm/gems/ruby-2.2.1@global/bin:/usr/local/rvm/rubies/ruby-2.2.1/bin:$PATH"
export GEM_HOME='/usr/local/rvm/gems/ruby-2.2.1'
export GEM_PATH='/usr/local/rvm/gems/ruby-2.2.1:/usr/local/rvm/gems/ruby-2.2.1@global'
export MY_RUBY_HOME='/usr/local/rvm/rubies/ruby-2.2.1'
export IRBRC='/usr/local/rvm/rubies/ruby-2.2.1/.irbrc'
unset MAGLEV_HOME
unset RBXOPT
export RUBY_VERSION='ruby-2.2.1'
6 같이 보기[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.