Skip to content

Instantly share code, notes, and snippets.

@troyfontaine
Last active October 16, 2016 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save troyfontaine/82d17d20d179a7cddf23b1c131186e4f to your computer and use it in GitHub Desktop.
Save troyfontaine/82d17d20d179a7cddf23b1c131186e4f to your computer and use it in GitHub Desktop.
Install Ruby on Hypriot OS

Steps to install

  1. Install pre-requisite packages

    sudo apt update
    sudo apt install -y gcc make ruby-build
    
  2. Install rbenv

    git clone https://github.com/rbenv/rbenv.git ~/.rbenv
    cd ~/.rbenv && src/configure && make -C src
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"\neval "$(rbenv init -)"' >> ~/.bash_profile
    
  3. Install ruby-build

    git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment