LoginSignup
2
2

More than 5 years have passed since last update.

CentOS6.3にrvmでruby入れるメモ

Last updated at Posted at 2013-01-02

rvmをインストールする

$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

以下のメッセージが出て、インストールは終了するはず。

Installing RVM to /usr/local/rvm/
Creating RVM system user group 'rvm'

RVM: Shell scripts enabling management of multiple ruby environments.
RTFM: https://rvm.io/
HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
Cheatsheet: http://cheat.errtheblog.com/s/rvm/
Screencast: http://screencasts.org/episodes/how-to-use-rvm

In case of any issues read output of 'rvm requirements' and/or 'rvm notes'

Installation of RVM in /usr/local/rvm/ is almost complete:

  • First you need to add all users that will be using rvm to 'rvm' group,
    and logout - login again, anyone using rvm will be operating with umask u=rwx,g=rwx,o=rx.

  • To start using RVM you need to run source /etc/profile.d/rvm.sh
    in all your open shell windows, in rare cases you need to reopen all shell windows.

rvmを使えるように設定ファイルを読み込めと書いてあるので、
読み込み直す

$ source /etc/profile.d/rvm.sh

First you need to~の件は「ちょっと何言ってるか分かんないです。」です。

ruby入れる

$ rvm install ruby 1.9.3

そうすると、以下のパッケージが必要だと教えてもらえるので入れる

$ yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison

改めて

$ rvm install ruby 1.9.3

しばらく時間がかかります。

# Install of ruby-1.9.3-p362 - #complete 

無事にインストールできました。

2
2
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
2
2