2016-06-22 11 views
0

Ich bin Neuling zu Ruby auf Schienen. Ich beende die Installation mit wenig bis gar keinem Stress, aber während ich eine neue App mit dem Befehl 'rails new' erstelle, bekomme ich Fehler und/bin wird nicht generiert. Fehlerprotokoll unten. Ich habe die ganze Nacht damit verbracht, die Ursache zu verstehen, aber leider ohne Erfolg. Jede Hilfe wird geschätzt.Fehler beim Erstellen von Schienen app erhalten -> ruby ​​/ 2.3.0/erb.rb: 864: in `eval ': (erb): 4: Syntaxfehler, unerwartet' = '(SyntaxError)

Nur wenige Details meiner Maschine: Ich bin mit OS X El Cap v 10.11.5

Rails auf 4.2.6 Ruby on 2.3.1

Datenbank MongoDB Unternehmen 3.2.7

Fehlerdetails

localhost:versions kiranchakravarthy$ rails --version 
Rails 4.2.6 
localhost:versions kiranchakravarthy$ rails _4.2.6_ new hello_world 
     create 
     create README.rdoc 
     create Rakefile 
     create config.ru 
     create .gitignore 
     create Gemfile 
/Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/2.3.0/erb.rb:864:in `eval': (erb):4: syntax error, unexpected '=' (SyntaxError) 
= gem.comment 
^
(erb):6: syntax error, unexpected '=', expecting keyword_end 
= gem.commented_out ? '# ' : '... 
^
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/2.3.0/erb.rb:864:in `result' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:116:in `block in template' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:53:in `render' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:62:in `block (2 levels) in invoke!' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:62:in `open' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:62:in `block in invoke!' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:116:in `invoke_with_conflict_check' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:60:in `invoke!' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions.rb:94:in `action' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:25:in `create_file' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:115:in `template' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/generators/rails/app/app_generator.rb:17:in `template' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/generators/rails/app/app_generator.rb:45:in `gemfile' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/generators/app_base.rb:132:in `build' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/generators/rails/app/app_generator.rb:186:in `create_root_files' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/commands/application.rb:17:in `<top (required)>' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/cli.rb:14:in `<top (required)>' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-4.2.6/bin/rails:9:in `<top (required)>' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/bin/rails:22:in `load' 
    from /Users/kiranchakravarthy/.rbenv/versions/2.3.1/bin/rails:22:in `<main>' 

Antwort

0

Try Rubin 2.3.1 über Ihre rbenv Neuinstallation