Created
December 22, 2010 07:42
-
-
Save happyrobots/751228 to your computer and use it in GitHub Desktop.
Exporting Ruby Gems' Executables in Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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