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