Monday, June 7, 2010

emacs: "murrine_style_draw_box: assertion `height >= -1 failed" solved

The annoying warnings of emacs on Ubuntu 10.4:

** (emacs:23587): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed

can be fixed by modifying the following line in /usr/share/themes/Ambiance/gtk-2.0/gtkrc from:

GtkRange::trough-under-steppers = 0


GtkRange::trough-under-steppers = 1

Thanks to Alf on

Sunday, June 6, 2010

Building Ruby: readline and tk

So I installed libreadline5-dev instead of libreadline6-dev:

$ sudo apt-get remove libreadline6-dev
$ sudo apt-get install libreadline5-dev

Then ext/readline/extconf.rb seems happy:

$ cd ext/readline
$ ruby extconf.rb
checking for tgetnum() in -lncurses... yes
checking for readline/readline.h... yes
checking for readline/history.h... yes
checking for readline() in -lreadline... yes

And, for tk support, the simplest way is to download ActiveTcl from and install it. ext/tk/extconf.rb looks for ActiveTcl.

Friday, June 4, 2010

Ruby now rejects to link readline 6

It took a while for me to figure out why I can't enable readline in ruby any more.
The revision 28118 (06/01/2010) has changed readline/extconf.rb to reject readline V6.

According to ruby-core:25272, it is addressing a GPLv3 issue. Here's from the original post:


Recently readline 6.0 was released and its license was changed from GPLv2+ (GPL version 2 and any later) to GPLv3+ [1][2]
Unfortunately Ruby's license is still under GPLv2 and Ruby's original license [3], which is incompatible with GPLv3 [4]. So unless Ruby's license is changed to "GPLv2+ or Ruby's original license" or so , Ruby's readline module cannot be shipped any more. Note that "Ruby's original license" is regarded as incompatible with GPL [5].

So please change the Ruby's license to GPLv3 (and GPLv2) compat.