View Full Version : Lich Install Problem on my Mac
CrystalTears
08-20-2017, 03:38 PM
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
Risen
08-21-2017, 11:32 PM
do this:
gem list -v 3.0.8 | xargs gem uninstall -aIx
gem install gtk2
Then try the game.
CrystalTears
08-22-2017, 07:44 PM
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
Risen
08-23-2017, 12:20 AM
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.
CrystalTears
08-23-2017, 05:30 PM
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
Risen
08-24-2017, 01:35 AM
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.
CrystalTears
08-24-2017, 06:09 PM
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
:(
Risen
08-24-2017, 06:14 PM
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
CrystalTears
08-24-2017, 08:39 PM
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>'
:banghead:
Risen
08-24-2017, 08:52 PM
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!
CrystalTears
08-24-2017, 08:56 PM
HOMEBREW_VERSION: 1.3.1
ORIGIN: https://github.com/Homebrew/brew
HEAD: 69799d97b1e7314912b2ee234dec2c179c5fb969
Last commit: 3 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 741ef382111412201d581d7e5bf39bf7b27a87e4
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: dual-core 64-bit penryn
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.10.1 => /Library/Developer/CommandLineTools/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/local/opt/python/libexec/bin/python => /usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /Users/me/.rbenv/shims/ruby => /Users/me/.rbenv/versions/2.2.5/bin/ruby
Java: 1.7.0_25, 1.6.0_65-b14-468
macOS: 10.11.6-x86_64
Xcode: N/A
CLT: 8.2.0.0.1.1480973914
X11: 2.7.11 => /opt/X11
RubyGems Environment:
- RUBYGEMS VERSION: 2.6.12
- RUBY VERSION: 2.2.5 (2016-04-26 patchlevel 319) [x86_64-darwin15]
- INSTALLATION DIRECTORY: /Users/me/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0
- USER INSTALLATION DIRECTORY: /Users/me/.gem/ruby/2.2.0
- RUBY EXECUTABLE: /Users/me/.rbenv/versions/2.2.5/bin/ruby
- EXECUTABLE DIRECTORY: /Users/me/.rbenv/versions/2.2.5/bin
- SPEC CACHE DIRECTORY: /Users/me/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Users/me/.rbenv/versions/2.2.5/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-15
- GEM PATHS:
- /Users/me/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0
- /Users/me/.gem/ruby/2.2.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/me/.rbenv/versions/2.2.5/bin
- /usr/local/Cellar/rbenv/1.1.1/libexec
- /Users/me/.rbenv/shims
- /Users/me/.rbenv/shims
- /Users/me/.rbenv/shims
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /opt/X11/bin
Risen
08-24-2017, 09:04 PM
Ok, let's dig a bit further just to be sure of a thing or two.
ls -al /Users/me/.rbenv
ls -al /Users/me/.rbenv/versions
ls -al /Users/me/.rbenv/versions/2.2.5
CrystalTears
08-24-2017, 09:20 PM
$ ls -al /Users/me/.rbenv
total 8
drwxr-xr-x 5 me admin 170 Aug 19 14:50 .
drwxrwxr-x 55 me admin 1870 Aug 23 16:42 ..
drwxr-xr-x 9 me admin 306 Aug 24 19:36 shims
-rw-r--r-- 1 me admin 6 Aug 24 19:27 version
drwxr-xr-x 3 me admin 102 Aug 19 14:42 versions
$ ls -al /Users/me/.rbenv/versions
total 0
drwxr-xr-x 3 me admin 102 Aug 19 14:42 .
drwxr-xr-x 5 me admin 170 Aug 19 14:50 ..
drwxr-xr-x 6 me admin 204 Aug 19 14:49 2.2.5
$ ls -al /Users/me/.rbenv/versions/2.2.5
total 0
drwxr-xr-x 6 me admin 204 Aug 19 14:49 .
drwxr-xr-x 3 me admin 102 Aug 19 14:42 ..
drwxr-xr-x 9 me admin 306 Aug 22 18:40 bin
drwxr-xr-x 3 me admin 102 Aug 19 14:49 include
drwxr-xr-x 5 me admin 170 Aug 24 19:25 lib
drwxr-xr-x 5 me admin 170 Aug 19 14:50 share
Risen
08-24-2017, 09:34 PM
Ok, let's blow away the 3.1.8 gem (because we had some problems with it) and reinstall it before we do anything in particlular.
gem uninstall gtk2
gem clean
cd /Users/me/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/
rm -R ./gtk2-3.1.8
cd /Users/me/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static
rm -R ./gtk2-3.1.8
cd
If there are any errors up to this point, let me know. If not:
gem install gtk2
Then try the game.
CrystalTears
08-24-2017, 10:24 PM
$ gem install gtk2
Fetching: gtk2-3.1.8.gem (100%)
Building native extensions. This could take a while...
Successfully installed gtk2-3.1.8
Parsing documentation for gtk2-3.1.8
Installing ri documentation for gtk2-3.1.8
Done installing documentation for gtk2 after 4 seconds
1 gem installed
YAY!
Then <sigh>
I got this again:
$ 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>'
I'm just going to sit in the corner and rock myself in misery.
Risen
08-24-2017, 10:26 PM
Sending you a quick PM.
I'd be very interested in knowing the outcome of this, since I'm having a similar issue.
Risen
09-21-2017, 05:21 PM
I'd be very interested in knowing the outcome of this, since I'm having a similar issue.
With WINE and Wizard? It's very system specific. Haven't got this one solved. Yet.
Jhynnifer
09-21-2017, 05:33 PM
I think a lot of people have run into this same issue and resorted to running VM with a windows box. I kept running into a similar issue and eventually gave up.
You should reach out to Maags, though. If I recall correctly, she had issues with VM and a windows box and eventually started doing WINE and SF or Wine and Avalon. It's been a while. She's super friendly and if she doesn't know the answer, she knows who to get you in touch with.
Redacts
12-11-2017, 10:26 PM
Resurrecting this thread because it's the most recent I can find related to what I was experiencing.
For me I was trying to get Stormfront to work with Wine because I hate Avalon and figured this has to be doable. I'm running on Sierra.
I was tracking this thread because my issues seemed very similar, but no one seemed to have a resolution. I kept trying to gem install gtk2 and it was failing. So I decided to run ruby with a debug -d flag (ruby -d ~/lich/lich.rbw). It spit back a bunch of warnings, but then I saw a bunch of really interesting lines...
Exception `LoadError' at /Users/[Me]/.rbenv/versions/2.2.5/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54 - dlopen(/Users/[Me]/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-16/2.2.0-static/gtk2-3.2.1/gtk2.bundle, 9): Library not loaded: /usr/local/opt/gdk-pixbuf/lib/libgdk_pixbuf-2.0.0.dylib
Referenced from: /usr/local/opt/gtk+/lib/libgtk-quartz-2.0.0.dylib
Reason: Incompatible library version: libgtk-quartz-2.0.0.dylib requires version 3603.0.0 or later, but libgdk_pixbuf-2.0.0.dylib provides version 3401.0.0 - /Users/[Me]/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-16/2.2.0-static/gtk2-3.2.1/gtk2.bundle
A bunch of them like that actually. So it made me think well something must be messed up with that library.
I ran Brew Doctor which had a bunch of " You have unlinked kegs in your Cellar" one of which was surprise, gdk_pixbuf
So I did a brew upgrade gdk_pixbuf and it was up to date. So I did
brew link --overwrite gdk-pixbuf
After doing that I was able to run ruby ~/lich/lich.rbw and get the launcher to load, and when selecting Stormfront I can move forward. Unfortunately Stormfront loads and it just kinds of hangs out with no data in the windows. Still figuring that part out. Going to test Wizard out and see if I can get that working and double back to stormfront. I had it working before with ruby 2.0.0, but none of the ;go2 commands worked, and from what I gathered that was a ruby version issue.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.