Menu icon Foundation
Foundation 5 scss refuses to install

Hi guys - have been trying to update to Foundation 5 literally since the day it was released, but haven't found the time to update Ruby until today. So I'm now running Ruby 2.1.0 (installed with Homebrew), have NodeJS installed and got Bower 1.2.8 as well as the latest version of Git just to be sure. I'm on Mac OS X 10.8.5.

I've run the foundation install commands listed on the website, but when I try to create a new project, I get this:

Wilfs-MacBook-Pro:~ wilfmfhorsfall$ foundation version
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': /Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:44: syntax error, unexpected ':', expecting ')' (SyntaxError)
            run("gem install compass", capture: true, verbose: false)
                                               ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:44: Can't assign to true
            run("gem install compass", capture: true, verbose: false)
                                                     ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:44: syntax error, unexpected ':', expecting '='
            run("gem install compass", capture: true, verbose: false)
                                                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:45: syntax error, unexpected ':', expecting ')'
...  run("rbenv rehash", capture: true, verbose: false) if whic...
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:45: Can't assign to true
..."rbenv rehash", capture: true, verbose: false) if which("rbe...
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:45: syntax error, unexpected ':', expecting '='
...hash", capture: true, verbose: false) if which("rbenv")
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:94: syntax error, unexpected ':', expecting ')'
            run("compass compile", capture: true, verbose: false)
                                           ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:94: Can't assign to true
            run("compass compile", capture: true, verbose: false)
                                                 ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:94: syntax error, unexpected ':', expecting '='
            run("compass compile", capture: true, verbose: false)
                                                          ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:97: syntax error, unexpected ':', expecting ')'
          run("compass compile", capture: true, verbose: false)
                                         ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:97: Can't assign to true
          run("compass compile", capture: true, verbose: false)
                                               ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:97: syntax error, unexpected ':', expecting '='
          run("compass compile", capture: true, verbose: false)
                                                        ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:114: syntax error, unexpected ':', expecting kEND
      option :libsass, type: :boolean, default: false
                            ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:115: syntax error, unexpected ':', expecting kEND
      option :version, type: :string
                            ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:127: syntax error, unexpected ':', expecting ')'
...one #{repo} #{name}", capture: true, verbose: false)
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:127: Can't assign to true
...repo} #{name}", capture: true, verbose: false)
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:127: syntax error, unexpected ':', expecting '='
...ame}", capture: true, verbose: false)
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:130: syntax error, unexpected ':', expecting ')'
          run("bower install", capture: true, verbose: false)
                                       ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:130: Can't assign to true
          run("bower install", capture: true, verbose: false)
                                             ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:130: syntax error, unexpected ':', expecting '='
          run("bower install", capture: true, verbose: false)
                                                      ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:132: syntax error, unexpected ':', expecting ')'
          run("git remote rm origin", capture: true, verbose: false)
                                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:132: Can't assign to true
          run("git remote rm origin", capture: true, verbose: false)
                                                    ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:132: syntax error, unexpected ':', expecting '='
          run("git remote rm origin", capture: true, verbose: false)
                                                             ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:149: syntax error, unexpected ':', expecting kEND
      option :version, type: :string
                            ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:159: syntax error, unexpected $end, expecting kEND
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from /Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli.rb:2
	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from /Library/Ruby/Gems/1.8/gems/foundation-1.0.4/bin/foundation:3
	from /usr/bin/foundation:19:in `load'
	from /usr/bin/foundation:19
            

         

When I go to check my Foundation version I get this:

Wilfs-MacBook-Pro:~ wilfmfhorsfall$ foundation version
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': /Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:44: syntax error, unexpected ':', expecting ')' (SyntaxError)
            run("gem install compass", capture: true, verbose: false)
                                               ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:44: Can't assign to true
            run("gem install compass", capture: true, verbose: false)
                                                     ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:44: syntax error, unexpected ':', expecting '='
            run("gem install compass", capture: true, verbose: false)
                                                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:45: syntax error, unexpected ':', expecting ')'
...  run("rbenv rehash", capture: true, verbose: false) if whic...
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:45: Can't assign to true
..."rbenv rehash", capture: true, verbose: false) if which("rbe...
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:45: syntax error, unexpected ':', expecting '='
...hash", capture: true, verbose: false) if which("rbenv")
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:94: syntax error, unexpected ':', expecting ')'
            run("compass compile", capture: true, verbose: false)
                                           ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:94: Can't assign to true
            run("compass compile", capture: true, verbose: false)
                                                 ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:94: syntax error, unexpected ':', expecting '='
            run("compass compile", capture: true, verbose: false)
                                                          ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:97: syntax error, unexpected ':', expecting ')'
          run("compass compile", capture: true, verbose: false)
                                         ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:97: Can't assign to true
          run("compass compile", capture: true, verbose: false)
                                               ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:97: syntax error, unexpected ':', expecting '='
          run("compass compile", capture: true, verbose: false)
                                                        ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:114: syntax error, unexpected ':', expecting kEND
      option :libsass, type: :boolean, default: false
                            ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:115: syntax error, unexpected ':', expecting kEND
      option :version, type: :string
                            ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:127: syntax error, unexpected ':', expecting ')'
...one #{repo} #{name}", capture: true, verbose: false)
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:127: Can't assign to true
...repo} #{name}", capture: true, verbose: false)
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:127: syntax error, unexpected ':', expecting '='
...ame}", capture: true, verbose: false)
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:130: syntax error, unexpected ':', expecting ')'
          run("bower install", capture: true, verbose: false)
                                       ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:130: Can't assign to true
          run("bower install", capture: true, verbose: false)
                                             ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:130: syntax error, unexpected ':', expecting '='
          run("bower install", capture: true, verbose: false)
                                                      ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:132: syntax error, unexpected ':', expecting ')'
          run("git remote rm origin", capture: true, verbose: false)
                                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:132: Can't assign to true
          run("git remote rm origin", capture: true, verbose: false)
                                                    ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:132: syntax error, unexpected ':', expecting '='
          run("git remote rm origin", capture: true, verbose: false)
                                                             ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:149: syntax error, unexpected ':', expecting kEND
      option :version, type: :string
                            ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:159: syntax error, unexpected $end, expecting kEND
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from /Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli.rb:2
	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from /Library/Ruby/Gems/1.8/gems/foundation-1.0.4/bin/foundation:3
	from /usr/bin/foundation:19:in `load'
	from /usr/bin/foundation:19
            

         

