v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing v0.34:Installation

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "v0.34"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 50: Line 50:
 
* '''Running''': Run '''./df''' to execute the Dwarf Fortress wrapper script.
 
* '''Running''': Run '''./df''' to execute the Dwarf Fortress wrapper script.
 
* '''Troubleshooting''': If you get an error like this:
 
* '''Troubleshooting''': If you get an error like this:
 
+
./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_image-1.2.so.0:
  ./libs/Dwarf_Fortress: error while loading shared libraries: libSDL-1.2.so.0: cannot open shared object file: No such file or  
+
cannot open shared object file: No such file or directory
  directory
+
: it means that your system is missing one or more shared libraries.
 
 
it means that your system is missing one or more shared libraries.
 
  
 
To fix this problem run the following command in a new terminal:
 
To fix this problem run the following command in a new terminal:
 
Ubuntu 16:
 
 
  $ sudo apt-get install libsdl1.2debian libsdl-image1.2 libSDL-ttf2.0-0
 
  
 
Ubuntu 14 (or systems without ia32-libs):
 
Ubuntu 14 (or systems without ia32-libs):
  $ sudo apt-get install libgtk2.0-0:i386 libglu1-mesa:i386 libsdl-image1.2:i386 libsdl-sound1.2:i386 libsdl-ttf2.0-0:i386
+
  sudo apt-get install libgtk2.0-0:i386 libglu1-mesa:i386 libsdl-image1.2:i386 libsdl-sound1.2:i386 libsdl-ttf2.0-0:i386
 
 
 
Ubuntu 13 and below:
 
Ubuntu 13 and below:
  $ sudo apt-get install ia32-libs libsdl-image1.2 libsdl-sound1.2 libsdl-ttf2.0-0
+
  sudo apt-get install ia32-libs libsdl-image1.2 libsdl-sound1.2 libsdl-ttf2.0-0
 
 
After the last command has finished (it should take about 5-10 minutes) go back to the old terminal and retry the ./df command.
 
  
Linux Mint 18 will produce this error
 
  
  ./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file:
 
  No such file or directory
 
  
Simply download and install the missing library with:
+
After the last command has finished (it should take about 5-10 minutes) go back to the old terminal and retry the ./df command.
 
 
  $ sudo apt-get install libSDL-ttf2.0-0
 
  
 
 
* '''Upgrading''': Since every new version of Dwarf Fortress unpacks in a directory named '''df_linux''' you have to manage upgrades yourself. As on all systems, you should '''not''' unpack a new version of DF on top of an old version's directory -- this will cause things to break, usually in subtle and mysterious ways.  Instead, you should either delete or rename the old '''df_linux''' directory first, before extracting the new version.
 
* '''Upgrading''': Since every new version of Dwarf Fortress unpacks in a directory named '''df_linux''' you have to manage upgrades yourself. As on all systems, you should '''not''' unpack a new version of DF on top of an old version's directory -- this will cause things to break, usually in subtle and mysterious ways.  Instead, you should either delete or rename the old '''df_linux''' directory first, before extracting the new version.
  
Line 103: Line 88:
  
 
==== How-to for Debian and similar ====
 
==== How-to for Debian and similar ====
 +
 +
If you are running DwarfFortress on the latest version of ubuntu, mint and some other distros, you will get an error about libSDL_ttf-2.0.so.0 despite it already being installed:
 +
 +
  $ ./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory
 +
 +
In this case you should just install the 64 bit version:
 +
 +
  $ sudo apt-get install libSDL-ttf2.0-0
 +
  
 
On Ubuntu/Debian and its derivatives, installing 32-bit libraries is as easy as appending ":i386" to the name of the library.  For libsdl-image and libsdl-ttf, this amounts to:
 
On Ubuntu/Debian and its derivatives, installing 32-bit libraries is as easy as appending ":i386" to the name of the library.  For libsdl-image and libsdl-ttf, this amounts to:

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)