LoginSignup
2
2

More than 5 years have passed since last update.

さくらのレンタルサーバーにRuby 2.4.3をインストールする

Posted at

OS

  • FreeBSD 9.1-RELEASE-p24

インストール手順(history)

history
$ cd www
$ mkdir -p local
$ cd local
$ git clone git://github.com/sstephenson/rbenv.git rbenv
$ mkdir -p ./rbenv/plugins
$ cd ./rbenv/plugins/
$ git clone git://github.com/sstephenson/ruby-build.git
$ vi ~/.bashrc
$ source ~/.bashrc
$ rbenv install 2.4.3
$ rbenv rehash
$ rbenv global 2.4.3
$ ruby -v
  ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-freebsd9.1]
$ rbenv versions
  system
* 2.4.3 (set by /home/aok-net2/local/rbenv/version)
~/.bashrc
export RBENV_ROOT=$HOME/local/rbenv
export PATH=$RBENV_ROOT/bin:$HOME/local/bin:$PATH
eval "$(rbenv init -)"

export TMPDIR=$HOME/tmp

2.5.0 はruby-buildのエラーによりインストールできませんでした

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