概要
rbenv
$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$ sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev
# rbenv
if [ -e $HOME/.rbenv ]; then
export PATH="$HOME/.rbenv/bin:$PATH"
fi
$ rbenv install 2.6.1
InltelliJ 設定
Project設定
左は新規プロジェクト、右は既存プロジェクト
- /home/gyamin/.rbenv/versions/2.6.1/bin/ruby
Run/Debug設定
Debugを開始すると、Debugに必要なGemがインストールされる。