我是错误的,而我正在做帕德里诺开始。
我多次卸载并安装了gems、rvm和ruby,甚至还安装了bundler,但是每次出现错误时,未初始化常量NameError::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
': 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`‘
发布于 2013-12-05 09:47:06
我使用适当的RVM-ruby版本解决了这个问题。对于我的应用程序,需要ruby-1.9.3.p194。现在我的帕德里诺开始工作还不错。
https://stackoverflow.com/questions/20368436
复制相似问题