Ubuntu Lich install - two new builds not working 08/13/2017 08:19 AM CDT
Hello,

I have successfully install Lich on 5 Ubuntu 16.04 computers. However, I have two brand new builds the gtk2 -v 3.0.8 gem fails to build:

user@britt-X550CA:~/ruby-2.0.0-p648$ gem list

* LOCAL GEMS *

atk (3.0.8)
bigdecimal (1.2.0)
cairo (1.15.9)
gdk_pixbuf2 (3.0.8)
glib2 (3.0.8)
io-console (0.4.2)
json (1.7.7)
minitest (4.3.2)
native-package-installer (1.0.4)
pango (3.0.8)
pkg-config (1.2.6)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
sqlite3 (1.3.13) - installs fine
test-unit (2.0.0.0)


user@britt-X550CA:~/ruby-2.0.0-p648$ sudo gem install gtk2 -v 3.0.8
Fetching: pkg-config-1.2.6.gem (100%)
Successfully installed pkg-config-1.2.6
Fetching: glib2-3.0.8.gem (100%)
Building native extensions. This could take a while...
Successfully installed glib2-3.0.8
Fetching: atk-3.0.8.gem (100%)
Building native extensions. This could take a while...
Successfully installed atk-3.0.8
Fetching: native-package-installer-1.0.4.gem (100%)
Successfully installed native-package-installer-1.0.4
Fetching: cairo-1.15.9.gem (100%)
Building native extensions. This could take a while...
Successfully installed cairo-1.15.9
Fetching: pango-3.0.8.gem (100%)
Building native extensions. This could take a while...
Successfully installed pango-3.0.8
Fetching: gdk_pixbuf2-3.0.8.gem (100%)
Building native extensions. This could take a while...
Successfully installed gdk_pixbuf2-3.0.8
Fetching: gtk2-3.0.8.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing gtk2:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby 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 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=/usr/local/bin/ruby
--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

Gem files will remain installed in /usr/local/lib/ruby/gems/2.0.0/gems/gtk2-3.0.8 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.0.0/gems/gtk2-3.0.8/ext/gtk2/gem_make.out

-Dartellum Waddle (DR)
-Uaedaven (GS)

Vote for DR: http://www.topmudsites.com/vote-DragonRealms.html
Reply
Re: Ubuntu Lich install - two new builds not working 08/13/2017 09:20 AM CDT
That gtk is always the stumbling block!

I don't know if Doug will see you here and jump in, but write to him and have him help you just in case he misses it. Doug@play.net

He's the author of the Mac Install page at the wiki and an absolute wizard at getting it all to stand up and sing for you!

~L and her Mac (both of us members of Doug's fan club)

---
Rohese: "... the TownCrier (tune in if you haven’t, it’s without doubt the best thing to ever happen on LNet)"
;tune towncrier
Reply
Re: Ubuntu Lich install - two new builds not working 08/13/2017 10:33 AM CDT
Happy to help, but please understand - I don't do a ton of Linux so if we trip across something unique there I may have to recommend another. Most of the experience will be exactly the same as OSX, but sometimes file locations or compiler flags can turn left at Albuquerque on us.

That error message, though. . . now that, that is very familiar to me. It usually means that the cairo build was completed from a home brew brewed keg and that the x11 code headers never get placed.

Before we run this merry rabbit to ground, though - is there a set of instructions somewhere that you're following, or can you outline the steps you used? I want to check a thing, or two to be sure we get everything covered at once.

I'm sending this along in response to your email, as well - pick whichever venue works best for you to respond in.

Doug
Reply
Re: Ubuntu Lich install - two new builds not working 08/14/2017 01:22 PM CDT
I'm having the exact same issue in macOS, using the instructions on the Wiki (https://gswiki.play.net/Mac_Installation_-_Lich_(software)). I had an earlier issue in which pkg-config couldn't find zlib, which required forcibly linking zlib, but now get the gdkkeysyms.h error.

I've verified that gdkkeysyms.h exists on the system, so I'm not sure what's wrong with the include paths, but here's the error message:

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.

/Users/jasedit/.rbenv/versions/2.2.5/bin/ruby -r ./siteconf20170814-2581-1c4kwqn.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/jasedit/.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

extconf failed, exit code 1

Any suggestions for how to fix this would be greatly appreciated.
Reply
Re: Ubuntu Lich install - two new builds not working 08/14/2017 03:38 PM CDT
>>Any suggestions for how to fix this would be greatly appreciated.

JASEDIT - I'll shoot you a quick email, too.

For those joining us looking for answers to Linux (so far, Ubuntu 16.04.3) and running into this error can't find gdkkeysyms.h (RuntimeError), the problem seems to be associated with GTK2 version 3.0.8 (which works on Mac, but apparently won't here). My advice:

0) If you haven't already considered / do not have a Ruby environment manager installed (I much prefer rbenv and am far more familiar with it than others), I would strongly encourage you to do so.
1) If you are not running at least Ruby v 2.2.5, please upgrade to that release (see recommendation 0 above, please). The latest GTK gems and libraries expect at least Ruby version 2.1.x. Rubies version 2.0.x and 2.1.x are end-of-life. To be fair, 2.2.x is coming to end-of-life as well, but Lich needs some work before 2.3 or better can be used.
2) If you are running Ruby v 2.3.x, please back-rev to v 2.2.5 (see recommendation 1 above).
3) If you have installed the gem GTK2 at version 3.0.8, please uninstall it, and all associated 3.0.8 gems. You'll also want to remove the cairo and cairo object gems, to ensure a clean build. The command below may help if you're not up to uninstalling gems individually (but use with extreme caution!)
4) After you have a clean (hopefully rbenv managed) Ruby environment, then issue this command -- gem install gtk2 -- that's it, no version, no nothing else. At present, this will install GTK2 version 3.1.8 which does work (confirmed on Windows, Mac and Ubuntu 16.04.3). Note If you jumped right to this command and tried it, and it failed, please check to be sure your ruby version is at least 2.1.x.

