Ruby > さくらのレンタルサーバ benv と ruby-build で ruby update

$ git clone git://github.com/rbenv/rbenv.git ~/.rbenv
$ git clone git://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
$ emacs ~/.bash_profile
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export CPATH=/usr/local/include:$CPATH;
export LD_LIBRARY_PATH=$HOME/local/lib:/usr/local/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=$HOME/local/lib:/usr/local/lib:$LIBRARY_PATH
export TMPDIR=$HOME/tmp
 
$ . ~/.bash_profile
$ rbenv install 2.3.1
$ rbenv rehash
$ rbenv global 2.3.1
$ ruby -v
最終更新:2019年01月26日 22:33