Rubycas服务器无法在ruby 1.9.2上运行



试图解决这个问题,特别是基于sinatara 的rubycas服务器

运行rubycas服务器时出现此错误

rubycas服务器/usr/local/rvm/rubes/ruby-1.9.2-p290/lib/rube/1.9.1/psyc.rb:148:在parse': couldn't parse YAML at line 167 column 2 (Psych::SyntaxError) from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:in parse_stream'中来自/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/rube/1.9.1/psyc.rb:119:在parse' from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:106:in加载中'从/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rubeycas-server-1.0.1/lib/casserver/server.rb:134:在'中的load_config_file' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/rubycas-server-1.0.1/lib/casserver/server.rb:279:in块中来自/usr/local/rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.2/lib/sinatra/base.rb:1273:在configure' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/rubycas-server-1.0.1/lib/casserver/server.rb:278:in'中来自/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rubeycas-server-1.0.1/lib/casserver/server.rb:12:在<module:CASServer>' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/rubycas-server-1.0.1/lib/casserver/server.rb:11:in'中来自/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require'来自/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rubeycas-server-1.0.1/lib/caserver.rb:10:在<top (required)>' from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in中需要'来自/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/rubycas-server-1.0.1/bin/rubycas-server:30:in'来自/usr/local/rvm/gems/ruby-1.9.2-p290/bin/rubycas-server:19:在load' from /usr/local/rvm/gems/ruby-1.9.2-p290/bin/rubycas-server:19:in'中

我找到了这个解决方案:

YAML::ENGINE.yamler="syck"

但这也不起作用,如果有人已经尝试过这个东西并找到了解决方案,请告诉我

感谢

我解决了这个问题,我的/etc/rubycas-server/config.yml在一些哈希之间没有空格,我这样做并验证了我的yaml,所有的工作。。。

相关内容

  • 没有找到相关文章

最新更新