2015-01-10 8 views
0

Я выполнил шаги на странице «Начало работы с SASS», чтобы установить Foundation 5 и необходимые компоненты.Не удалось установить Foundation 5 Project

Теперь я пытаюсь установить Foundation в папку проекта через Terminal (т. Е. Foundation new myProject).

Терминал возвращает длинный список ошибок, которые я вставлял ниже.

Не знаю, какова эта проблема - любые идеи приветствуются.

Список каталогов inRuby/Gems/1,8/драгоценные камни /:

chunky_png-1.3.3 
compass-1.0.1 
compass-core-1.0.1 
compass-import-once-1.0.5 
ffi-1.9.6 
foundation-1.0.4 
multi_json-1.10.1 
rb-fsevent-0.9.4 
rb-inotofy-0.9.5 
sass-3.4.9 
thor-0.19.1 
zurb-foundation-4.3.2 

Ошибки:

/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 

ответ

0

Очевидная причина того, что я был с видом является версией Ruby. Фундаментальные документы требуют, чтобы Ruby 1.9+ был необходим, и у меня был только Ruby 1.8 (работает OS X 10.8.5).