document some workarounds for working with a recent ruby (2.3.p112 on
authorGuillaume Cottenceau <gcottenc@gmail.com>
Tue, 14 Feb 2017 13:37:15 +0000 (14:37 +0100)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Tue, 14 Feb 2017 13:37:15 +0000 (14:37 +0100)
ubuntu 16.04)

INSTALL

diff --git a/INSTALL b/INSTALL
index f4ba891..71cc763 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -40,6 +40,19 @@ Type this as normal user:
  # cd ext
  # ruby extconf.rb && make
 
+If that fails on missing GTK header file (gtk.h), you can try to
+inject cflags with such a command:
+
+ # perl -pi -e 's/(CXXFLAGS.*)/$1 `pkg-config --cflags gtk+-2.0`/' Makefile
+ # make
+
+If that still fails on redefinition of struct re_registers, you can
+try to workaround with:
+
+ # cp /usr/include/ruby-2.3.0/ruby.h .
+ # perl -pi -e 's/.*HAVE_RUBY_ENCODING_H.*//' ruby.h
+ # make
+
 And type this as superuser:
 
  $ ruby setup.rb install