Can anyone let me know what's going wrong? I see a lot of references to ruby 1.8 up there - could that be because I installed the Foundation Gem before updating Ruby? If so, what's the command for removing the Gem? Literally the only time I use Ruby is when I'm setting up a new Foundation project, so not used to removing stuff.

Thanks,
Wilf

Foundation 5rubybash

Hi guys - have been trying to update to Foundation 5 literally since the day it was released, but haven't found the time to update Ruby until today. So I'm now running Ruby 2.1.0 (installed with Homebrew), have NodeJS installed and got Bower 1.2.8 as well as the latest version of Git just to be sure. I'm on Mac OS X 10.8.5.

I've run the foundation install commands listed on the website, but when I try to create a new project, I get this:

Wilfs-MacBook-Pro:~ wilfmfhorsfall$ foundation version
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': /Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:44: syntax error, unexpected ':', expecting ')' (SyntaxError)
            run("gem install compass", capture: true, verbose: false)
                                               ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:44: Can't assign to true
            run("gem install compass", capture: true, verbose: false)
                                                     ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:44: syntax error, unexpected ':', expecting '='
            run("gem install compass", capture: true, verbose: false)
                                                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:45: syntax error, unexpected ':', expecting ')'
...  run("rbenv rehash", capture: true, verbose: false) if whic...
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:45: Can't assign to true
..."rbenv rehash", capture: true, verbose: false) if which("rbe...
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:45: syntax error, unexpected ':', expecting '='
...hash", capture: true, verbose: false) if which("rbenv")
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:94: syntax error, unexpected ':', expecting ')'
            run("compass compile", capture: true, verbose: false)
                                           ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:94: Can't assign to true
            run("compass compile", capture: true, verbose: false)
                                                 ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:94: syntax error, unexpected ':', expecting '='
            run("compass compile", capture: true, verbose: false)
                                                          ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:97: syntax error, unexpected ':', expecting ')'
          run("compass compile", capture: true, verbose: false)
                                         ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:97: Can't assign to true
          run("compass compile", capture: true, verbose: false)
                                               ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:97: syntax error, unexpected ':', expecting '='
          run("compass compile", capture: true, verbose: false)
                                                        ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:114: syntax error, unexpected ':', expecting kEND
      option :libsass, type: :boolean, default: false
                            ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:115: syntax error, unexpected ':', expecting kEND
      option :version, type: :string
                            ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:127: syntax error, unexpected ':', expecting ')'
...one #{repo} #{name}", capture: true, verbose: false)
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:127: Can't assign to true
...repo} #{name}", capture: true, verbose: false)
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:127: syntax error, unexpected ':', expecting '='
...ame}", capture: true, verbose: false)
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:130: syntax error, unexpected ':', expecting ')'
          run("bower install", capture: true, verbose: false)
                                       ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:130: Can't assign to true
          run("bower install", capture: true, verbose: false)
                                             ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:130: syntax error, unexpected ':', expecting '='
          run("bower install", capture: true, verbose: false)
                                                      ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:132: syntax error, unexpected ':', expecting ')'
          run("git remote rm origin", capture: true, verbose: false)
                                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:132: Can't assign to true
          run("git remote rm origin", capture: true, verbose: false)
                                                    ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:132: syntax error, unexpected ':', expecting '='
          run("git remote rm origin", capture: true, verbose: false)
                                                             ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:149: syntax error, unexpected ':', expecting kEND
      option :version, type: :string
                            ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:159: syntax error, unexpected $end, expecting kEND
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from /Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli.rb:2
	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from /Library/Ruby/Gems/1.8/gems/foundation-1.0.4/bin/foundation:3
	from /usr/bin/foundation:19:in `load'
	from /usr/bin/foundation:19
            

         

When I go to check my Foundation version I get this:

Wilfs-MacBook-Pro:~ wilfmfhorsfall$ foundation version
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': /Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:44: syntax error, unexpected ':', expecting ')' (SyntaxError)
            run("gem install compass", capture: true, verbose: false)
                                               ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:44: Can't assign to true
            run("gem install compass", capture: true, verbose: false)
                                                     ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:44: syntax error, unexpected ':', expecting '='
            run("gem install compass", capture: true, verbose: false)
                                                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:45: syntax error, unexpected ':', expecting ')'
...  run("rbenv rehash", capture: true, verbose: false) if whic...
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:45: Can't assign to true
..."rbenv rehash", capture: true, verbose: false) if which("rbe...
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:45: syntax error, unexpected ':', expecting '='
...hash", capture: true, verbose: false) if which("rbenv")
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:94: syntax error, unexpected ':', expecting ')'
            run("compass compile", capture: true, verbose: false)
                                           ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:94: Can't assign to true
            run("compass compile", capture: true, verbose: false)
                                                 ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:94: syntax error, unexpected ':', expecting '='
            run("compass compile", capture: true, verbose: false)
                                                          ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:97: syntax error, unexpected ':', expecting ')'
          run("compass compile", capture: true, verbose: false)
                                         ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:97: Can't assign to true
          run("compass compile", capture: true, verbose: false)
                                               ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:97: syntax error, unexpected ':', expecting '='
          run("compass compile", capture: true, verbose: false)
                                                        ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:114: syntax error, unexpected ':', expecting kEND
      option :libsass, type: :boolean, default: false
                            ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:115: syntax error, unexpected ':', expecting kEND
      option :version, type: :string
                            ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:127: syntax error, unexpected ':', expecting ')'
...one #{repo} #{name}", capture: true, verbose: false)
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:127: Can't assign to true
...repo} #{name}", capture: true, verbose: false)
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:127: syntax error, unexpected ':', expecting '='
...ame}", capture: true, verbose: false)
                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:130: syntax error, unexpected ':', expecting ')'
          run("bower install", capture: true, verbose: false)
                                       ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:130: Can't assign to true
          run("bower install", capture: true, verbose: false)
                                             ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:130: syntax error, unexpected ':', expecting '='
          run("bower install", capture: true, verbose: false)
                                                      ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:132: syntax error, unexpected ':', expecting ')'
          run("git remote rm origin", capture: true, verbose: false)
                                              ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:132: Can't assign to true
          run("git remote rm origin", capture: true, verbose: false)
                                                    ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:132: syntax error, unexpected ':', expecting '='
          run("git remote rm origin", capture: true, verbose: false)
                                                             ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:149: syntax error, unexpected ':', expecting kEND
      option :version, type: :string
                            ^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:159: syntax error, unexpected $end, expecting kEND
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from /Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli.rb:2
	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from /Library/Ruby/Gems/1.8/gems/foundation-1.0.4/bin/foundation:3
	from /usr/bin/foundation:19:in `load'
	from /usr/bin/foundation:19
            

         

Can anyone let me know what's going wrong? I see a lot of references to ruby 1.8 up there - could that be because I installed the Foundation Gem before updating Ruby? If so, what's the command for removing the Gem? Literally the only time I use Ruby is when I'm setting up a new Foundation project, so not used to removing stuff.

Thanks,
Wilf

This post has been closed. No new replies can be added.

Wilf Horsfall over 5 years ago

For some reason the post editor is showing my foundation version command twice instead of the set up a new project command. This is what I get when I go to set up a new project:
``
Last login: Sun Feb 9 14:00:51 on ttys001
Wilfs-MacBook-Pro:~ wilfmfhorsfall$ cd "Documents/Website"
Wilfs-MacBook-Pro:Website wilfmfhorsfall$ foundation new latest --libsass
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require': /Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:44: syntax error, unexpected ':', expecting ')' (SyntaxError)
run("gem install compass", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:44: Can't assign to true
run("gem install compass", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:44: syntax error, unexpected ':', expecting '='
run("gem install compass", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:45: syntax error, unexpected ':', expecting ')'
... run("rbenv rehash", capture: true, verbose: false) if whic...
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:45: Can't assign to true
..."rbenv rehash", capture: true, verbose: false) if which("rbe...
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:45: syntax error, unexpected ':', expecting '='
...hash", capture: true, verbose: false) if which("rbenv")
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:94: syntax error, unexpected ':', expecting ')'
run("compass compile", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:94: Can't assign to true
run("compass compile", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:94: syntax error, unexpected ':', expecting '='
run("compass compile", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:97: syntax error, unexpected ':', expecting ')'
run("compass compile", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:97: Can't assign to true
run("compass compile", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:97: syntax error, unexpected ':', expecting '='
run("compass compile", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:114: syntax error, unexpected ':', expecting kEND
option :libsass, type: :boolean, default: false
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:115: syntax error, unexpected ':', expecting kEND
option :version, type: :string
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:127: syntax error, unexpected ':', expecting ')'
...one #{repo} #{name}", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:127: Can't assign to true
...repo} #{name}", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:127: syntax error, unexpected ':', expecting '='
...ame}", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:130: syntax error, unexpected ':', expecting ')'
run("bower install", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:130: Can't assign to true
run("bower install", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:130: syntax error, unexpected ':', expecting '='
run("bower install", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:132: syntax error, unexpected ':', expecting ')'
run("git remote rm origin", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:132: Can't assign to true
run("git remote rm origin", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:132: syntax error, unexpected ':', expecting '='
run("git remote rm origin", capture: true, verbose: false)
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:149: syntax error, unexpected ':', expecting kEND
option :version, type: :string
^
/Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:159: syntax error, unexpected $end, expecting kEND
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in require'
from /Library/Ruby/Gems/1.8/gems/foundation-1.0.4/lib/foundation/cli.rb:2
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in require'
from /Library/Ruby/Gems/1.8/gems/foundation-1.0.4/bin/foundation:3
from /usr/bin/foundation:19:in
load'
from /usr/bin/foundation:19
Wilfs-MacBook-Pro:Website wilfmfhorsfall$

Wilf Horsfall over 5 years ago

Tried sudo gem uninstall foundation followed by sudo gem install foundation, and still get the weird error message. ruby -v brings back ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin12.0] so no idea why foundation seems to be trying to use Ruby 1.8.

Maybe I should upgrade to Mavericks? It ships with Ruby 2, so might fix the problem.

Wilf Horsfall over 5 years ago

OK, it took literally hours in the command line, but I figured it out. If like me you installed foundation with a version of Ruby that pre-dates 1.9, do the following:

  1. Check if you have the same problem I had by running [$ foundation version] in terminal. You should get a lot of text - in there you should see "/Library/Ruby/Gems/1.8/", or some other number below 1.9. If you don't you probably have a different problem. If you do, then carry on:

  2. [$ sudo gem uninstall foundation] - Windows users, leave out "sudo"

  3. check that foundation is really gone with [$ foundation version]

  4. if foundation is gone, then follow the instructions here: http://blog.zerosharp.com/installing-ruby-with-homebrew-and-rbenv-on-mac-os-x-mountain-lion/ (he installs 1.9.3, which should work - I changed the commands on my run-through to get 2.1.0 though)

If foundation isn't gone, then run [$ ruby --version]. If the version of Ruby that you have installed is different from the one you saw when you followed step 0, you (like me) installed a new version of Ruby after you installed foundation.

You need to get rid of that version of Ruby (I installed Ruby with Brew, so I just needed to use [$ brew uninstall ruby]). Once you've removed that version of Ruby run [$ ruby --version] again, this time it should match the version of Ruby that Foundation was installed with. Now you're ready to follow the instructions at http://blog.zerosharp.com/installing-ruby-with-homebrew-and-rbenv-on-mac-os-x-mountain-lion/)

  1. Once all that's done, reinstall foundation using the instructions at http://foundation.zurb.com/learn/video-started-with-foundation.html

And that's it! I haven't spent that much time wondering what's going wrong since the mid-noughties when I ran Ubuntu! Zurb, I would recommend taking a few hours out to writing a guide to updating Ruby, it's really not easy - in fact it's notoriously difficult. StackOverflow has squillions of questions all asking how the hell you update Ruby, and a search of your forum suggests I'm not the only one who had trouble because of this. The reason I didn't just start using Bootstrap instead is because I love Foundation and I know it's a great product. If I hadn't used previous versions of the Framework that were easier to install I wouldn't have bothered figuring out what was going wrong and just used something that worked.

One note to Mac OSX users - apparently Mavericks upgrades Ruby to 2.0, so if you don't want to get embroiled in Ruby version control issues, that may be a good option.