Search code examples
ruby-on-railsrubymacoszurb-foundation-5

upgrading ruby on OSX 10.7 for zurb foundtion


Hi guys been trying to get zurb foundation installed on my system again unfortunately im having issues. Im running OSX 10.7 because i have an older system and had to wipe after i installed yosemti mistakenly, before I had 10.8 and didn't seem to be having issues. It seems like I can get the ruby update to work, ive tried home brew and rvm, and now at least when i check ruby version it says 2.2 but looks like foundation is still trying to use 1.8. ALso would it be the OS and maybe I should wipe again and go back to OSX 10.8?

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem foundation (>= 0) (Gem::LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:211:in `activate'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:1056:in `gem'
    from /usr/bin/foundation:18

Solution

  • This A List Apart post by Olivier Lacan, is very helpful in understanding the $PATH variable: http://alistapart.com/article/the-path-to-enlightenment.

    In short, in the terminal, after your prompt, type:

    echo $PATH
    

    The result will show you your $PATH. It may look something like:

    /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin