Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Lich Install Problem on my Mac

  1. #1

    Default Lich Install Problem on my Mac

    So I'm going to play around with a free account for a little bit. I decided to try and get Lich installed on my Mac. I ran the diagnosis after I installed everything (supposedly) and got the following when I tried to install gtk2. I installed the gem without problem so I don't know why this won't work. I'm sad so I'm just using the browser frontend for now.

    $ gem install gtk2 -v 3.0.8
    Building native extensions. This could take a while...
    ERROR: Error installing gtk2:
    ERROR: Failed to build gem native extension.


    current directory: /Users/me/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/gtk2-3.0.8/ext/gtk2
    /Users/me/.rbenv/versions/2.2.5/bin/ruby -r ./siteconf20170820-41220-z7abz9.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... yes
    checking for -Wunsafe-loop-optimizations option to compiler... no
    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=/Users/me/.rbenv/versions/2.2.5/bin/$(RUBY_BASE_NAME)
    --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


    To see why this extension failed to compile, please check the mkmf.log which can be found here:


    /Users/me/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/gtk2-3.0.8/mkmf.log


    extconf failed, exit code 1


    Gem files will remain installed in /Users/me/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/gtk2-3.0.8 for inspection.
    Results logged to /Users/me/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/gtk2-3.0.8/gem_make.out
    Last edited by CrystalTears; 08-20-2017 at 02:39 PM.

  2. #2

    Default

    do this:

    gem list -v 3.0.8 | xargs gem uninstall -aIx
    gem install gtk2

    Then try the game.

  3. #3

    Default

    Quote Originally Posted by Risen View Post
    do this:

    gem list -v 3.0.8 | xargs gem uninstall -aIx
    gem install gtk2

    Then try the game.
    $ gem list -v 3.0.8 | xargs gem uninstall -aIx
    Successfully uninstalled test-unit-3.0.8
    Successfully uninstalled sqlite3-1.3.13
    Removing update_rubygems
    Successfully uninstalled rubygems-update-2.6.12
    ERROR: While executing gem ... (Gem::InstallError)
    gem "rdoc" cannot be uninstalled because it is a default gem

    $ gem install gtk2
    ERROR: While executing gem ... (Errno::EACCES)
    Permission denied @ rb_sysopen - /Users/me/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/gtk2-3.1.8/README

  4. #4

    Default

    A permissions error might be tied to using SUDO initially to install gems. If you did, we can correct that. If you didn't, something odd's involved. Let's check this. . .

    ls -al /Users/[me]/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems

    Paste that up here, please. Or if you want, send me a note.

    Don't forget to replace the colored portion with your actual username, though.
    Last edited by Risen; 08-22-2017 at 11:21 PM. Reason: colored portion explained

  5. #5

    Default

    total 0
    drwxr-xr-x 23 me admin 782 Aug 22 18:40 .
    drwxr-xr-x 8 me admin 272 Aug 19 14:49 ..
    drwxr-xr-x 8 me admin 272 Aug 20 12:27 atk-3.0.8
    drwxr-xr-x 6 me admin 204 Aug 19 14:52 atk-3.1.8
    drwxr-xr-x 13 me admin 442 Aug 19 14:52 cairo-1.15.9
    drwxr-xr-x 7 me admin 238 Aug 19 14:53 cairo-gobject-3.1.8
    drwxr-xr-x 9 me admin 306 Aug 20 12:28 gdk_pixbuf2-3.0.8
    drwxr-xr-x 7 me admin 238 Aug 19 14:55 gdk_pixbuf2-3.1.8
    drwxr-xr-x 7 me admin 238 Aug 19 14:55 gio2-3.1.8
    drwxr-xr-x 8 me admin 272 Aug 20 12:27 glib2-3.0.8
    drwxr-xr-x 8 me admin 272 Aug 19 14:52 glib2-3.1.8
    drwxr-xr-x 7 me admin 238 Aug 19 14:54 gobject-introspection-3.1.8
    drwxr-xr-x 9 me admin 306 Aug 20 13:22 gtk2-3.0.8
    drwxr-xr-x 9 root admin 306 Aug 20 13:00 gtk2-3.1.8
    drwxr-xr-x 11 me admin 374 Aug 20 12:24 minitest-5.4.3
    drwxr-xr-x 7 me admin 238 Aug 19 14:52 native-package-installer-1.0.4
    drwxr-xr-x 9 me admin 306 Aug 20 12:27 pango-3.0.8
    drwxr-xr-x 7 me admin 238 Aug 19 14:54 pango-3.1.8
    drwxr-xr-x 9 me admin 306 Aug 19 14:52 pkg-config-1.2.7
    drwxr-xr-x 13 me admin 442 Aug 20 12:24 power_assert-0.2.2
    drwxr-xr-x 3 me admin 102 Aug 19 14:49 rake-10.4.2
    drwxr-xr-x 3 me admin 102 Aug 19 14:49 rdoc-4.2.0
    drwxr-xr-x 16 root admin 544 Aug 20 13:00 sqlite3-1.3.13

  6. #6

    Default

    Quote Originally Posted by CrystalTears View Post
    total 0

    drwxr-xr-x 9 root admin 306 Aug 20 13:00 gtk2-3.1.8

    drwxr-xr-x 16 root admin 544 Aug 20 13:00 sqlite3-1.3.13

    Two hold outs. Let's correct that really quick. We'll use SUDO to correct, so you'll need to enter your password after the first command. The second one probably won't require it, unless you've set your system up super secure.

    sudo chown -R [me]:admin /Users/[me]/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/gtk2-3.1.8
    sudo chown -R [me]:admin /Users/[me]/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.13

    Remember to change [me] to your actual username. Four places.

    Then check your work. If no errors, when you run

    ls -al /Users/[me]/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems

    You should see everything you saw before except it both gtk2-3.1.8 and sqlite3-1.3.13 should say "drwxr-xr-x 3 me admin" instead of "drwxr-xr-x 3 root admin"

    If yes, install the gem again

    gem install gtk2

    Then try the game.

  7. #7

    Default

    Cheese and rice...

    I ran both sudos and everything showed up correctly with me admin instead of root. Then I tried to install the gem again...

    $ gem install gtk2
    Building native extensions. This could take a while...
    ERROR: While executing gem ... (Errno::EACCES)
    Permission denied @ rb_sysopen - /Users/me/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/gtk2-3.1.8/gem_make.out


  8. #8

    Default

    Ok, let's get tough then.

    sudo chown -R [me]:admin /Users/[me]/.rbenv/versions/2.2.5/lib/ruby/gems/

    and then, again -

    gem install gtk2
    Last edited by Risen; 08-24-2017 at 05:15 PM. Reason: reminder for next step

  9. #9

    Default

    FML. I don't know whether to laugh or cry.

    It said I successfully installed the gem.

    Welcome to Mac OS X and Lich Diagnostics
    Run at Thu Aug 24 19:36:31 EDT 2017




    ################################################## ############
    ## Item ## Version ## Status ##
    ################################################## ############
    ## Your OS is supported ## 10.11.6 ####
    ## You have xQuartz installed ## 2.7.112 ####
    ## You have Command Line Tools ## 8.2.0.0.1 ####
    ## Your Ruby will work ## 2.2.5 ####
    ## Homebrew is installed ## 1.3.1 ####
    ## Ruby mgr rbenv is installed ## 1.1.1 ####
    ## Cario is present ## 1.14.10 ####
    ## gtk+ is present ## 2.24.28 ####
    ## sqlite3 is present ## 1.3.13 ####
    ## Something is wrong. No gtk2? ## ----- ####
    ## You have Lich ## ####
    ## You have Avalon ## ####
    ################################################## ############


    $ sudo ruby lich/lich.rbw --gemstone --avalon
    /Users/me/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/gtk2-3.1.8/lib/gtk2.rb:13:in `init': Cannot open display: /private/tmp/com.apple.launchd.xyWHslCf9L/org.macosforge.xquartz:0 (Gtk::InitError)
    from /Users/me/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/gtk2-3.1.8/lib/gtk2.rb:13:in `<top (required)>'
    from /Users/me/.rbenv/versions/2.2.5/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:133:in `require'
    from /Users/me/.rbenv/versions/2.2.5/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
    from /Users/me/.rbenv/versions/2.2.5/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:40:in `require'
    from lich/lich.rbw:545:in `<main>'


  10. #10

    Default

    Did you run the expanded diagnostics? If you did, put up the environment variables after that summary report, please.

    I should probably expand a bit - that summary report says GTK2 not found - it's a logic error. I'll have to get the diag file updated. You do have it. And it did install. But something is preventing it from running properly. We can fix this!
    Last edited by Risen; 08-24-2017 at 07:57 PM. Reason: Expanding - hope everywhere

Similar Threads

  1. install problem
    By allen in forum The Lich Project
    Replies: 5
    Last Post: 07-21-2019, 07:01 AM
  2. New install, connection problem
    By Nihiladrem in forum The Lich Project
    Replies: 4
    Last Post: 06-22-2018, 02:16 PM
  3. Can get Lich to install on my new pc
    By momodig in forum The Lich Project
    Replies: 7
    Last Post: 03-15-2016, 08:20 PM
  4. linux install of lich
    By a_man_ in forum General Gemstone
    Replies: 5
    Last Post: 06-17-2011, 02:38 AM
  5. Need help getting Lich to install
    By Prosperanna in forum The Lich Project
    Replies: 5
    Last Post: 12-05-2009, 08:46 PM

Tags for this Thread

Posting Permissions

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