Saturday, March 15, 2014

Dwarf Fortress on Ubuntu 13.10 (64-bit)

Running Dwarf Fortress on Ubuntu 13.10 requires some extra packages, especially if you're using a 64-bit version.  If you just want to get it running, here's the short, TL;DR version:

Open a terminal window and run:

sudo apt-get install libncurses5  libsdl1.2debian:i386 libgtk2.0-0:i386 libsdl-image1.2:i386 libglu1-mesa:i386 libgtk2.0-0:i386

 That should get you up and running!

For the curious, details of which packages solve which dependencies are below:

./df: 6: ./df: ./libs/Dwarf_Fortress: not found

$ sudo apt-get install libncurses5

./libs/Dwarf_Fortress: error while loading shared libraries: libSDL-1.2.so.0: cannot open shared object file: No such file or directory

$ sudo apt-get install libsdl1.2debian:i386

./libs/Dwarf_Fortress: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

$ sudo apt-get install libgtk2.0-0:i386

./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_image-1.2.so.0: cannot open shared object file: No such file or directory

$ sudo apt-get install libsdl-image1.2:i386

./libs/Dwarf_Fortress: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory

$ sudo apt-get install libglu1-mesa:i386

./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory

$ sudo apt-get install libgtk2.0-0:i386