Results 1 to 5 of 5

Thread: GTK2 Error on Mac/Avalon

  1. Default GTK2 Error on Mac/Avalon

    Just bought a Mac and trying to get Lich up and running. Basically everything works except things like ;narost. And I can't seem to get lnet thoughts/chat out of the main window and into its own. Here is the error I am getting when trying to use ;narost:

    error: ruby-gtk bindings are not installed or failed to load

    Thing is, I followed all the steps outlined in the website and gtk definitely installed the first time I did it.

    When I've tried going back to re-install, I get a long error message. If it would be helpful to post it, I can do that. But I felt pretty certain that gtk installed properly the first time.

    I do have X11 running in my utilities.

    I am running OS X Yosemite 10.10.2

    Last question: is there any way to run lich on a Mac other than by opening the terminal and entering the sudo command?

    Thanks all.

  2. Default

    Might as well post the error log. Here it is:

    ERROR: Error installing gtk2:
    ERROR: Failed to build gem native extension.

    /usr/local/opt/ruby/bin/ruby -r ./siteconf20150805-418-rz8zbt.rb extconf.rb
    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 -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 Win32 OS... 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_blocking_region() in ruby.h... no
    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 glib-enum-types.c
    warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Wunknown-warning-option]
    glib-enum-types.c:1181:9: error: use of undeclared identifier 'G_WIN32_OS_ANY'
    { G_WIN32_OS_ANY, "G_WIN32_OS_ANY", "any" },
    ^
    glib-enum-types.c:1182:9: error: use of undeclared identifier 'G_WIN32_OS_WORKSTATION'
    { G_WIN32_OS_WORKSTATION, "G_WIN32_OS_WORKSTATION", "workstation" },
    ^
    glib-enum-types.c:1183:9: error: use of undeclared identifier 'G_WIN32_OS_SERVER'
    { G_WIN32_OS_SERVER, "G_WIN32_OS_SERVER", "server" },
    ^
    1 warning and 3 errors generated.
    make: *** [glib-enum-types.o] Error 1

    make failed, exit code 2

    Gem files will remain installed in /usr/local/lib/ruby/gems/2.2.0/gems/glib2-2.2.0 for inspection.
    Results logged to /usr/local/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0/glib2-2.2.0/gem_make.out

  3. #3

    Default

    try using ruby 2.0 instead of 2.2

  4. Default

    Hi Mettler. Did you ever get this to work? I am having the same troubles with the lnet chats/thoughts

  5. Default

    Quote Originally Posted by Senolen View Post
    Hi Mettler. Did you ever get this to work? I am having the same troubles with the lnet chats/thoughts
    I have not been able to get it to work. I've been trying other fixes, but will go ahead and give ruby 2.0 a try and see if that works.

Similar Threads

  1. Lich On Mac - gtk2 help!
    By panapple in forum The Lich Project
    Replies: 8
    Last Post: 12-05-2019, 01:24 PM
  2. Lich Error --- error: no map database found
    By Elgrim in forum The Lich Project
    Replies: 4
    Last Post: 08-27-2017, 10:22 PM
  3. Possible GTK2 Issue
    By Omrii in forum The Lich Project
    Replies: 9
    Last Post: 10-12-2016, 09:53 PM
  4. gtk2 not installing?
    By FlayedAngel in forum The Lich Project
    Replies: 6
    Last Post: 04-04-2016, 05:10 PM
  5. error: SpellRanks.load: dump format error(0x9)
    By TheDude in forum The Lich Project
    Replies: 15
    Last Post: 03-14-2014, 04:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •