Skip to content

Instantly share code, notes, and snippets.

@josegrad
Created December 10, 2012 12:20
Show Gist options
  • Save josegrad/4250258 to your computer and use it in GitHub Desktop.
Save josegrad/4250258 to your computer and use it in GitHub Desktop.
jgdmbp:~ elmaco$ ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin10.8.0]
jgdmbp:~ elmaco$
jgdmbp:~ elmaco$
jgdmbp:~ elmaco$ rails -v
Rails 3.2.9
jgdmbp:~ elmaco$
jgdmbp:~ elmaco$
jgdmbp:~ elmaco$ echo $PATH
/Users/elmaco/.rvm/gems/ruby-1.9.3-p327/bin:/Users/elmaco/.rvm/gems/ruby-1.9.3-p327@global/bin:/Users/elmaco/.rvm/rubies/ruby-1.9.3-p327/bin:/Users/elmaco/.rvm/bin:/usr/local/heroku/bin:/opt/local/lib/postgresql83/bin:/android-sdk/tools:/Developer/usr/bin:/Developer/usr/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin
jgdmbp:~ elmaco$
jgdmbp:~ elmaco$
jgdmbp:~ elmaco$ echo $GEM_PATH
/Users/elmaco/.rvm/gems/ruby-1.9.3-p327:/Users/elmaco/.rvm/gems/ruby-1.9.3-p327@global
jgdmbp:~ elmaco$
jgdmbp:~ elmaco$
jgdmbp:~ elmaco$
jgdmbp:~ elmaco$ ---------------
-bash: ---------------: command not found
jgdmbp:~ elmaco$
jgdmbp:~ elmaco$
jgdmbp:~ elmaco$ cd projects/
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0]
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$ echo $PATH
/usr/local/heroku/bin:/opt/local/lib/postgresql83/bin:/android-sdk/tools:/Developer/usr/bin:/Developer/usr/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/Users/elmaco/.rvm/bin
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$ echo $GEM_PATH
/Users/elmaco/.rvm/gems/ruby-1.9.3-p327:/Users/elmaco/.rvm/gems/ruby-1.9.3-p327@global
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$ rails -v
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:334:in `bin_path': can't find executable rails for rails-3.2.9 (Gem::Exception)
from /usr/local/bin/rails:19
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$ gem -v
1.3.6
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$
cat ~/.bash_login
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/apache2/bin:$PATH"
##
# Your previous /Users/elmaco/.bash_login file was backed up as /Users/elmaco/.bash_login.macports-saved_2009-10-26_at_23:57:13
##
# MacPorts Installer addition on 2009-10-26_at_23:57:13: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$ cat ~/.bashrc
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$ cat ~/.bash_profile
export PATH=/opt/local/lib/postgresql83/bin:/android-sdk/tools:/Developer/usr/bin:/Developer/usr/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
jgdmbp:projects elmaco$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment