Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566690 - app-editors/diakonos RUBY_TARGETS="ruby21" - `require': cannot load such file -- curses (LoadError)
Summary: app-editors/diakonos RUBY_TARGETS="ruby21" - `require': cannot load such file...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2015-11-24 05:58 UTC by Pistos
Modified: 2016-07-23 18:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pistos 2015-11-24 05:58:20 UTC
If you set RUBY_TARGETS="ruby21" in your make.conf, Portage will happily compile app-editors/diakonos.  However, Diakonos requires curses to run.  curses is included in the stdlib of Ruby 2.0, but it needs to be installed as a gem for Ruby 2.1+.

$ diakonos
/usr/lib64/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- curses (LoadError)
        from /usr/lib64/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/lib64/ruby/site_ruby/2.1.0/diakonos.rb:16:in `<top (required)>'
        from /usr/lib64/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/lib64/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/bin/diakonos:3:in `<main>'
Comment 1 Hans de Graaff gentoo-dev Security 2016-07-23 18:26:12 UTC
This is now fixed by adding the gem and letting diakonos depend on it.