Ruby 2.0.0 gem install error
Hello,
I am having difficulties installing a gem on Ruby 2.0.0. I have done this on five other Ubuntu 16.04 computers with no errors, but my last two builds are giving me a challenge. I installed dependencies: sudo apt-get install zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev git-core bison - others have noted. The gem error is: Building native extensions. This could take a while... sudo gem install gtk2 -v 3.0.8 > ../gem.log ERROR: Error installing gtk2: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb checking for --enable-debug-build option... no checking for -Wall option to compiler... yes checking for -Waggregate-return option to compiler... yes checking for -Wcast-align option to compiler... yes checking for -Wextra option to compiler... yes checking for -Wformat=2 option to compiler... yes checking for -Winit-self option to compiler... yes checking for -Wlarger-than-65500 option to compiler... yes checking for -Wmissing-declarations option to compiler... yes checking for -Wmissing-format-attribute option to compiler... yes checking for -Wmissing-include-dirs option to compiler... yes checking for -Wmissing-noreturn option to compiler... yes checking for -Wmissing-prototypes option to compiler... yes checking for -Wnested-externs option to compiler... yes checking for -Wold-style-definition option to compiler... yes checking for -Wpacked option to compiler... yes checking for -Wp,-D_FORTIFY_SOURCE=2 option to compiler... yes checking for -Wpointer-arith option to compiler... yes checking for -Wswitch-default option to compiler... yes checking for -Wswitch-enum option to compiler... yes checking for -Wundef option to compiler... yes checking for -Wout-of-line-declaration option to compiler... no checking for -Wunsafe-loop-optimizations option to compiler... yes checking for -Wwrite-strings option to compiler... yes checking for rb_define_alloc_func() in ruby.h... yes checking for rb_block_proc() in ruby.h... yes checking for new allocation framework... yes checking for attribute assignment... no checking for rb_errinfo()... yes checking for cairo... yes checking for rb_cairo.h... yes checking for Windows... no checking for gtk+-2.0 version (>= 2.10.0)... yes checking for st.h... yes checking for ruby/st.h... yes checking for target... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/local/bin/ruby --enable-debug-build --disable-debug-build --with-pkg-config --without-pkg-config --with-override-variables --without-override-variables extconf.rb:80:in `<main>': can't find gdkkeysyms.h (RuntimeError) x11 Gem files will remain installed in /usr/local/lib/ruby/gems/2.0.0/gems/gtk2-3.0.8 for inspection. Results logged to /usr/local/lib/ruby/gems/2.0.0/gems/gtk2-3.0.8/ext/gtk2/gem_make.out I can post the configure output, the make output, and the make install output if needed. |
Could this be an incompatibility between the installed Gtk-2 libraries and the gem?
AFAIS, the current Gtk2 gem is 3.1.8. If you do not have special reasons to stick with 3.0.8, maybe just execute Code:
:~$ sudo gem install gtk2 Code:
user@machine:~$ locate gdkkeysyms.h Question for the forum direction: Should this be moved to “programming”? |
Hello,
Code:
locate gdkkeysyms.h Code:
sudo gem install gtk2 Code:
locate gdkkeysyms.h |
Good afternoon.
Quote:
Code:
sudo gem install gtk2 |
Code:
user@computer:~/lich_git/dr-scripts$ ruby -v |
Quote:
|
All times are GMT -5. The time now is 03:49 PM. |