Created
July 25, 2013 21:44
-
-
Save jendiamond/6084052 to your computer and use it in GitHub Desktop.
Week 2 Day 8
This file contains hidden or 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
### 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