Skip to content

Instantly share code, notes, and snippets.

@jendiamond
Created July 25, 2013 21:44
Show Gist options
  • Save jendiamond/6084052 to your computer and use it in GitHub Desktop.
Save jendiamond/6084052 to your computer and use it in GitHub Desktop.
Week 2 Day 8
### To reproduce the "bundle i" error
1. Put **alias dbundle='ruby -I ~/Desktop/railsgirls/bundler/lib ~/Desktop/railsgirls/bundler/bin/bundle'** into you .bashrc file
Make sure you have the right path to your file.
You can locate the .bashrc file by running:
$ ls -a
2. Run
$ ruby -I ~/Desktop/railsgirls/bundler/lib ~/Desktop/railsgirls/bundler/bin/bundle
in any directory with a Gemfile
Notes:
source ~/.bashrc - reloads the bash file
-I directory Used to tell Ruby where to load the library scripts.
Directory path will be added to the load-path variable
($:).
-S Makes Ruby use the PATH environment variable to search for
script, unless if its name begins with a slash. This is
used to emulate #! on machines that don't support it, in
the following manner:
#! /usr/local/bin/ruby
# This line makes the next one a comment in Ruby \
exec /usr/local/bin/ruby -S $0 $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment