Inform7 with modern debian/ubuntu

(Mage of Maple) #1

Hi everyone!

I’ve just discovered Inform7 and it looks like a fascinating development language/environment. I’ve been interested in languages/development techniques/virtual machines for a long time but haven’t thought about IF in decades. But now I have kids and was thinking of introducing them to Zork, and then I thought “I wonder if people are still developing this kind of thing?” And … yay :smiley:

So then I became curious and started looking into the tools for developing them and found the Inform7 language to be fascinating and am eager to experiment! I would prefer to do so without having to use a Windows VM. That would be the last resort. I run Linux Mint (which is basically Ubuntu 18.04) but the available packages for Debian/Ubuntu are for really outdated editions and will not install. So I have tried two things so far …

Attempt #1: I downloaded the source code and tried to build it. There were a number of dependency problems, but with some effort I was able to work through all but one. Running ./configure --enable-deb complains that no package for ‘goocanvas’ could be found. I installed a bunch of related packages but they aren’t recognized. I was able to solve the other dependencies this way but I have no idea what to do about this one. (I am a developer, but I don’t know squat about Linux Gnome programming.) If anyone has any ideas, or has this already compiled, that would be awesome.

Attempt #2: I installed and ran under Wine. This actually installed perfectly and seems to run fine until I click “Go”, and even that works, parsing, compiling and all, until it is time to actually launch the game - then I get a crash. My guess is that it is trying to interact with a web browser or HTML library. This simple approach came soooooo close … If no one here has any ideas about this, I may ask on the Wine forum.

Any thoughts are appreciated!

Cheers,
Greg

1 Like

(Nathanaël Marion) #2

Yeah, there are dependencies problems on Linux, that were discussed in this thread. My post there gives links to install the missing libgoocanvas dependencies manually.

It allowed me to install Inform on my Linux Mint virtual machine, so it should work in your case. Bear in mind that I don’t really know much about Linux either, though.

0 Likes

#3

This topic here: https://intfiction.org/t/inform-7-on-ubuntu-18-04/13820/1

Says you can use the instructions (for getting parts of Shutter to work) to install libgoocanvas etc: ubuntuhandbook.org/index.php/201 … ntu-18-04/

0 Likes

(Mage of Maple) #4

Excellent. Thanks!

At first, I thought this didn’t work. When trying to build, I was able to solve all dependencies except goocanvas. Since these posts addressed goocanvas, I thought you were addressing my build problem. But, even after installing these additional packages, I still could not build. But I wasn’t reading the post clearly enough. (Clearly I haven’t played interactive fiction recently.) You said I’d be able to install, not build after installing those packages. And, sure enough, now the old Ubuntu package installs and works!

I don’t understand how I am able to install and run something that I don’t even have the capability to build… I’m guessing this is a problem with the build script? Would be good to update the Linux packages if not too difficult. I would do it if I knew more about Linux development. That said, I’d be happy to help with building/testing/releasing if someone wanted to give me some guidance. I have lots of Linux VMs and some time …

Anyway, thanks all. I’m up and running!

0 Likes

#5

I’ve had similar issues getting Inform 7 to work on Ubuntu 18.04, and have installed the dependencies manually according to the linked forum posts (many thanks for those).

I’ve installed both the Ubuntu 15.10 and Debian Wheezy versions and they both load fine, however when I attempt to load a project, the file browser shows everything greyed out (read only?) and I cannot open any file or browse to any subfolder. I’ve run Inform 7 as root (isn’t everything always a permissions issue on Linux!), and get the same experience.

If anyone can throw any light on this issue, I would be very relieved to get I7 working. I have a VM running Ubuntu 16.04 (which was surprisingly hard to find a Vagrant box for) but it’s not an ideal situation.

0 Likes

(Mage of Maple) #6

That is odd. I certainly don’t have that problem. I used the Ubuntu version, not the Debian version, and I certainly have not run as root. It could be because you have something else conflicting, or it could be because I installed other dependencies when I was trying to build from source. Unfortunately I installed a bunch of stuff in that attempt and I do not remember what all they were. I would be great if someone knew how to get past the goocanvas build problem. Then I would be able to build a proper deb for Ubuntu 18.04 which I would then share.

Try to think if you have something else going on … for example, you’re not running it under Firejail or having some antivirus interfering are you?

0 Likes

#7

Nothing else I can think of should be interfering. No use of Firejail, and no AV installed. This installation of 18.04 is only a few months old too, so I’d venture to call it ‘fairly standard’.

I’ve been attempting to build it from source (from here: github.com/ptomato/gnome-inform7) and have managed to meet all the dependencies except ‘goocanvas’, a version of which is installed, but I guess not the correct one.

I’m usually fairly confident around a Linux machine, but never less so when this sort of situation arises. I’ll persevere and see what I can achieve.

0 Likes

(Mage of Maple) #8

I hope you are able to solve the goocanvas dependency - that’s also where I hit the wall. If you figure it out, please us know how :slight_smile:

My other approach - using Wine - also got really far. Although it’s working for me, I may still ask on a Wine forum to try to solve that also. Although I have the Linux version working, it isn’t quite perfect. Occasionally the documentation viewer locks up, and occasionally the entire program crashes (although both are quite rare.) So running the Windows version in Wine might be a better answer, although it is also possible that version has the same problems.

Cheers,
Greg

0 Likes

#9

Just popped back to say that my issue with the folders being greyed out and inaccessible is this issue, reported two years ago with no movement: http://inform7.com/mantis/view.php?id=1985 To get around it, you can search for the project’s name in the ‘open project’ window, but that’s not ideal. Symlinking a folder in ~/ called projects.inform to my projects folder solved that issue.

I’ve also gone as far as to create a Debian 8 (Jessie) VM and install Inform into that (which works perfectly, as opposed to Debian 7 (Wheezy), which had dependency issues also, despite apparently being built against that version of Debian). This is a bit of a last resort, but it does work exactly as expected.

So, everything is generally working, but still no fix for the libgoocanvas issue for building from source.

0 Likes

(Mage of Maple) #10

Thank you for posting that. Suddenly I started having the grayed out problem myself. Too bad the Linux version is not well supported but at least it mostly works.

1 Like