Loading...

Mac OS X

Install ruby environment

# change to home directory
cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

Install ruby-build

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

Install ruby 2.4

export TMPDIR=/home/tan/tmp/
rbenv install 2.4.0
rbenv global 2.4.0

Check ruby installation

ruby -v

Install bundler

gem install bundler

IntelliJ

intellij terminal

source ~/.bashrc