Issues running Lich on OSX 03/21/2018 08:43 PM CDT
I'm dropping by the game for the first time in years. I just did a manual install of Lich on my Macbook running Sierra 10.12.6. Everything seemed to go swimmingly, then this happened:

annies-MacBook-Pro:~ anniemarley$ sudo ruby lich/lich.rbw --gemstone --avalon
Password:
/Users/anniem/.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: (Gtk::InitError)
from /Users/anniem/.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/anniem/.rbenv/versions/2.2.5/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `require'
from /Users/anniem/.rbenv/versions/2.2.5/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
from /Users/anniem/.rbenv/versions/2.2.5/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:39:in `require'
from lich/lich.rbw:545:in `<main>'

Ran the lich diagnostics script:

##############################################################
## Item ## Version ## Status ##
##############################################################
## Your OS is supported ## 10.12.6 ## ✔ ##
## You have xQuartz installed ## 2.7.112 ## ✔ ##
## You have Command Line Tools ## 9.2.0.0.1 ## ✔ ##
## Your Ruby will work ## 2.2.5 ## ✔ ##
## Homebrew is installed ## 1.5.12 ## ✔ ##
## Ruby mgr rbenv is installed ## 1.1.1 ## ✔ ##
## Cario is present ## 1.14.12 ## ✔ ##
## gtk+ is present ## 2.24.28 ## ✔ ##
## sqlite3 is present ## 1.3.13 ## ✔ ##
## Something is wrong. No gtk2? ##
## ✘ ##
## You have Lich ## ## ✔ ##
## You have Avalon ## ## ✔ ##
##############################################################

But my gem list says otherwise.

* LOCAL GEMS *

atk (3.1.8)
bigdecimal (1.2.6)
cairo (1.15.12)
cairo-gobject (3.1.8)
gdk_pixbuf2 (3.1.8)
gio2 (3.1.8)
glib2 (3.1.8)
gobject-introspection (3.1.8)
gtk2 (3.1.8)
io-console (0.4.3)
json (1.8.1)
minitest (5.4.3)
native-package-installer (1.0.6)
pango (3.1.8)
pkg-config (1.2.9)
power_assert (0.2.2)
psych (2.0.8)
rake (10.4.2)
rdoc (4.2.0)
sqlite3 (1.3.13)
test-unit (3.0.8)
annies-MacBook-Pro:

Any help is appreciated -- I'm over my head at this point.
Reply
Re: Issues running Lich on OSX 03/21/2018 08:47 PM CDT
Hi there, and welcome home!

let's see what I can do to assist. The very first thing I want you to try is simply to log out (close) all terminal windows, then open up a fresh / new terminal window and try again.

You have to close out of all of them, first, though - don't keep any sessions open.

Second, if that doesn't work - go ahead and run the extra diagnostics portion of the diag file - and send the text file that it creates on your desktop to me (doug at play dot net), and I'll guide in from there.

Doug
Reply
Re: Issues running Lich on OSX 03/21/2018 08:58 PM CDT
That worked perfectly and I feel very silly. Thank you!
Reply
Re: Issues running Lich on OSX 03/21/2018 09:32 PM CDT
Absolutely no worries. Enjoy and good luck!

Doug
Reply