Make sure that you have the required build tools for Ruby.
sudo apt-get install autoconf automake bison build-essential curl \
git-core libapr1 libaprutil1 libc6-dev libltdl-dev libreadline6 \
libreadline6-dev libsqlite3-0 libsqlite3-dev libssl-dev libtool \
libxml2-dev libxslt-dev libxslt1-dev libyaml-dev ncurses-dev \
nodejs openssl sqlite3 zlib1g zlib1g-devInstall Git for Linux
sudo apt-get install gitFor more detailed instruction on installation see the following:
- http://installfest.railsbridge.org/installfest/linux
- NOTE: Do not install RVM (ruby version manager) as it conflicts with Rbenv.
Visit the Rbenv Github page and see the rbenv install instructions
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bashYou can see the shell script that will be run at the following URL:
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bashYou can see the shell script that will be run at the following URL:
# make sure that the Bash configuration file exists
touch ~/.bashrc
# Add the Rbenv executable at the front of your PATH
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
# Run the Rbenv init script and follow the instructions
~/.rbenv/bin/rbenv init
# Start a new instance of the Bash process to source your new configuration
exec bashAt this point you are ready to install a Ruby version.
# All ruby versions known to the ruby-build plugin
rbenv install -l- Latest Ruby as of this document is 2.5.5
rbenv install 2.5.5rbenv global 2.5.5gem install bundlercd ~/path/to/codelikethisbundle installgem install deckrbgem install rake