/ Published in: Bash
Use this snippet in Linux shell to install RVM and set it up for use with Sprockets.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# https://rvm.io hash curl 2>/dev/null || { echo >&2 "I require curl but it's not installed. Aborting."; exit 1; } # get ruby version manager curl -L https://get.rvm.io | bash -s stable --ruby # compile-in external libraries with ruby rvm pkg install openssl rvm pkg install zlib # RECOMPILE: if rvm installation already contains ruby versions # $ rvm reinstall $(rvm list strings | tr "\n" ',') # $ rvm all-gemsets do rvm gemset pristine # install required (baseline) ruby version and recent releases rvm install 1.8.7-latest rvm install 1.9.3-latest # create a gemset and set it as default rvm gemset create jsprocket rvm use 1.9.3-latest@jsprocket --default # Checks: #------- # ruby -v # rvm gemset list # rvm list