LoginSignup
0
0

More than 5 years have passed since last update.

Ruby install by rbenv on Ubuntu15 [memo]

Posted at

Ruby install by rbenv on Ubuntu15

vm-tools install

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install open-vm-tools open-vm-tools-desktop

rbenv install

sudo apt-get install git build-essential libssl-dev
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
vi ~/.profile
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
source ~/.profile

Ruby install

rbenv install 2.3.0
rbenv rehash
rbenv global 2.3.0

余談

VM common directory(VMを使っている場合の共有フォルダの設定)

sudo apt-get install build-essential
mkdir /mnt/hgfs/
sudo mount -t vmhgfs .host:/ /mnt/hgfs
0
0
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
0
0