Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundle成功,可是运行出错。 #63

Open
honglei opened this issue May 26, 2014 · 3 comments
Open

bundle成功,可是运行出错。 #63

honglei opened this issue May 26, 2014 · 3 comments

Comments

@honglei
Copy link

honglei commented May 26, 2014

honglei@ubuntu:~/www.emberjs.cn-master$ bundle exec rake preview
== The Middleman is loading
/home/honglei/www.emberjs.cn-master/config.rb:4:in `require': /home/honglei/www.emberjs.cn-master/lib/toc.rb:88: invalid multibyte char (US-ASCII) (SyntaxError)
/home/honglei/www.emberjs.cn-master/lib/toc.rb:85: invalid multibyte char (US-ASCII)
/home/honglei/www.emberjs.cn-master/lib/toc.rb:85: syntax error, unexpected $end, expecting keyword_end
            编辑页面</a>
              ^
    from /home/honglei/www.emberjs.cn-master/config.rb:4:in `block in initialize'
    from /home/honglei/www.emberjs.cn-master/config.rb:4:in `each'
    from /home/honglei/www.emberjs.cn-master/config.rb:4:in `initialize'
    from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/core_extensions/extensions.rb:162:in `instance_eval'
    from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/core_extensions/extensions.rb:162:in `initialize'
    from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/core_extensions/data.rb:35:in `initialize'
    from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/application.rb:184:in `initialize'
    from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/core_extensions/request.rb:52:in `new'
    from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/core_extensions/request.rb:52:in `inst'
    from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/preview_server.rb:103:in `new_app'
    from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/preview_server.rb:21:in `start'
    from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/cli/server.rb:79:in `server'
    from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
    from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
    from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
    from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
    from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/cli.rb:77:in `method_missing'
    from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/command.rb:29:in `run'
    from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/command.rb:128:in `run'
    from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
    from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
    from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
    from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/cli.rb:22:in `start'
    from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/bin/middleman:18:in `<top (required)>'
    from /usr/local/bin/middleman:23:in `load'
    from /usr/local/bin/middleman:23:in `<main>'
honglei@ubuntu:~/www.emberjs.cn-master$ 

不太了解ruby,看代码好像没有问题。

@towerhe
Copy link
Member

towerhe commented May 26, 2014

这个错误应该是因为有中文导致的,你能把你的ruby版本告诉我吗?

@honglei
Copy link
Author

honglei commented May 27, 2014

honglei@ubuntu:/ember-crud-master$ ruby -version
ruby 1.9.3p484 (2013-11-22 revision 43786) [i686-linux]
-e:1:in <main>': undefined local variable or methodrsion' for main:Object (NameError)
honglei@ubuntu:
/ember-crud-master$

@towerhe
Copy link
Member

towerhe commented May 28, 2014

建议你使用ruby 2.0+试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants