Skip to content

Instantly share code, notes, and snippets.

@josegrad
Created December 10, 2012 12:05
Show Gist options
  • Save josegrad/4250226 to your computer and use it in GitHub Desktop.
Save josegrad/4250226 to your computer and use it in GitHub Desktop.
START TERMINAL
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
echo $GEM_PATH
---- empty!!
SOME VERSIONS
gem -v
Invalid gemspec in [/Users/elmaco/.rvm/gems/ruby-1.9.3-p327/specifications/spree-1.2.2.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001082b01e8> 1.2.2"]
Invalid gemspec in [/Users/elmaco/.rvm/gems/ruby-1.9.3-p327/specifications/spree_api-1.2.2.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001082f5fe0> 1.2.2"]
Invalid gemspec in [/Users/elmaco/.rvm/gems/ruby-1.9.3-p327/specifications/spree_auth-1.1.4.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001082c2820> 1.1.4"]
Invalid gemspec in [/Users/elmaco/.rvm/gems/ruby-1.9.3-p327/specifications/spree_core-1.1.4.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x0000010839fb08> 0.1.4"]
Invalid gemspec in [/Users/elmaco/.rvm/gems/ruby-1.9.3-p327/specifications/spree_core-1.2.2.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000108439f28> 0.1.4"]
Invalid gemspec in [/Users/elmaco/.rvm/gems/ruby-1.9.3-p327/specifications/spree_dash-1.2.2.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001081e5e48> 1.2.2"]
Invalid gemspec in [/Users/elmaco/.rvm/gems/ruby-1.9.3-p327/specifications/spree_promo-1.2.2.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001083f0cd8> 1.2.2"]
Invalid gemspec in [/Users/elmaco/.rvm/gems/ruby-1.9.3-p327/specifications/spree_sample-1.2.2.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001083b6880> 1.2.2"]
1.8.24
jgdmbp:~ elmaco$ ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin10.8.0]
jgdmbp:~ elmaco$ rails -v
Invalid gemspec in [/Users/elmaco/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/gems/1.9.1/specifications/spree-1.2.2.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001082b01e8> 1.2.2"]
Invalid gemspec in [/Users/elmaco/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/gems/1.9.1/specifications/spree_api-1.2.2.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001082f5fe0> 1.2.2"]
Invalid gemspec in [/Users/elmaco/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/gems/1.9.1/specifications/spree_auth-1.1.4.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001082c2820> 1.1.4"]
Invalid gemspec in [/Users/elmaco/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/gems/1.9.1/specifications/spree_core-1.1.4.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x0000010839fb08> 0.1.4"]
Invalid gemspec in [/Users/elmaco/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/gems/1.9.1/specifications/spree_core-1.2.2.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000108439f28> 0.1.4"]
Invalid gemspec in [/Users/elmaco/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/gems/1.9.1/specifications/spree_dash-1.2.2.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001081e5e48> 1.2.2"]
Invalid gemspec in [/Users/elmaco/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/gems/1.9.1/specifications/spree_promo-1.2.2.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001083f0cd8> 1.2.2"]
Invalid gemspec in [/Users/elmaco/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/gems/1.9.1/specifications/spree_sample-1.2.2.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x000001083b6880> 1.2.2"]
Rails 3.2.9
-----------
ENTER A FOLDER
cd projects/
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
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$
jgdmbp:projects elmaco$ gem -v
1.3.6
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$ rails -v
Rails 2.3.5
----------
SOME CONFIGURATION FILES
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"
export 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:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
cat ~/.bashrc
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
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.
----- EXTRA
jgdmbp:projects elmaco$ cat .rvmrc
rvm_trust_rvmrcs_flag=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment