首页 文章

.rvm / gems / ruby-2.0.0-p353 / gems / configatron-2.9.1 / lib / configatron / store.rb:328:in“<class:Store>”:未初始化的常量Psych :: Syck(NameError)

提问于
浏览
0

我在做padrino启动时遇到错误 .

我卸载并安装了很多次gems,rvm和ruby甚至捆绑器然后安装,但每次都会收到错误 uninitialized constant Psych::Syck (NameError)

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`':ininitialized constant Psych :: Syck(NameError)来自/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/configatron-2.9.1/lib/configatron/store.rb:2:in <class:Configatron>'
来自/ 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 <top(required)>'
from /home/bharath/.rvm/gems/ruby-2.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:在block(2级)的require'中来自/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/ lib / bundler / runtime.rb:70:ineach'来自/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in阻止在'/ from /home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bun dler / runtime.rb:59:ineach'来自/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in require'
来自/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler.rb:132:inrequire'来自/ home / bharath / workspace / consumer_api /config/boot.rb:17:in <top(required)>'
from /home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/padrino-core-0.10.7/ lib / padrino-core / cli / base.rb:23:inrequire'来自/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/padrino-core-0.10.7/lib/padrino-core /cli/base.rb:23:in开头'从/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.15.4/lib/thor/task.rb :27:inrun'来自/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.15.4/lib/thor/invocation.rb:120:in invoke_task'
来自/home/bharath/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.15.4/lib/thor.rb:275:indispatch'来自/home/bharath/.rvm/gems/ruby-2.0 .0-p353 / gems / thor-0.15.4 / lib / thor / base.rb:425:在开头'从/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:in load'
from /home/bharath/.rvm /gems/ruby-2.0.0-p353/bin/padrino:23:in'来自/home/bharath/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in eval'<br / >来自/home/bharath/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in'

1 回答

  • 0

    我使用适当的RVM-ruby版本解决了这个问题 . 对于我的应用程序,需要ruby-1.9.3.p194 . 现在我的padrino开始工作正常 .

相关问题