Unable to use rubycas-server on ruby 2.3.1

147 views
Skip to first unread message

Rajesh Kumar

unread,
Nov 4, 2016, 5:31:31 PM11/4/16
to RubyCAS
I am running ruby 2.3.1, and following the example from https://github.com/rubycas/rubycas-server/wiki/Quick-Start, and I am getting following error. I didn't find any solution after doing a bunch of search online, though saw many reports of the same issue from others. Is there a solution/workaround for this?

bundle exec rubycas-server -c  ./config.yml

=> Using custom config file "./config.yml"
/usr/local/rvm/gems/ruby-2.3.1/gems/r18n-core-1.1.11/lib/r18n-core/yaml_methods.rb:34:in `detect_yaml_private_type': uninitialized constant Psych::ENGINE (NameError)
    from /usr/local/rvm/gems/ruby-2.3.1/gems/r18n-core-1.1.11/lib/r18n-core/yaml_loader.rb:42:in `initialize'
    from /usr/local/rvm/gems/ruby-2.3.1/gems/r18n-core-1.1.11/lib/r18n-core.rb:160:in `new'
    from /usr/local/rvm/gems/ruby-2.3.1/gems/r18n-core-1.1.11/lib/r18n-core.rb:160:in `<module:R18n>'
    from /usr/local/rvm/gems/ruby-2.3.1/gems/r18n-core-1.1.11/lib/r18n-core.rb:40:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-2.3.1/gems/sinatra-r18n-1.1.11/lib/sinatra/r18n.rb:22:in `<top (required)>'
    from /home/sdx-user/rubycas-server/lib/casserver/base.rb:2:in `<top (required)>'
    from /home/sdx-user/rubycas-server/lib/casserver/server.rb:3:in `<top (required)>'
    from /home/sdx-user/rubycas-server/lib/casserver.rb:18:in `require'
    from /home/sdx-user/rubycas-server/lib/casserver.rb:18:in `<top (required)>'
    from /home/sdx-user/rubycas-server/bin/rubycas-server:28:in `require'
    from /home/sdx-user/rubycas-server/bin/rubycas-server:28:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-2.3.1/bin/rubycas-server:23:in `load'
    from /usr/local/rvm/gems/ruby-2.3.1/bin/rubycas-server:23:in `<main>'
    from /usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
    from /usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'

Environment

    Bundler   1.13.6
    Rubygems  2.5.1
    Ruby      2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
    GEM_HOME  /usr/local/rvm/gems/ruby-2.3.1
    GEM_PATH  /usr/local/rvm/gems/ruby-2.3.1:/usr/local/rvm/gems/ruby-2.3.1@global
    RVM       1.27.0 (latest)
    Git       2.7.4
    rubygems-bundler (1.4.4)

Matt Campbell

unread,
Nov 4, 2016, 5:46:28 PM11/4/16
to RubyCAS
Having run rubycas-server for a long time, I abandoned it last year for CASino, which is a much cleaner code base, has all the same features plus more, and is actively maintained.

Rajesh Kumar

unread,
Nov 5, 2016, 11:49:48 AM11/5/16
to RubyCAS
Thanks Matt. I will take a look at CASino. 
Reply all
Reply to author
Forward
0 new messages