Bonus 5) If you're using Frostbite (an FE designed by and for Dragonrealms), please note that you may have one additional step you must take. You'll have to use the web to download / install Stormfront. If you don't do this, Frostbite will display a bunch of erroneous data and then not allow for game / command input.

Things for Doug to do - I want to try out Frostbite myself (always enjoy a new FE), and I want to see how it is packaged for delivery. It might spur some thought processes for me on how to simplify non-Windows Unix-based installs for the 'rest of us'.

Good luck, and let us know how you do!

Doug
Reply
Re: Ubuntu Lich install - two new builds not working 08/14/2017 03:55 PM CDT
Oh, yeah - that command (please remember to use with caution, this can have unintended side effects / always ask questions first!)

In a terminal window

gem list -v 3.0.8 | xargs gem uninstall -aIx
gem uninstall cairo


Doug
Reply
Re: Ubuntu Lich install - two new builds not working 08/14/2017 04:00 PM CDT
I was already using ruby 2.2.5 and rbenv, so that part was easy. Switching to the latest version of GTK cleared up the issues with Lich - I also had to install winetricks to get Stormfront to not crash immediately, but now things seem to be working fine. Thanks!
Reply
Re: Ubuntu Lich install - two new builds not working 08/14/2017 04:08 PM CDT
Awesome! Two done!

Although, all credit goes to POPWEASEL for sticking this one out and trying things.

Doug
Reply
Re: Ubuntu Lich install - two new builds not working 08/15/2017 07:32 AM CDT


From what I can tell, Stormfront under Wine is unbearably slow (screen scroll is staggeringly slow), which is really annoying. Are there any tricks to making Stormfront work well under Wine, or is that just the state of things?

I've been trying other options. Avalon seems to work reasonably well, but it appears that all thoughts are directed to the Room window, not the Thoughts window. Is this an Avalon issue, or a lich issue, or some new behavior?

Thanks again for all the help - it's very exciting to have things working without virtualization. Stormfront under virtualization crashes for me every hour or so, which makes hunting even more exciting than I'd prefer.
Reply
Re: Ubuntu Lich install - two new builds not working 08/15/2017 01:50 PM CDT
I defer to @Doug on this, but I think he fixed the bulk of my scrolling issues under Wine by running it in some special mode.

It's still a wee bit slower when slammed with non-stop screen scrolling. Invasions are not something I can participate in, for instance. My biggest screen scroll fail was at a Dreavening when I forgot to run the ;dreavening script. Newsby saw Dreaven's end report on Lnet ... 5 minutes before my screen stopped scrolling.

But these are the few times it matters. Duskruin? Cake. Small group hunts? No problem. Reim w/ 3 peeps? Bring it on.

I tried Parallels once ... it was so slow I uninstalled it and counted that wasted money.

---
Rohese: "... the TownCrier (tune in if you haven’t, it’s without doubt the best thing to ever happen on LNet)"
;tune towncrier
Reply
Re: Ubuntu Lich install - two new builds not working 08/15/2017 02:24 PM CDT
>>I tried Parallels once ... it was so slow I uninstalled it and counted that wasted money.

That's too bad. I had a great experience with Parallels, but that was on a work laptop with 16GB and a Quad processor (MacBook Pro). (don't hit me!) I dedicated 2 CPU and 8GB of RAM to the VM, so it had plenty of resources.
Reply
Re: Ubuntu Lich install - two new builds not working 08/16/2017 12:14 AM CDT
>>Stormfront under Wine is unbearably slow

There are a couple of tools that can help with that. That's what I did with Luxelle. But - SFE under WINE will never be as fast in response as Avalon natively, and isn't even as fast as Wizard under WINE (my personal preferred Mac solution - but. . . it is definitely personal).

I keep meaning to get into the Avalon thought window challenge, and haven't had the time as yet. I need to sort it out and give Tillmen the info, so we can track the thoughts better for Avalon. I might get to that shortly. Perhaps after (or before?) the State of Wizards compilation. . .

Doug
Reply
Re: Ubuntu Lich install - two new builds not working 08/16/2017 08:05 AM CDT
The slowness appears to be something along the lines of a quarter of the screen scroll rate or less - running between Solhaven North Market and Bonespear Tower shows screen scroll at about half the rate of StormFront under Parallels. I can try the Wizard frontend to see if it has reasonable performance, but it seems as though the performance difference is very significant.

I've been using Avalon on and off, and it looks like everything from Lich goes into the room window. Running update-playershops shows all the movement and descriptions going to the room window, so it's more than just thoughts. Perhaps this is all part of the known issue, but it's worth mentioning how pervasive the redirection oddities are.
Reply
Re: Ubuntu Lich install - two new builds not working 08/16/2017 12:24 PM CDT
Lich offers you a way to direct thoughts/lnet into your familiar window. And why Avalon had a familiar window and not a thought window I never quite understood.

But ... that is the trick, as i recall. It should be under ;lnet help

But it's a weird window and auto hides somehow as I remember.

---
Rohese: "... the TownCrier (tune in if you haven’t, it’s without doubt the best thing to ever happen on LNet)"
;tune towncrier
Reply
Re: Ubuntu Lich install - two new builds not working 08/16/2017 10:12 PM CDT
After going the wrong way around, that indeed fixes everything with Avalon. I'd still be curious about what tweaks can be made to optimize Stormfront under wine, but Avalon is now usable enough to test stability as compared to the Parallels solution. Thank you all for the wonderful help!
Reply