You are not logged in.
Pages: 1
I wrote a ruby program that uses gtk3, which I had installed from AUR using yaourt. Recently I noticed that the package has been orphaned, so I decided, possibly unwisely, to uninstall the AUR package and install the gem via 'gem install gtk3'. Unfortunately I get this result:
Building native extensions. This could take a while...
ERROR: Error installing gtk3:
ERROR: Failed to build gem native extension.
/usr/bin/ruby -r ./siteconf20150422-3325-14ntm49.rb 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 Windows... no
checking for gobject-2.0 version (>= 2.12.0)... yes
checking for gthread-2.0... yes
checking for unistd.h... yes
checking for io.h... no
checking for g_spawn_close_pid() in glib.h... yes
checking for g_thread_init() in glib.h... yes
checking for g_main_depth() in glib.h... yes
checking for g_listenv() in glib.h... yes
checking for rb_check_array_type() in ruby.h... yes
checking for rb_check_hash_type() in ruby.h... yes
checking for rb_exec_recursive() in ruby.h... yes
checking for rb_errinfo() in ruby.h... yes
checking for rb_sourcefile() in ruby.h... yes
checking for rb_sourceline() in ruby.h... yes
checking for ruby_set_current_source() in ruby.h... no
checking for rb_thread_call_without_gvl() in ruby.h... yes
checking for ruby_native_thread_p() in ruby.h... yes
checking for rb_thread_call_with_gvl() in ruby.h... yes
checking for rb_str_new_cstr() in ruby.h... yes
checking for rb_gc_register_mark_object() in ruby.h... yes
checking for rb_exc_new_str() in ruby.h... yes
checking for curr_thread in ruby.h,node.h... no
checking for rb_curr_thread in ruby.h,node.h... no
creating ruby-glib2.pc
creating glib-enum-types.c
creating glib-enum-types.h
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling rbglib_win32.c
compiling rbglib_ucs4.c
compiling glib-enum-types.c
glib-enum-types.c: In function 'g_win32_os_type_get_type':
glib-enum-types.c:85:9: error: 'G_WIN32_OS_ANY' undeclared (first use in this function)
{ G_WIN32_OS_ANY, "G_WIN32_OS_ANY", "any" },
^
glib-enum-types.c:85:9: note: each undeclared identifier is reported only once for each function it appears in
glib-enum-types.c:86:9: error: 'G_WIN32_OS_WORKSTATION' undeclared (first use in this function)
{ G_WIN32_OS_WORKSTATION, "G_WIN32_OS_WORKSTATION", "workstation" },
^
glib-enum-types.c:87:9: error: 'G_WIN32_OS_SERVER' undeclared (first use in this function)
{ G_WIN32_OS_SERVER, "G_WIN32_OS_SERVER", "server" },
^
Makefile:237: recipe for target 'glib-enum-types.o' failed
make: *** [glib-enum-types.o] Error 1
make failed, exit code 2
I found this bug report, but I can't tell if this is related or not.
I can successfully install other gems.
I tried going back to the AUR package, but now I get this error:
error: failed to commit transaction (conflicting files)
ruby-pkgconfig: /usr/lib/ruby/gems/2.2.0/cache/pkg-config-1.1.6.gem exists in filesystem
gem list produces this:
*** LOCAL GEMS ***
bigdecimal (1.2.7, 1.2.6)
io-console (0.4.3)
json (1.8.2, 1.8.1)
minitest (5.6.0, 5.4.3)
pkg-config (1.1.6)
power_assert (0.2.3, 0.2.2)
psych (2.0.13, 2.0.8)
rake (10.4.2)
rdoc (4.2.0)
test-unit (3.0.9, 3.0.8)
I ran 'gem uninstall pkg-config' and retried the AUR package install with the same result.
Last edited by deryl (2015-04-23 12:19:04)
Offline
Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_code
Offline
Your gem compilation hit known upstream bug https://github.com/ruby-gnome2/ruby-gnome2/issues/361 Here is a patch that fixes ruby-glib2 https://projects.archlinux.org/svntogit … ruby-glib2 I do not know if ruby-gtk3 should be patched or not (most likely not).
To fix "gem exists in filesystem" error you need to remove all the gems installed globally (to /usr/...). The best way is to use lostfiles package from AUR.
Last edited by anatolik (2015-04-23 02:53:08)
Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster
Offline
Thank you for the help. I was able to use lostfiles as suggested to locate the globally installed gems. After removing them, ruby-gtk3 install without issue.
Offline
Pages: 1