Skip to content

Instantly share code, notes, and snippets.

@mkozjak
Created May 27, 2018 16:52
Show Gist options
  • Save mkozjak/1a947b45816d372d85cddfd6b469dec2 to your computer and use it in GitHub Desktop.
Save mkozjak/1a947b45816d372d85cddfd6b469dec2 to your computer and use it in GitHub Desktop.
Script to Install Latest Ruby on Raspberry Pi (Raspbian)
# Install asdf, our Ruby version manager
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc
echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc

# Install dependencies (source: https://github.com/asdf-vm/asdf/blob/master/README.md)
sudo apt-get update
sudo apt-get install automake autoconf libreadline-dev libncurses-dev libssl-dev libyaml-dev libxslt-dev libffi-dev libtool unixodbc-dev

# Install Ruby
asdf plugin-add ruby
asdf install ruby 2.5.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment