What this ruby script does:
- Installs build dependencies for Ruby.
- Downloads ruby source tarball using the version listed in the constant VERSION
- Untars the tarball, configures the build, runs make and make install, Ruby is installed on the system as root, no version manager (RVM, rbenv, chroot) is used.
- Cleans up the tarball and build directory by removing them.
Assumptions:
- Raspberry Pi is accessible by ip or host name.
- Raspbian, Raspbian lite, or ubuntu derivative OS that supports APT packages is already installed.
- Default user and password for Raspbian Lite is ‘pi’ and ‘raspberry’ and this user has sudo.
- Ruby is installed on the local machine doing the install.
Usage:
- Download the script
wget https://gist.githubusercontent.com/timcase/b62a0d14568a8e97e4a27258631571e0/raw/27d276d285926e8815bf4ea2aa7b9c7148258df5/pi_install_ruby.rb
2. Make it executable
chmod +x pi_install_ruby.rb
3. Run it passing the ip or host name of the Pi.
./pi_install_ruby.rb 192.168.1.70