Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I downloaded the version of Dwarf Fortress for Linux onto my computer, but when I click on the df file, it doesn't do anything. When I run it in a terminal, it gives me this message:

error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory
share|improve this question
    
Self-explanatory No such file or directory,install SDL libraries –  Uri Herrera Oct 8 '11 at 3:34
    
See this thread at this forum: bay12forums.com/smf/index.php?topic=66142.315 –  Uri Herrera Oct 8 '11 at 3:35
    
I've had tons of trouble with getting DF to run because I'm on a 64-bit system, and getting the 32-bit dynamic library binaries to cooperate was quite a pain. There are workarounds, but I didn't find it worth my time. –  Tom Thorogood Jun 17 '12 at 15:00

2 Answers 2

The Dwarf Fortress archive you downloaded features no dependency resolution, and that error indicates you haven't installed the necessary libraries to play.

Open a terminal and enter the following:

sudo apt-get install libsdl1.2debian libsdl-image1.2 libsdl-ttf2.0-0

That should allow Dwarf Fortress to run correctly unless you are on a 64-bit installation. On 64-bit installations, you may need to add ":i386" as seen here:

sudo apt-get install libsdl1.2debian:i386 libsdl-image1.2:i386 libsdl-ttf2.0-0:i386

You may also run into problems with sound. If so, you can follow the directions on the dwarf fortress wiki, which suggest the following:

$ cd df_linux/libs
$ ln -s /usr/lib/i386-linux-gnu/libopenal.so.1 ./libopenal.so
$ ln -s /usr/lib/i386-linux-gnu/libsndfile.so.1 ./libsndfile.so
share|improve this answer
    
NOTE: If DF or Desura (which handles dependency resolution) ever lands in the Software Center, instructions to install that way should supersede these. –  Jacob Johan Edwards Nov 11 '11 at 5:14
    
1  
Seems to be an incomplete answer, at least on a 64 bit system. –  Kzqai Mar 26 '13 at 15:49

I was having the same issue and found a very easy workaround. Install Wine using software center and download the windows version of Dwarf Fortress.

After Dwarf Fortress is downloaded and wine is installed, go in dwarf fortress folder and right click Dwarf Fortress.exe and select Open With and then wine program loader. It just works. I thought it was easier than playing around with the libraries.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.