首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >.rvm/gems/ruby-2.0.0-p353/gems/configatron-2.9.1/lib/configatron/store.rb:328:in `<class:Store>':未初始化常量精神病学::Syck (NameError)

.rvm/gems/ruby-2.0.0-p353/gems/configatron-2.9.1/lib/configatron/store.rb:328:in `<class:Store>':未初始化常量精神病学::Syck (NameError)
EN

Stack Overflow用户
提问于 2013-12-04 06:21:04
回答 1查看 380关注 0票数 0

我是错误的,而我正在做帕德里诺开始。

我多次卸载并安装了gems、rvm和ruby,甚至还安装了bundler,但是每次出现错误时,未初始化常量NameError::Syck (NameError)

代码语言:javascript
复制
bharath@bharath-HP-ProBook-6450b:~/workspace/consumer_api$ padrino start 

/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/configatron-2.9.1/lib/configatron/store.rb:328:in ': uninitialized constant Psych::Syck (NameError) from /home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/configatron-2.9.1/lib/configatron/store.rb:2:in‘from /home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/configatron-2.9.1/lib/configatron/store.rb:1:in' from /home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/configatron-2.9.1/lib/configatron.rb:5:in’from /home/bharath/..rvm/gems/ruby2.0。0-p353/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:inrequire' from /home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:inblock (2级)在require中的/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:ineach' from /home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:inblock in require中的/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/中bundler/runtime.rb:59:ineach' from /home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:inrequire‘来自/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler.rb:132:inrequire' from /home/bharath/workspace/consumer\_api/config/boot.rb:17:in’来自/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/padrino-core-0.10.7/lib/padrino-core/cli/base.rb:23:inrequire' from /home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/padrino-core-0.10.7/lib/padrino-core/cli/base.rb:23:instart‘从/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.15.4/lib/thor/task.rb:27:inrun' from /home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.15.4/lib/thor/invocation.rb:120:ininvoke_task‘到/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.15.4/lib/thor.rb:275:indispatch' from /home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.15.4/lib/thor/base.rb:425:instart’从/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/padrino-core-0.10.7/bin/padrino:9:in' from /home/bharath/.rvm/gems/ruby-2.0.0-p353/bin/padrino:23:inload‘从/home/bharath/.rvm/gems/ruby-2.0.0-p353/bin/padrino:23:in' from /home/bharath/.rvm/gems/ruby-2.0.0-p353/bin/ruby\_executable\_hooks:15:ineval’到/home/bharath/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in`‘

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-12-05 09:47:06

我使用适当的RVM-ruby版本解决了这个问题。对于我的应用程序,需要ruby-1.9.3.p194。现在我的帕德里诺开始工作还不错。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20368436

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档