Skip to content

Instantly share code, notes, and snippets.

@happyrobots
Created December 22, 2010 07:42
Show Gist options
  • Save happyrobots/751228 to your computer and use it in GitHub Desktop.
Save happyrobots/751228 to your computer and use it in GitHub Desktop.
Exporting Ruby Gems' Executables in Linux
# This script might be useful for systems that don't use Ruby Version Manager.
# It has been tested on Ubuntu 10.04 and Fedora 14,
# and most probably it should work on other Linux distros as well.
# Assuming /opt/ruby-enterprise/bin folder contains all the gems' executables
# (e.g. bundle, rails, etc.),
# put the following line on the last line of /etc/profile
export PATH=/opt/ruby-enterprise/bin:$PATH
# To check whether that folder contains the executables,
# make sure that they do have require 'rubygems'
# If you don't like modifying /etc/profile,
# put that line in .bashprofile or create a new script in /etc/profile.d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment