<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dwarffortresswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bachsau</id>
	<title>Dwarf Fortress Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://dwarffortresswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bachsau"/>
	<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php/Special:Contributions/Bachsau"/>
	<updated>2026-05-14T06:59:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Installation&amp;diff=258272</id>
		<title>Installation</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Installation&amp;diff=258272"/>
		<updated>2021-07-03T06:09:36Z</updated>

		<summary type="html">&lt;p&gt;Bachsau: /* Mac */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quality|Exceptional|12:06, 26 January 2015 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
{{quick download|{{current/version/ns}}}}&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
{{TOC right}}&lt;br /&gt;
= Download =&lt;br /&gt;
&lt;br /&gt;
Free alpha builds of ''Dwarf Fortress Classic'' are available directly from the developers, Bay 12 Games, at http://www.bay12games.com/dwarves/ . The three downloads linked at the top of the main page are 64-bit versions of DF for Windows, macOS, and Linux. &amp;quot;All versions&amp;quot; links to a page with additional choices, including 32-bit builds for all platforms, &amp;quot;small&amp;quot; builds for Windows (which lack sound files), and &amp;quot;legacy&amp;quot; builds for Windows. Generally, the SDL builds for Windows should be preferred, although the Legacy builds may be necessary on some older computers.&lt;br /&gt;
&lt;br /&gt;
''Dwarf Fortress'' is slated to be released on the [https://store.steampowered.com/app/975370/Dwarf_Fortress/ Steam] and [https://kitfoxgames.itch.io/dwarf-fortress itch.io] platforms in the future. These paid versions of the game will include an all-new graphical [[tileset]] and new music tracks. Additionally, the Steam version will include Steam Workshop integration for [[mod]]ding. Most other features will be shared with ''Dwarf Fortress Classic'' (which will remain available for free). &lt;br /&gt;
&lt;br /&gt;
== Third-Party Packages ==&lt;br /&gt;
&lt;br /&gt;
{{main|Utility:Lazy Newb Pack}}&lt;br /&gt;
&lt;br /&gt;
There are several packages which bundle the game with several utilities and graphics sets, usually configurable with an included launcher. These are listed on the [[Utility:Lazy Newb Pack|Lazy Newb Pack]] page.&lt;br /&gt;
&lt;br /&gt;
The ''Dwarf Fortress'' community often creates custom [[Graphics set repository|graphics sets]], [[Tileset repository|tilesets]] and [[Color_scheme#Custom_color_schemes|color schemes]]. They're like graphical mods that make DF look prettier or just different. A lot of people pack the game folder with the tileset installed and everything already set up, so all you have to do is extract and play. Among the most popular of these are [http://www.bay12forums.com/smf/index.php?topic=53180.0 Ironhand's Graphics Set] and [http://www.bay12forums.com/smf/index.php?topic=57557.0 Phoebus' Graphic Set].  Most notable graphics sets are included in the packs mentioned above.&lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
:''Also see: [[System requirements]]''&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
&lt;br /&gt;
There is no installer for the game - simply extract the archive contents to a folder somewhere and run the game from within that folder by opening &amp;quot;''Dwarf Fortress''.exe&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Make sure to actually ''extract'' the archive; do not just open the archive and run the game from the window that appears. If you do this, then it may appear to work, but your save game data will get discarded - the cause of many &amp;quot;my saved games keep getting deleted&amp;quot; complaints. The game also needs to be able to write to its own folder, so do '''not''' install it in C:\Program Files if you are running Windows Vista or later. (However, this rather assumes that one actually ''has'' an archive extractor to begin with, perhaps preinstalled: [https://www.7-zip.org/ example remedy for that issue]) &lt;br /&gt;
&lt;br /&gt;
If you have an error stating that MSVCP140.dll is missing, it can be obtained by downloading [https://www.microsoft.com/en-us/download/details.aspx?id=48145 Visual C++ Redistributable for Visual Studio 2015]. When prompted choose the x64 version for 64-bit DF, or the x86 version for 32-bit DF.&lt;br /&gt;
&lt;br /&gt;
If Windows is set to scale the display, you may need to disable that for DF. Right-click the ''Dwarf Fortress.exe'' icon, select '''Properties''', select the '''Compatibility''' tab, and then activate the '''Disable display scaling on high DPI settings''' (or '''Override high DPI scaling behavior, scaling performed by: Application''') check box.[https://support.microsoft.com/en-us/help/3025083/windows-scaling-issues-for-high-dpi-devices]&lt;br /&gt;
&lt;br /&gt;
== Mac ==&lt;br /&gt;
&lt;br /&gt;
The Mac version is not an application bundle. Like the Windows version, it consists of a folder containing the application and data files; there is no installer. The entire folder can be dragged into the Applications folder or placed elsewhere. As with the Windows version, the game must be able to write to its own folder.&lt;br /&gt;
&lt;br /&gt;
To start the game, execute the launch script &amp;quot;df&amp;quot;. Launching &amp;quot;dwarfort.exe&amp;quot; by itself will ''not'' work (since the &amp;quot;df&amp;quot; script sets up [[wikipedia:environment variables|environment variables]] pointing to DF's libraries).&lt;br /&gt;
&lt;br /&gt;
There are alternative installation options, such as [[Utility:Lazy newb pack|pre-packaged bundles]] and [https://github.com/Bachsau/DF-Mac-Launcher this third-party app launcher], that may make the game easier to start and fix some of the issues listed below.&lt;br /&gt;
&lt;br /&gt;
=== Fixes for common issues ===&lt;br /&gt;
&lt;br /&gt;
Changing the ``PRINT_MODE`` setting in data/init/[[init.txt]] from ``2D`` to ``STANDARD`` is necessary on some systems, particularly macOS 11+ (see below) and machines with Retina displays {{bug|6031}}. Doing this on any macOS system can improve performance significantly {{bug|10052}}. Other values for this setting, like ``FRAME_BUFFER``, may also help.&lt;br /&gt;
&lt;br /&gt;
On macOS 10.15 (Catalina) and above, if you encounter gatekeeper security-related warnings that prevent DF from starting, one solution (from [https://github.com/DFHack/dfhack/issues/1465 here]) is to run the following command from the terminal in the folder containing &amp;lt;code&amp;gt;dwarfort.exe&amp;lt;/code&amp;gt;:&lt;br /&gt;
* &amp;lt;code&amp;gt;find . -print0 | xargs -0 xattr -d com.apple.quarantine&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On macOS 11 (Big Sur) and above, if you see a blank white window when starting the game, you will need to change ``[PRINT_MODE:2D]`` to ``[PRINT_MODE:STANDARD]`` in [[init.txt]].&lt;br /&gt;
&lt;br /&gt;
On case-sensitive filesystems, a freshly-installed version of the game will not launch. {{bug|11136}}&lt;br /&gt;
* Rename &amp;quot;libs/SDL_ttf.framework/Versions/A/Frameworks/FreeType.framework&amp;quot; to &amp;quot;libs/SDL_ttf.framework/Versions/A/Frameworks/freetype.framework&amp;quot; to fix this.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
&lt;br /&gt;
You may want to check if the package manager for the Linux distribution you are using has a ''Dwarf Fortress'' package. A package will get the correct build of DF for your system, handle all the dependencies and configuration, make any necessary system-specific fixes, probably add an entry to the system application launcher or menu, and handle updates. Note that in some cases, these packages can lag behind official DF releases, and they typically only support a single system-wide installation of DF. If you want a version of DF newer than what your package manager provides, or if you want a portable installation, follow the instructions in the rest of this section instead.&lt;br /&gt;
&lt;br /&gt;
As of 0.43.05, both 64-bit and 32-bit compiled builds of ''Dwarf Fortress'' are available for Linux. Note, to get the 32-bit edition, click the All Versions button on the ''Dwarf Fortress'' download page. Older 32-bit only versions can possibly run on a 64-bit system if the system has the required (32-bit) shared libraries, see below.&lt;br /&gt;
&lt;br /&gt;
''Dwarf Fortress'' for Linux is expected to be run from a terminal (command-line) interface, and so the instructions here will assume you know how to log in and get to a command prompt. By default, however, ''Dwarf Fortress'' is a graphical desktop program (an X client), so you should be in a terminal emulator (inside an X session) before starting the game. (See [[Installation#TEXT mode]] for an alternative.) ''Dwarf Fortress'' will create a new window outside of the terminal window by default, so don't worry about the size of the terminal.&lt;br /&gt;
&lt;br /&gt;
When you installed Linux, you chose either a 32-bit (i386, x86) or 64-bit (amd64, x86_64) architecture. Some systems are able to run programs for either, but it is best to use a version of DF compiled for the same architecture. If you've forgotten which one you have, you can check by running the command &amp;lt;code&amp;gt;uname -m&amp;lt;/code&amp;gt; in a terminal. A result of &amp;lt;code&amp;gt;x86_64&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;i686&amp;lt;/code&amp;gt; would indicate 64-bit or 32-bit respectively.&lt;br /&gt;
&lt;br /&gt;
'''Downloading''': Either download it from the [http://www.bay12games.com/dwarves/ Dwarf Fortress Homepage] with a web browser, or with one of these terminal commands, replacing &amp;quot;XX_YY&amp;quot; with the numbers in the desired ''Dwarf Fortress'' file version, found on the [http://www.bay12games.com/dwarves/ site]:&lt;br /&gt;
 wget http://www.bay12games.com/dwarves/df_XX_YY_linux.tar.bz2&lt;br /&gt;
or, for the 32-bit version:&lt;br /&gt;
 wget http://www.bay12games.com/dwarves/df_XX_YY_linux32.tar.bz2&lt;br /&gt;
&lt;br /&gt;
'''Unpacking''': ''Dwarf Fortress'' is shipped as a (bzip2) compressed tar archive. It will extract into a new directory called '''df_linux'''.  So, &amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt; to wherever you want the game to be unpacked, perhaps &amp;lt;code&amp;gt;~/games&amp;lt;/code&amp;gt;, and then run&lt;br /&gt;
 tar -xjf /path/to/df_XX_YY_linux.tar.bz2&lt;br /&gt;
where /path/to/df_XX_YY_linux.tar.bz2 is the path and filename of the actual file you downloaded.&lt;br /&gt;
&lt;br /&gt;
(note: &amp;lt;code&amp;gt;tar -xjvf ./df_XX_YY_linux.tar.bz2&amp;lt;/code&amp;gt; may be needed in some cases. [what cases? all this does is add verbosity and assume the file is in the current dir])&lt;br /&gt;
&lt;br /&gt;
'''Running''': First, change to the new directory&lt;br /&gt;
 cd df_linux&lt;br /&gt;
then execute the launcher script.&lt;br /&gt;
 ./df&lt;br /&gt;
&lt;br /&gt;
Now you need to ensure that the required dependencies are installed. If you try to run the game and get errors about missing SDL_image libraries (etc.) then you need to install them. Use your distribution's package manager for this - details will be extremely distribution-specific. Specific installation commands for some distributions are in the sections below. You don't need the development versions of the packages with the headers (although that won't hurt) - you just need the runtime versions, with the actual shared libraries.&lt;br /&gt;
&lt;br /&gt;
If you see any errors related to libstdc++ when starting DF (for example, &amp;quot;version `CXXABI_1.3.8' not found&amp;quot;), try removing libstdc++.so.6 and libgcc_s.so.1 from the &amp;quot;libs&amp;quot; folder. This will cause DF to use the system version of these libraries, which are more up-to-date on many modern systems than the libraries that DF includes.&lt;br /&gt;
&lt;br /&gt;
Since ''Dwarf Fortress'' 0.43.05 and later are compiled for both architectures, running natively shouldn't be an issue. However if you're wanting to run an older version of ''Dwarf Fortress'' on a 64-bit system, things get a bit trickier. Since older DF is only a 32-bit application, it will need 32-bit versions of the shared libraries. Some Linux distributions provide these in one or more packages that you can download. For example, in Debian, you'll need to enable the 32bit architecture in your package manager and install the relevant 32-bit libraries like libSDL. If your distribution does not include these, then you may have to supply them manually. Though, at that point it may just be easier to run the old windows version of DF in Wine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian-based ===&lt;br /&gt;
&lt;br /&gt;
Installing the dependencies for ''Dwarf Fortress'' is simple, but varies slightly depending on whether you're running a 32-bit OS, a 64-bit OS, or a 32-bit version of ''Dwarf Fortress'' on a 64-bit OS.&lt;br /&gt;
&lt;br /&gt;
==== 64-bit (recent version of ''Dwarf Fortress'', most modern machines) ====&lt;br /&gt;
&lt;br /&gt;
===== Install dependencies =====&lt;br /&gt;
&lt;br /&gt;
  $ sudo apt install libsdl1.2debian libsdl-image1.2 libsdl-ttf2.0-0 libgtk2.0-0 libopenal1 libsndfile1 libncursesw5&lt;br /&gt;
&lt;br /&gt;
This will install the SDL image and font libraries necessary, as well as libopenal and libsndfile, which are needed to get the sound working. It will also install libncursesw5, which is needed if you want to run ''Dwarf Fortress'' in ''TEXT'' mode.&lt;br /&gt;
&lt;br /&gt;
===== Fix sound issues =====&lt;br /&gt;
&lt;br /&gt;
In some old versions, ''Dwarf Fortress'' does not quite look in the correct place for the sound libraries it needs to play the wonderful music. This is easily fixed.&lt;br /&gt;
&lt;br /&gt;
Switch to the ''Dwarf Fortress'' folder and add some symlinks to the correct location:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/df_linux    # or other location, depending on where you installed ''Dwarf Fortress''&lt;br /&gt;
  $ ln -s /usr/lib/x86_64-linux-gnu/libopenal.so.1 libs/libopenal.so&lt;br /&gt;
  $ ln -s /usr/lib/x86_64-linux-gnu/libsndfile.so.1 libs/libsndfile.so&lt;br /&gt;
&lt;br /&gt;
==== Running 32-bit ''Dwarf Fortress'' on 64-bit Debian ====&lt;br /&gt;
&lt;br /&gt;
===== Install dependencies =====&lt;br /&gt;
&lt;br /&gt;
If you're trying to run a version of ''Dwarf Fortress'' older than 0.43.05, you'll need to install the 32-bit versions of the libraries. You can do this with:&lt;br /&gt;
&lt;br /&gt;
  $ sudo dpkg --add-architecture i386&lt;br /&gt;
  $ sudo apt-get update&lt;br /&gt;
  $ sudo apt-get install libsdl1.2debian:i386 libsdl-image1.2:i386 libsdl-ttf2.0-0:i386 libopenal1:i386 libsndfile1:i386 libncursesw5:i386&lt;br /&gt;
&lt;br /&gt;
===== Fix sound issues =====&lt;br /&gt;
&lt;br /&gt;
Almost the same as above, but the libraries will be in a different location as you're looking for the 32-bit versions:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/df_linux    # or other location, depending on where you installed ''Dwarf Fortress''&lt;br /&gt;
  $ ln -s /usr/lib/i386-linux-gnu/libopenal.so.1 libs/libopenal.so&lt;br /&gt;
  $ ln -s /usr/lib/i386-linux-gnu/libsndfile.so.1 libs/libsndfile.so&lt;br /&gt;
&lt;br /&gt;
==== 32-bit ====&lt;br /&gt;
&lt;br /&gt;
===== Install dependencies =====&lt;br /&gt;
&lt;br /&gt;
  $ sudo apt-get install libsdl1.2debian libsdl-image1.2 libsdl-ttf2.0-0 libopenal1 libsndfile1 libncursesw5&lt;br /&gt;
&lt;br /&gt;
As above, this will install the SDL image and font libraries, sound libraries, and text libraries.&lt;br /&gt;
&lt;br /&gt;
===== Fix sound issues =====&lt;br /&gt;
&lt;br /&gt;
Switch to the ''Dwarf Fortress'' folder and add some symlinks to the correct location:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/df_linux    # or other location, depending on where you installed ''Dwarf Fortress''&lt;br /&gt;
  $ ln -s /usr/lib/libopenal.so.1 libs/libopenal.so&lt;br /&gt;
  $ ln -s /usr/lib/libsndfile.so.1 libs/libsndfile.so&lt;br /&gt;
&lt;br /&gt;
==== Standard package ====&lt;br /&gt;
&lt;br /&gt;
''Dwarf Fortress'' is also available as a package in the (non-free) Debian repositories. You can install it (with all dependencies) with a simple&lt;br /&gt;
&lt;br /&gt;
  $ sudo apt-get install dwarf-fortress&lt;br /&gt;
&lt;br /&gt;
=== Fedora ===&lt;br /&gt;
&lt;br /&gt;
''Dwarf Fortress'' has been packaged in [https://rpmfusion.org/ RPM Fusion Nonfree], using a similar method as it is done in Arch Linux (see below). After [https://rpmfusion.org/Configuration installing RPM Fusion] you can simply run the following commands to install and run ''Dwarf Fortress'', which will pull in all the required dependencies:&lt;br /&gt;
&lt;br /&gt;
  $ sudo dnf install dwarffortress&lt;br /&gt;
  $ dwarffortress&lt;br /&gt;
&lt;br /&gt;
Some other tools are provided by the same packager in the [https://mars.arosser.com/fedora/dwarffortress/dwarffortress.repo &amp;quot;Dwarf Fortress for Fedora&amp;quot;] repository. For more information please [http://www.bay12forums.com/smf/index.php?topic=158289.msg7009116#msg7009116 see this forum thread].&lt;br /&gt;
&lt;br /&gt;
If you want to install 64-bit ''Dwarf Fortress'' manually, you can run the following:&lt;br /&gt;
&lt;br /&gt;
  $ sudo dnf install SDL SDL_image SDL_ttf gtk2-devel openal-soft alsa-lib alsa-plugins-pulseaudio mesa-dri-drivers&lt;br /&gt;
&lt;br /&gt;
On 64-bit Fedora installations, to install 32-bit ''Dwarf Fortress'' you can install 32-bit libraries by appending &amp;quot;.i686&amp;quot; to the package name:&lt;br /&gt;
&lt;br /&gt;
  $ sudo dnf install SDL.i686 SDL_image.i686 SDL_ttf.i686 gtk2-devel.i686 openal-soft.i686 alsa-lib.i686 alsa-plugins-pulseaudio.i686 mesa-dri-drivers.i686&lt;br /&gt;
&lt;br /&gt;
Fedora installs all 32-bit libraries to /usr/lib and 64-bit libraries to /usr/lib64 (with /lib and /lib64 being links to these two directories), so if you need to install stuff manually, look in there.&lt;br /&gt;
&lt;br /&gt;
=== Arch Linux ===&lt;br /&gt;
A 64-bit ''Dwarf Fortress'' package is available in the [https://wiki.archlinux.org/index.php/Official_repositories#community community repository]. There are also [https://aur.archlinux.org/packages/?O=0&amp;amp;K=dwarffortress other packages] available in the Arch User Repository ([https://wiki.archlinux.org/index.php/Arch_User_Repository AUR]).&lt;br /&gt;
&lt;br /&gt;
==== Official package installation ====&lt;br /&gt;
Install the official package like any other&lt;br /&gt;
  # pacman -Syu dwarffortress&lt;br /&gt;
Any required dependencies will be installed, too.&lt;br /&gt;
&lt;br /&gt;
You can then launch ''Dwarf Fortress'' by running 'dwarffortress' in your terminal emulator. The package also includes a .desktop file so the game should appear in whatever application launcher or menu you might use.&lt;br /&gt;
&lt;br /&gt;
The first time a user launches the game, the directory .dwarffortress will be created in that user's home directory. Game settings and files can be changed there. Note that some of the directories in there are links to common directories and changes to them will effect all users. Also, any changes to common files should be backed up since they will be overwritten when the package updates. You can find the locations of files installed by the package with the command&lt;br /&gt;
  $ pacman -Ql dwarffortress&lt;br /&gt;
&lt;br /&gt;
If you use tools like dfhack you might want to [https://wiki.archlinux.org/index.php/Pacman#Skip_package_from_being_upgraded configure pacman to not update] ''Dwarf Fortress'' until the tools are updated.&lt;br /&gt;
&lt;br /&gt;
==== AUR package installation ====&lt;br /&gt;
Install an AUR package [https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages manually] or using an [https://wiki.archlinux.org/index.php/AUR_helpers AUR helper]. The different AUR packages may or may not install the game similarly to the official package - use the previous pacman command to check game file locations.&lt;br /&gt;
&lt;br /&gt;
==== Manual or multiple installations ====&lt;br /&gt;
You can also manually install ''Dwarf Fortress'' in case you want to try other versions or with and without mods. Just follow the generic Linux instructions above with a different directory for each install. If you've installed one of the above packages, all the dependencies should already be installed. To launch this version: in a terminal emulator, 'cd' to that directory, and run './df'. If you get a permission error, you may need to mark the script and executable as being executable with:&lt;br /&gt;
  $ chmod u+x df libs/Dwarf_Fortress&lt;br /&gt;
Once you get an install working you can create a [https://wiki.archlinux.org/index.php/Desktop_entries custom .desktop file] to launch it.&lt;br /&gt;
&lt;br /&gt;
If you want to install a 32-bit version of ''Dwarf Fortress'' you will have to enable the [https://wiki.archlinux.org/index.php/Official_repositories#multilib multilib repository], install the 32-bit system libraries, and install the 32-bit game dependencies manually (check the Arch wiki for more information).&lt;br /&gt;
&lt;br /&gt;
=== CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
''Dwarf Fortress'' is now 64-bit, so simply run:&lt;br /&gt;
&lt;br /&gt;
  sudo yum install SDL SDL_image SDL_ttf openal&lt;br /&gt;
&lt;br /&gt;
Note that CentOS 7 ships with glibc 2.17, but ''Dwarf Fortress'' by default would like 2.18. [http://www.bay12games.com/dwarves/mantisbt/view.php?id=9893 This bug] has a fix, simply copy the [http://pastebin.com/jX4Wf062 Pastebin script], then move the libraries into a new folder.&lt;br /&gt;
&lt;br /&gt;
  cd df_linux&lt;br /&gt;
  curl -L http://pastebin.com/raw/jX4Wf062 &amp;gt; df&lt;br /&gt;
  mkdir c_libs&lt;br /&gt;
  mv libs/libgcc_s.so.1 libs/libstdc++.so.6 c_libs/&lt;br /&gt;
  chmod a+x df&lt;br /&gt;
&lt;br /&gt;
Then run it!&lt;br /&gt;
  ./df&lt;br /&gt;
&lt;br /&gt;
=== Gentoo ===&lt;br /&gt;
&lt;br /&gt;
There is a ''Dwarf Fortress'' [https://packages.gentoo.org/package/games-roguelike/dwarf-fortress ebuild] in the main Gentoo's portage tree compatible with the new multilib support.&lt;br /&gt;
&lt;br /&gt;
  # emerge -av games-roguelike/dwarf-fortress&lt;br /&gt;
&lt;br /&gt;
=== Solus ===&lt;br /&gt;
&lt;br /&gt;
Download ''Dwarf Fortress'' from the Bay 12 Games website. If you encounter the following error upon launch:&lt;br /&gt;
&lt;br /&gt;
  ./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory&lt;br /&gt;
&lt;br /&gt;
then simply run the following command to install the missing libraries:&lt;br /&gt;
&lt;br /&gt;
  sudo eopkg install sdl-ttf&lt;br /&gt;
&lt;br /&gt;
If you are running a 32bit version of ''Dwarf Fortress'', simply replace &amp;lt;code&amp;gt;sdl-ttf&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;sdl-ttf-32bit&amp;lt;/code&amp;gt; in the above command. You're all set!&lt;br /&gt;
&lt;br /&gt;
=== OpenSuse Tumbleweed ===&lt;br /&gt;
These instructions should work for OpenSuse Leap as well, they just haven't been tested yet.&lt;br /&gt;
==== Dependencies ====&lt;br /&gt;
   $ sudo zypper in libGLU1 libSDL_image-1_2-0 libSDL_ttf-2_0-0&lt;br /&gt;
==== Remove the included c++ library ====&lt;br /&gt;
The included library isn't compatible with OpenSuse's &amp;lt;code&amp;gt;libGLU1&amp;lt;/code&amp;gt; package&lt;br /&gt;
   $ cd path/to/df_linux/libs&lt;br /&gt;
   $ rm libstdc++.so.6&lt;br /&gt;
&lt;br /&gt;
cd back to df_linux/ and run the game!&lt;br /&gt;
   $ cd ../&lt;br /&gt;
   $ ./df&lt;br /&gt;
=== Wine ===&lt;br /&gt;
Downloading the windows version and running it with Wine works fine ([https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=32503 platinum] on 1.7.47 as of .4x.xx, which means the program runs flawlessly without any initial user configuration). This also avoids any issues with 32-bit versus 64-bit mode.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
If you get errors, it is likely that others will have had the same problem; Try searching the bay12games forum with the error message.&lt;br /&gt;
==== Sound ====&lt;br /&gt;
&lt;br /&gt;
After installing, DF will run, but will complain that it cannot find the OpenAL library and cannot play sounds, even when OpenAL (i386) has been installed. This is due to a bug/feature in which there is no link from the name of the library that DF is looking for (&amp;quot;libopenal.so&amp;quot;) to its implementation (&amp;quot;libopenal.so.1&amp;quot; - technically another link). To fix this, simply provide the necessary links in DF's own ''libs'' directory:&lt;br /&gt;
&lt;br /&gt;
  $ cd df_linux/libs&lt;br /&gt;
  $ ln -s /usr/lib/i386-linux-gnu/libopenal.so.1 ./libopenal.so&lt;br /&gt;
  $ ln -s /usr/lib/i386-linux-gnu/libsndfile.so.1 ./libsndfile.so&lt;br /&gt;
&lt;br /&gt;
==== TEXT mode ====&lt;br /&gt;
In this mode - which can be activated in [[init.txt]] - DF uses a terminal as its display, much like classic roguelikes such as Rogue, Moria, and Nethack originally did. There are some caveats for using this mode.&lt;br /&gt;
&lt;br /&gt;
Some key combinations in the default DF configuration will not work. These can be changed in game by pressing {{k|ESC}} then choosing the Key Bindings option or out of the game by editing the [[interface.txt]] file. This is due to the way terminal emulators handle input, the [https://en.wikipedia.org/wiki/Ncurses ncurses] library, and the way DF interfaces with them.{{bug|5494}} Some examples are the keypad keys with modifiers or {{k|Shift+Enter}}.&lt;br /&gt;
&lt;br /&gt;
DF uses the CP437 [[Character_table|character set]] and TEXT mode translates those to UTF-8. Characters will only be displayed correctly if the font the terminal emulator is using has glyphs for all of the set. A UTF-8 encoded text file to test glyph coverage can be found [http://www.orenwatson.be/cp437.htm here]. Download the text file, view it in the terminal (using more, less, cat, etc.), and check if the font the terminal is using includes all the characters shown on the HTML version. Some terminals may be configured to use a [https://en.wikipedia.org/wiki/Fallback_font fallback font] if the main one lacks a glyph - that may result in different sized glyphs being used.&lt;br /&gt;
&lt;br /&gt;
There is a [http://www.bay12forums.com/smf/index.php?topic=59983.0 utility] to convert a DF [[tileset]] to a TTF file. That thread also has downloads for some already converted sets. This does not work for graphics sets. This is one way to get a square font that includes all the characters. [https://www.kreativekorp.com/software/fonts/ksquare.shtml Kreative Square] is another though it has many more glyphs than are needed.&lt;br /&gt;
&lt;br /&gt;
DF's [[colors.txt]] file will have no effect. However, many terminal emulators have settings to change the colors they display. See the terminal emulator's man page for details. Note that the order of the [[Color#Color_values|colors]] is different - the position of the blues and reds are switched as are the cyans and brown/yellow. So, when copying DF color schemes into terminal emulator settings, be sure to change them to the correct order or you'll get yellow &amp;quot;sky&amp;quot;, red water, and blue blood.&lt;br /&gt;
&lt;br /&gt;
Many terminal emulators have a setting to treat bright colored text as bold instead. This will cause dark grey text to be &amp;quot;displayed&amp;quot; as bold, black text - usually on a black background - making it unreadable. See the terminal emulator's man page for an option to disable this behavior. (Note that LXTerminal's disallowbold option does not currently seem to work.)&lt;br /&gt;
&lt;br /&gt;
If the [[intro movie]] is enabled, DF will not use the full terminal size unless it receives a resize event. If the intro movie is disabled, DF will use the full size from the start. Note, however, that some DF screens do not use the full size of the window under any circumstance.&lt;br /&gt;
&lt;br /&gt;
==== Upgrading ====&lt;br /&gt;
&lt;br /&gt;
Since every new version of ''Dwarf Fortress'' unpacks in a directory named '''df_linux''' you have to manage upgrades yourself - or use the [http://dffd.wimbli.com/file.php?id=9639 Linux Updater Script]. 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.&lt;br /&gt;
&lt;br /&gt;
==== Manually installing 32-bit libraries ====&lt;br /&gt;
&lt;br /&gt;
If you do need to manually install the libraries, then the first step is to figure out where you will be putting them.  Check to see where your other 32-bit libraries are already installed; for example, on Debian, some are in /lib32 and others are in /usr/lib32.  Since libSDL is in /usr/lib32 on a Debian system, that's where we'll want to put libSDL_image and libSDL_ttf.  On other distributions, the path could be different.&lt;br /&gt;
&lt;br /&gt;
The second step is to get the 32-bit libraries.  You can typically do this by downloading them directly from your distribution's 32-bit package repository.  Again using Debian as our example, we can perform a search at http://packages.debian.org/ for files containing the word libSDL_image for the Intel x86 architecture.  This takes us to [http://packages.debian.org/search?searchon=contents&amp;amp;keywords=libSDL_image&amp;amp;mode=filename&amp;amp;suite=stable&amp;amp;arch=i386 a results page] from which we can proceed to [http://packages.debian.org/squeeze/libsdl-image1.2 the libsdl-image1.2 package page] with a list of download links arranged by architecture.  Grab the i386 package from here, and repeat this for the libSDL_ttf package, and whatever other library you are missing.  Store these package files somewhere convenient.&lt;br /&gt;
&lt;br /&gt;
The third step is to extract the libraries from the packages and get them in the proper location.  You probably ''won't'' be able simply to install the packages using your package manager, because they are for the wrong architecture.  Instead, you'll probably have to extract them by hand.  The steps for doing this are distribution-specific, so when in doubt consult your distribution's help resources. Here are the steps for a .deb package.&lt;br /&gt;
&lt;br /&gt;
* cd into some temporary working directory such as /tmp&lt;br /&gt;
* Extract the files from the .deb archive, which is in ar(1) format:&lt;br /&gt;
  tar x /path/to/libsdl-image1.2*_i386.deb&lt;br /&gt;
: This creates three files: debian-binary, control.tar.gz and data.tar.gz.  We only care about data.tar.gz.&lt;br /&gt;
* Extract data.tar.gz:&lt;br /&gt;
  tar xzf data.tar.gz&lt;br /&gt;
: This creates a subdirectory named usr with various files inside it.  We only care about usr/lib/libSDL_image-1.2.so.0.8.2 (or whatever precise version yours has).&lt;br /&gt;
* Move the shared library into place:&lt;br /&gt;
  sudo mv usr/lib/libSDL_image-1.2.so.* /usr/lib32/&lt;br /&gt;
* Create a symlink to it:&lt;br /&gt;
  cd /usr/lib32&lt;br /&gt;
  sudo ln -s libSDL_image-1.2.so.0.* libSDL_image-1.2.so.0&lt;br /&gt;
  cd -&lt;br /&gt;
&lt;br /&gt;
Repeat this for libSDL_ttf and whatever other libraries are required.&lt;br /&gt;
&lt;br /&gt;
'''NOTE''': If you get the error that libsndfile.so is not found, you must use the following:&lt;br /&gt;
  find */libsndfile.so*&lt;br /&gt;
cd to the correct directory, then use ln as shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;Not found: /data/art/mouse.png&amp;quot; ====&lt;br /&gt;
===== Fix 1: Preload zlib=====&lt;br /&gt;
Due to incompatibilities between DF's included zlib and newer versions of zlib, libpng can fail on newer systems. A solution is to add this line to the beginning of &amp;lt;code&amp;gt;/your/path/df_linux/df&amp;lt;/code&amp;gt; (or &amp;lt;code&amp;gt;/your/path/df_linux/dfhack&amp;lt;/code&amp;gt; if you use [[DFHack]]):&lt;br /&gt;
 export LD_PRELOAD=/usr/lib/libz.so.1&lt;br /&gt;
Note that this path can vary - be sure that it is referring to a '''32-bit''' zlib.&lt;br /&gt;
===== Fix 2: Use bmp instead =====&lt;br /&gt;
Another solution (if preloading zlib doesn't work) is to force DF to use the BMP versions of image files. You must first edit the ''/data/init/init.txt'' file and change all occurrences of &amp;quot;png&amp;quot; to &amp;quot;bmp&amp;quot;. This should solve all the error messages except for one: &amp;quot;''Not found: data/art/mouse.png''&amp;quot; since there is no setting in the init files to change it. The workaround for this is to edit the ''Dwarf_Fortress'' file found in the ''/your/path/df_linux/libs'' folder which contains the setting for the mouse cursor.&lt;br /&gt;
If you don't know how to do that, you can try this:&lt;br /&gt;
* cd to the ''/df_linux/libs'' folder&lt;br /&gt;
* open ''Dwarf_Fortress'' in ''vi'' or any other editor of your choise:&lt;br /&gt;
  vi ./Dwarf_Fortress&lt;br /&gt;
: This opens the file for editing (text mode). If you are not familiar with ''vi'', it would be a good idea to follow these steps exactly and not press any other keys since they all activate specific commands. If you do press a key though, you can press the ''ESC key'' a few times to cancel the command.&lt;br /&gt;
* With vi open, write the following string and press ''Enter'':&lt;br /&gt;
  /mouse&lt;br /&gt;
: This will search for all the strings that contain the word &amp;quot;mouse&amp;quot; and place the cursor on the first match. Pressing the ''n key'' will cycle through all the matches.&lt;br /&gt;
* Press the ''n'' key until the cursor moves to the desired string, which is &amp;quot;''data/art/mouse.png''&amp;quot;. If you accidentally move past the string, you can cycle back through the matched strings using the ''N key'' (shift + n).&lt;br /&gt;
* Once you find the right string, you will have to move the cursor over the &amp;quot;p&amp;quot; in &amp;quot;[..]/mouse.&amp;lt;b&amp;gt;p&amp;lt;/b&amp;gt;ng&amp;quot;. You do that by pressing the ''l key'' which will move the cursor to the right. There is also the ''h key'' to move the cursor to the left, in case you move past it.&lt;br /&gt;
* With the cursor in the right position press the following key sequence:&lt;br /&gt;
  xxxibmp&lt;br /&gt;
: This will replace the ''.png'' extension with the ''.bmp'' one which solves the problem of the missing ''/data/art/mouse.png'' error.&lt;br /&gt;
* All there is left to do is to save the modifications to the file and quit ''vi''. For that, press the ''ESC key'' once or twice and then press the following key sequence after which you press ''Enter'':&lt;br /&gt;
  :wq&lt;br /&gt;
: This saves the changes and quits 'vi'&lt;br /&gt;
&lt;br /&gt;
Now the game should work properly. Have fun!&lt;br /&gt;
&lt;br /&gt;
==FreeBSD==&lt;br /&gt;
&lt;br /&gt;
Although there is no official version ported to FreeBSD, ''Dwarf Fortress'' can nevertheless be run using either Wine or FreeBSD's compatibility with Linux. There is now an [https://www.freshports.org/games/linux-dwarffortress/ official port] and installing it can be done the following way (with ports):&lt;br /&gt;
&lt;br /&gt;
  cd /usr/ports/games/linux-dwarffortress/ &amp;amp;&amp;amp; make install clean&lt;br /&gt;
&lt;br /&gt;
or, with pkg:&lt;br /&gt;
&lt;br /&gt;
  pkg install linux-dwarffortress&lt;br /&gt;
&lt;br /&gt;
You may also wish to download and run it manually. However, attempting to run the Linux version out of the blue will result in an error about missing library files. Such files must be downloaded from special linux-compatible packages or ports; using your preferred installation method, install the following:&lt;br /&gt;
&lt;br /&gt;
===linux-c6===&lt;br /&gt;
  sudo pkg install linux-c6-gtk2 linux-c6-sdl linux-c6-sdl_image linux-c6-sdl_ttf linux-c6-libGLU \&lt;br /&gt;
  linux-c6-openal-soft linux-c6-libsndfile linux-c6-alsa-plugins-oss&lt;br /&gt;
&lt;br /&gt;
===linux-f10===&lt;br /&gt;
If you don't have the linux-c6 ports available in your system, you can still run ''Dwarf Fortress'' (albeit without sound) using the following packages:&lt;br /&gt;
  sudo pkg install linux-f10-alsa-lib linux-f10-atk linux-f10-cairo linux-f10-expat linux-f10-fontconfig \&lt;br /&gt;
  linux-f10-gtk2 linux-f10-jpeg linux-f10-pango linux-f10-png linux-f10-sdl linux-f10-sdl_image linux-f10-tiff \&lt;br /&gt;
  linux-f10-xorg-libs linux-sdl_ttf linux_base-f10 linux_dri linux-f10-libGLU&lt;br /&gt;
linux_dri might be optional if you have the NVIDIA driver. Note that due to the lack of a linux-f10-libsndfile port, the sound will not work. Requests are being made to [http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2013-January/247698.html port] it, as well as a [https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=178474 DF] port itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After you install the required packages, copy (or symlink) DF's own library files to the linux-compatible directory:&lt;br /&gt;
  cd dwarf_fortress_directory&lt;br /&gt;
  sudo cp libs/lib* /compat/linux/usr/lib/&lt;br /&gt;
Or&lt;br /&gt;
  cd dwarf_fortress_directory&lt;br /&gt;
  sudo ln -s libs/lib* /compat/linux/usr/lib/&lt;br /&gt;
&lt;br /&gt;
You can then run DF normally. Although it will likely display a bunch of warnings and errors about fonts, it should work.&lt;br /&gt;
&lt;br /&gt;
If you want to avoid polluting your linux-compatible directory, you can always just set LD_LIBRARY_PATH when running df:&lt;br /&gt;
  LD_LIBRARY_PATH=libs:$LD_LIBRARY_PATH ./df&lt;br /&gt;
&lt;br /&gt;
== Chrome OS (Crostini) ==&lt;br /&gt;
&lt;br /&gt;
It is possible to add ''Dwarf Fortress'' to Chrome OS using the Linux (Beta), to add Linux to Chrome OS, [https://support.google.com/chromebook/answer/9145439?p=chromebook_linuxapps check here to enable it]&lt;br /&gt;
You will need to edit the sources list to include the &amp;quot;non-free&amp;quot; repository, this is done by adding &amp;quot;non-free&amp;quot; to the end of the main sources file found at /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
e.g.&lt;br /&gt;
  # Generated by distrobuilder&lt;br /&gt;
  deb https://deb.debian.org/debian buster main non-free&lt;br /&gt;
  deb https://deb.debian.org/debian-security buster/updates main non-free&lt;br /&gt;
Followed by running&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
Then just follow the Debian instructions above&lt;br /&gt;
&lt;br /&gt;
== Android ==&lt;br /&gt;
&lt;br /&gt;
There is no Android version, but the Windows version can be run on it using ExaGear, Eltech's Windows emulator (which is essentially Wine for Android), as documented [http://www.bay12forums.com/smf/index.php?topic=174983.0 here]. The app isn't free though.&lt;br /&gt;
&lt;br /&gt;
== iOS ==&lt;br /&gt;
&lt;br /&gt;
There is no iOS version, but you may remotely connect to a computer running DF through an app called [https://mifki.com/df/ Dwarf Fortress Remote]. This requires a special version of [[DFHack]] to be run on the target computer which you may download at the same time. It also provides a subscription where you connect to an already set up remote server.&lt;br /&gt;
&lt;br /&gt;
= Documentation =&lt;br /&gt;
&lt;br /&gt;
Fortunately, the documentation on this wiki is very detailed and extensive. You may want to start out with:&lt;br /&gt;
* [[Tutorials]]&lt;br /&gt;
* [[Quickstart_guide|Fortress Mode Quickstart Guide]]&lt;br /&gt;
* [[Adventure mode quick start|Adventure Mode Quickstart Guide]]&lt;br /&gt;
&lt;br /&gt;
Then move on to:&lt;br /&gt;
* [[Dwarf fortress mode|Fortress Mode reference]]&lt;br /&gt;
* [[Adventure mode|Adventure Mode reference]]&lt;br /&gt;
* [[Special:Search|Searching]] the wiki&lt;br /&gt;
&lt;br /&gt;
{{Getting Started}}&lt;/div&gt;</summary>
		<author><name>Bachsau</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=DF2014_Talk:Installation&amp;diff=246442</id>
		<title>DF2014 Talk:Installation</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=DF2014_Talk:Installation&amp;diff=246442"/>
		<updated>2019-08-15T00:33:29Z</updated>

		<summary type="html">&lt;p&gt;Bachsau: /* libstdc++ compatibility */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==More info needed on Windows installation==&lt;br /&gt;
Currently says:&lt;br /&gt;
:extract the archive file to a folder somewhere&lt;br /&gt;
:and run the game from within the folder.&lt;br /&gt;
&lt;br /&gt;
I already did the first step intuitively but &amp;lt;s&amp;gt;I am not sure how to run the game from within the folder. What file do you open?&amp;lt;/s&amp;gt; okay I figured out it is Dwarf_Fortress.exe but I think it would be good to note that, will mention on the page. [[Special:Contributions/184.145.18.50|184.145.18.50]] 20:31, 27 February 2016 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Needed openSUSE info==&lt;br /&gt;
&lt;br /&gt;
I can't find openSUSE info anywhere... --[[Special:Contributions/87.220.135.233|87.220.135.233]] 05:16, 29 April 2016 (UTC)&lt;br /&gt;
&lt;br /&gt;
== 64bit support for Linux ==&lt;br /&gt;
&lt;br /&gt;
Now that DF is built for amd64 much of the Linux section is unnecessary as only native libraries are needed now.&lt;br /&gt;
:Can confirm that the [https://www.archlinux.org/packages/community/x86_64/dwarffortress/ Arch Linux package] is x86_64 now. [[Special:Contributions/89.234.157.254|89.234.157.254]] 16:15, 18 October 2018 (UTC)&lt;br /&gt;
:I've updated the Debian-based instructions to clear up the dependency mess and only include the packages that you actually need; at some point I'll evaluate the current apt package on a new installation and see what other instructions it might need as well. It looks like the current package is v0.44.09, does anyone have experience getting it working? [[User:Tobultaran|Tobultaran]] ([[User talk:Tobultaran|talk]]) 22:58, 31 July 2019 (UTC)&lt;br /&gt;
&lt;br /&gt;
==libstdc++ compatibility==&lt;br /&gt;
New installation on Debian Sid 64bit, DF 0.44.12, GCC 8.3.0. The guide works fine, but it fails with two &amp;quot;libs/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/x86_64-linux-gnu/libGLU.so.1)&amp;quot;. It seems to get fixed (the game starts) with a &amp;quot;ln -sf /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libs/libstdc++.so.6&amp;quot; like the ones for the sound (but with -f), but doing so deletes the already existing file and I don't know what's in there, so I didn't change the main page.  [[User:DD|DD]] ([[User talk:DD|talk]]) 20:19, 14 August 2019 (UTC)&lt;br /&gt;
:Getting rid of the DF-provided libstdc++ is something I've seen suggested lots of places; I'm surprised it isn't mentioned in the article. (And removing it is fine - you don't even need the symlink step.) The [[DF2014:Installation#CentOS_7|CentOS instructions]] do that, although in a somewhat convoluted way. I'll mention it as a general Linux compatibility fix. &amp;amp;mdash;[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 23:33, 14 August 2019 (UTC)&lt;br /&gt;
:Yes, just delete it. Bundling libstdc++ is a common MISTAKE developers keep on making ever again and it almost never works, because there are so much configuration options when compiling that it is always better to use the version shipped with a distribution. --[[User:Bachsau|Bachsau]] ([[User talk:Bachsau|talk]]) 00:33, 15 August 2019 (UTC)&lt;/div&gt;</summary>
		<author><name>Bachsau</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=User:Bachsau/Template:Welcome&amp;diff=246345</id>
		<title>User:Bachsau/Template:Welcome</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=User:Bachsau/Template:Welcome&amp;diff=246345"/>
		<updated>2019-08-06T14:04:15Z</updated>

		<summary type="html">&lt;p&gt;Bachsau: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;table border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;margin:10px 0;border:1px solid #dfdfdf;padding:1em;background-color:#F8F8FF;&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td style=&amp;quot;vertical-align:top;&amp;quot;&amp;gt;__TOC__&amp;lt;/td&amp;gt;&amp;lt;td style=&amp;quot;padding-left:10px;vertical-align:top;&amp;quot;&amp;gt;Welcome to my discussion page!&lt;br /&gt;
&lt;br /&gt;
Please use the &amp;quot;&amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[{{fullurl:{{FULLPAGENAME}}|action=edit&amp;amp;section=new}} Add topic]&amp;lt;/span&amp;gt;&amp;quot; tab when you start a new topic, and don't forget to add your signature (''&amp;lt;nowiki&amp;gt;--~~~~&amp;lt;/nowiki&amp;gt;''). Questions asked on this page will be answered here. Answers to my questions on other user's pages are expected there. Please indent your answers with a colon.&lt;br /&gt;
&lt;br /&gt;
Should you miss previous discussions, please have a look at the &amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[{{fullurl:{{FULLPAGENAME}}|action=history}} history]&amp;lt;/span&amp;gt;. Once in a while I remove finished topics, and there's no sense in having an additional archive. &amp;lt;div style=&amp;quot;float:right;font-size:smaller;text-align:right;&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;plainlinks&amp;quot; style=&amp;quot;font-style:italic;&amp;quot;&amp;gt;[{{fullurl:User talk:Bachsau|action=edit&amp;amp;oldid=235276&amp;amp;minor=1&amp;amp;summary=Archived+old+discussions}} Archive discussions]&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;{{Clear}}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bachsau</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Installation&amp;diff=246344</id>
		<title>Installation</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Installation&amp;diff=246344"/>
		<updated>2019-08-06T13:58:25Z</updated>

		<summary type="html">&lt;p&gt;Bachsau: /* Mac */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quality|Exceptional|12:06, 26 January 2015 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
{{quick download|{{current/version/ns}}}}&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
{{TOC right}}&lt;br /&gt;
= Download =&lt;br /&gt;
&lt;br /&gt;
Free alpha builds of ''Dwarf Fortress Classic'' are available directly from the developers, Bay 12 Games, at http://www.bay12games.com/dwarves/ . The three downloads linked at the top of the main page are 64-bit versions of DF for Windows, macOS, and Linux. &amp;quot;All versions&amp;quot; links to a page with additional choices, including 32-bit builds for all platforms, &amp;quot;small&amp;quot; builds for Windows (which lack sound files), and &amp;quot;legacy&amp;quot; builds for Windows. Generally, the SDL builds for Windows should be preferred, although the Legacy builds may be necessary on some older computers.&lt;br /&gt;
&lt;br /&gt;
''Dwarf Fortress'' is slated to be released on the [https://store.steampowered.com/app/975370/Dwarf_Fortress/ Steam] and [https://kitfoxgames.itch.io/dwarf-fortress itch.io] platforms in the future. These paid versions of the game will include an all-new graphical [[tileset]] and new music tracks. Additionally, the Steam version will include Steam Workshop integration for [[mod]]ding. Most other features will be shared with ''Dwarf Fortress Classic'' (which will remain available for free). &lt;br /&gt;
&lt;br /&gt;
== Third-Party Packages ==&lt;br /&gt;
&lt;br /&gt;
{{main|Utility:Lazy Newb Pack}}&lt;br /&gt;
&lt;br /&gt;
There are several packages which bundle the game with several utilities and graphics sets, usually configurable with an included launcher. These are listed on the [[Utility:Lazy Newb Pack|Lazy Newb Pack]] page.&lt;br /&gt;
&lt;br /&gt;
The ''Dwarf Fortress'' community often creates custom [[Graphics set repository|graphics sets]], [[Tileset repository|tilesets]] and [[Color_scheme#Custom_color_schemes|color schemes]]. They're like graphical mods that make DF look prettier or just different. A lot of people pack the game folder with the tileset installed and everything already set up, so all you have to do is extract and play. Among the most popular of these are [http://www.bay12forums.com/smf/index.php?topic=53180.0 Ironhand's Graphics Set] and [http://www.bay12forums.com/smf/index.php?topic=57557.0 Phoebus' Graphic Set].  Most notable graphics sets are included in the packs mentioned above.&lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
:''Also see: [[System requirements]]''&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
&lt;br /&gt;
There is no installer for the game. Simply extract the archive file to a folder somewhere and run the game from within the folder by opening &amp;quot;Dwarf Fortress.exe&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Make sure to actually ''extract'' the archive; do not just open the archive and run the game from the window that appears. If you do this then it may appear to work, but your save game data will get discarded. This is the cause of many &amp;quot;my saved games keep getting deleted&amp;quot; complaints. The game also needs to be able to write to its own folder, so do '''not''' install it in C:\Program Files if you are running Windows Vista or later.&lt;br /&gt;
&lt;br /&gt;
If you have an error stating that MSVCP140.dll is missing, it can be obtained by downloading [https://www.microsoft.com/en-us/download/details.aspx?id=48145 Visual C++ Redistributable for Visual Studio 2015]. When prompted choose the x64 version for 64-bit DF, or the x86 version for 32-bit DF.&lt;br /&gt;
&lt;br /&gt;
== Mac ==&lt;br /&gt;
&lt;br /&gt;
The Mac version is not a single application bundle, but like the Windows version it consists of a folder containing the application along with data files and there is no installer. The entire folder can be dragged into the Applications folder or placed elsewhere. As with the Windows version, the game must be able to write to its own folder.&lt;br /&gt;
&lt;br /&gt;
To start the game execute the launch script &amp;quot;df&amp;quot;. Launching &amp;quot;dwarfort.exe&amp;quot; by itself will ''not'' work (since the &amp;quot;df&amp;quot; script sets up [[wikipedia:environment variables|environment variables]] pointing to DF's libraries).&lt;br /&gt;
&lt;br /&gt;
On OS X 10.8 and above, you will need to [http://www.bay12games.com/dwarves/mantisbt/view.php?id=7389#c32194 update the SDL_ttf library] to run ''Dwarf Fortress''. {{bug|7389}}&lt;br /&gt;
* [https://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11.dmg Download] SDL_ttf 2.0.11 and replace the file libs/SDL_ttf.framework with the one from the downloaded folder.&lt;br /&gt;
&lt;br /&gt;
On OS X 10.11 and above, for the 32-bit version of DF only, you will need to [http://www.bay12games.com/dwarves/mantisbt/view.php?id=2624#c33110 update the SDL library]:&lt;br /&gt;
* [https://www.libsdl.org/release/SDL-1.2.15.dmg Download] SDL 1.2.15 and replace the file libs/SDL.framework with the one from the downloaded folder&lt;br /&gt;
&lt;br /&gt;
On case-sensitive filesystems, the game will not launch ootb. {{bug|11136}}&lt;br /&gt;
* Rename &amp;quot;libs/SDL_ttf.framework/Versions/A/Frameworks/FreeType.framework&amp;quot; to &amp;quot;libs/SDL_ttf.framework/Versions/A/Frameworks/freetype.framework&amp;quot; to fix this.&lt;br /&gt;
&lt;br /&gt;
Alternatively, instead of replacing SDL, you can change the PRINT_MODE setting in data/init/[[init.txt]] to STANDARD (or anything not related to 2D). {{bug|2624}}&lt;br /&gt;
&lt;br /&gt;
Retina display users will also need to change PRINT_MODE to STANDARD (or any non-2D option) in [[init.txt]]. {{bug|6031}}&lt;br /&gt;
&lt;br /&gt;
There is an [https://github.com/Bachsau/DF-Mac-Bundle/archive/master.zip .app-launcher] that expects the game to be installed in the &amp;quot;Library/Application Support/Dwarf Fortress&amp;quot; subdirectory of the user's home folder. It starts ''Dwarf Fortress'' without a terminal window from Launchpad or the Dock.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
&lt;br /&gt;
As of 0.43.05, both 64-bit and 32-bit compiled editions are available for ''Dwarf Fortress''. For older versions you can run the 32-bit compiled edition with a 64-bit system, provided that you have the (32-bit) shared libraries available that the program needs. Note that users of 32-bit systems have to click the All Versions button on the ''Dwarf Fortress'' download page in order to get the 32-bit edition.&lt;br /&gt;
&lt;br /&gt;
''Dwarf Fortress'' for Linux is meant to be run from a terminal (command-line) interface, and so the instructions here will assume you know how to login and get to a command prompt.  At least in the default mode, however, ''Dwarf Fortress'' is an X client (graphical desktop) program, so you should be in a terminal inside an X session before starting the game.  Dwarf Fortress will create a new X window outside of the terminal window, so don't worry about the size of the terminal.&lt;br /&gt;
&lt;br /&gt;
*'''Downloading''': Either download it from the [http://www.bay12games.com/dwarves/ Dwarf Fortress Homepage], or from the terminal call (replacing &amp;quot;XX_YY&amp;quot; with the numbers in the most current ''Dwarf Fortress'' file version, found on the [http://www.bay12games.com/dwarves/ site]):&lt;br /&gt;
&amp;lt;code&amp;gt;wget http://www.bay12games.com/dwarves/df_XX_YY_linux.tar.bz2&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''Unpacking''': Dwarf Fortress is shipped as a (bzip2) compressed tar archive.  It will extract into a new directory called '''df_linux'''.  So, cd to wherever you want the game to be unpacked, and then run&lt;br /&gt;
 tar -xjf /path/to/df_XX_YY_linux.tar.bz2&lt;br /&gt;
(where df_XX_YY_linux.tar.bz2 is the filename).  Then&lt;br /&gt;
 cd df_linux&lt;br /&gt;
to change into the new directory, and&lt;br /&gt;
 ./df&lt;br /&gt;
to execute the ''Dwarf Fortress'' wrapper script.&lt;br /&gt;
&lt;br /&gt;
(note: &amp;lt;code&amp;gt;tar -xjvf ./df_XX_YY_linux.tar.bz2&amp;lt;/code&amp;gt; may be needed in some cases.)&lt;br /&gt;
&lt;br /&gt;
When you installed Linux, you chose one of a 32-bit or 64-bit architectures. The programs on your system will then be compiled either for the 32-bit (i386, x86) arch, or the 64-bit (amd64, x86_64) arch.  If you've forgotten which one you have, you can check by running the command &amp;lt;code&amp;gt;uname -m&amp;lt;/code&amp;gt; in a terminal. A result of &amp;lt;code&amp;gt;x86_64&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;i686&amp;lt;/code&amp;gt; would indicate a 64-bit or a 32-bit system respectively.&lt;br /&gt;
&lt;br /&gt;
All that's needed now is to install the required dependencies. If you are getting errors about missing SDL_image libraries (etc.) then you simply need to install them. Use your distribution's package manager for this -- details will be extremely distribution-specific. You don't need the development versions of the packages with the headers (although that won't hurt) -- you just need the runtime versions, with the actual shared libraries. Specific installation commands for some popular distributions are listed below.&lt;br /&gt;
&lt;br /&gt;
Since ''Dwarf Fortress'' 0.43.05 is now compiled for both architectures, running natively shouldn't be an issue. However if you're wanting to run an older version of ''Dwarf Fortress'' on a 64-bit system, things get a bit trickier. Since older DF is only a 32-bit application, it will need 32-bit versions of the shared libraries. Some Linux distributions provide these in one or more packages that you can download. For example, in Debian, you'll need to enable the 32bit architecture in your package manager and install the relevant 32-bit libraries like libSDL. If your distribution does not include these, then you may have to supply them manually.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian-based ===&lt;br /&gt;
&lt;br /&gt;
Installing the dependencies for ''Dwarf Fortress'' is simple, but varies slightly depending on whether you're running a 32-bit OS, a 64-bit OS, or a 32-bit version of ''Dwarf Fortress'' on a 64-bit OS.&lt;br /&gt;
&lt;br /&gt;
==== 64-bit (recent version of ''Dwarf Fortress'', most modern machines) ====&lt;br /&gt;
&lt;br /&gt;
===== Install dependencies =====&lt;br /&gt;
&lt;br /&gt;
  $ sudo apt-get install libsdl1.2debian libsdl-image1.2 libsdl-ttf2.0-0 libopenal1 libsndfile1 libncursesw5&lt;br /&gt;
&lt;br /&gt;
This will install the SDL image and font libraries necessary, as well as libopenal and libsndfile, which are needed to get the sound working. It will also install libncursesw5, which is needed if you want to run ''Dwarf Fortress'' in ''TEXT'' mode.&lt;br /&gt;
&lt;br /&gt;
===== Fix sound issues =====&lt;br /&gt;
&lt;br /&gt;
Currently, ''Dwarf Fortress'' does not quite look in the correct place for the sound libraries it needs to play the wonderful music. This is easily fixed.&lt;br /&gt;
&lt;br /&gt;
Switch to the ''Dwarf Fortress'' folder and add some symlinks to the correct location:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/df_linux    # or other location, depending on where you installed ''Dwarf Fortress''&lt;br /&gt;
  $ ln -s /usr/lib/x86_64-linux-gnu/libopenal.so.1 libs/libopenal.so&lt;br /&gt;
  $ ln -s /usr/lib/x86_64-linux-gnu/libsndfile.so.1 libs/libsndfile.so&lt;br /&gt;
&lt;br /&gt;
==== Running 32-bit ''Dwarf Fortress'' on 64-bit Debian ====&lt;br /&gt;
&lt;br /&gt;
===== Install dependencies =====&lt;br /&gt;
&lt;br /&gt;
If you're trying to run a version of ''Dwarf Fortress'' older than 0.43.05, you'll need to install the 32-bit versions of the libraries. You can do this with:&lt;br /&gt;
&lt;br /&gt;
  $ sudo dpkg --add-architecture i386&lt;br /&gt;
  $ sudo apt-get update&lt;br /&gt;
  $ sudo apt-get install libsdl1.2debian:i386 libsdl-image1.2:i386 libsdl-ttf2.0-0:i386 libopenal1:i386 libsndfile1:i386 libncursesw5:i386&lt;br /&gt;
&lt;br /&gt;
===== Fix sound issues =====&lt;br /&gt;
&lt;br /&gt;
Almost the same as above, but the libraries will be in a different location as you're looking for the 32-bit versions:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/df_linux    # or other location, depending on where you installed ''Dwarf Fortress''&lt;br /&gt;
  $ ln -s /usr/lib/i386-linux-gnu/libopenal.so.1 libs/libopenal.so&lt;br /&gt;
  $ ln -s /usr/lib/i386-linux-gnu/libsndfile.so.1 libs/libsndfile.so&lt;br /&gt;
&lt;br /&gt;
==== 32-bit ====&lt;br /&gt;
&lt;br /&gt;
===== Install dependencies =====&lt;br /&gt;
&lt;br /&gt;
  $ sudo apt-get install libsdl1.2debian libsdl-image1.2 libsdl-ttf2.0-0 libopenal1 libsndfile1 libncursesw5&lt;br /&gt;
&lt;br /&gt;
As above, this will install the SDL image and font libraries, sound libraries, and text libraries.&lt;br /&gt;
&lt;br /&gt;
===== Fix sound issues =====&lt;br /&gt;
&lt;br /&gt;
Switch to the ''Dwarf Fortress'' folder and add some symlinks to the correct location:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/df_linux    # or other location, depending on where you installed ''Dwarf Fortress''&lt;br /&gt;
  $ ln -s /usr/lib/libopenal.so.1 libs/libopenal.so&lt;br /&gt;
  $ ln -s /usr/lib/libsndfile.so.1 libs/libsndfile.so&lt;br /&gt;
&lt;br /&gt;
==== Standard package ====&lt;br /&gt;
&lt;br /&gt;
''Dwarf Fortress'' is also available as a package in the (non-free) Debian repositories. You can install it (with all dependencies) with a simple&lt;br /&gt;
&lt;br /&gt;
  $ sudo apt-get install dwarf-fortress&lt;br /&gt;
&lt;br /&gt;
=== Fedora ===&lt;br /&gt;
&lt;br /&gt;
''Dwarf Fortress'' has been packaged in [https://rpmfusion.org/ RPM Fusion Nonfree], using a similar method as it is done in Arch Linux (see below). After [https://rpmfusion.org/Configuration installing RPM Fusion] you can simply run the following commands to install and run ''Dwarf Fortress'', which will pull in all the required dependencies:&lt;br /&gt;
&lt;br /&gt;
  $ sudo dnf install dwarffortress&lt;br /&gt;
  $ dwarffortress&lt;br /&gt;
&lt;br /&gt;
Some other tools are provided by the same packager in the [https://mars.arosser.com/fedora/dwarffortress/dwarffortress.repo &amp;quot;Dwarf Fortress for Fedora&amp;quot;] repository. For more information please [http://www.bay12forums.com/smf/index.php?topic=158289.msg7009116#msg7009116 see this forum thread].&lt;br /&gt;
&lt;br /&gt;
If you want to install 64-bit ''Dwarf Fortress'' manually, you can run the following:&lt;br /&gt;
&lt;br /&gt;
  $ sudo dnf install SDL SDL_image SDL_ttf gtk2-devel openal-soft alsa-lib alsa-plugins-pulseaudio mesa-dri-drivers&lt;br /&gt;
&lt;br /&gt;
On 64-bit Fedora installations, to install 32-bit ''Dwarf Fortress'' you can install 32-bit libraries by appending &amp;quot;.i686&amp;quot; to the package name:&lt;br /&gt;
&lt;br /&gt;
  $ sudo dnf install SDL.i686 SDL_image.i686 SDL_ttf.i686 gtk2-devel.i686 openal-soft.i686 alsa-lib.i686 alsa-plugins-pulseaudio.i686 mesa-dri-drivers.i686&lt;br /&gt;
&lt;br /&gt;
Fedora installs all 32-bit libraries to /usr/lib and 64-bit libraries to /usr/lib64 (with /lib and /lib64 being links to these two directories), so if you need to install stuff manually, look in there.&lt;br /&gt;
&lt;br /&gt;
=== Arch Linux ===&lt;br /&gt;
Although ''Dwarf Fortress'' may be installed using the method above (with some modifications), it is available through pacman (Arch Linux's package management system), in the [community], for 32-bit, and the [multilib], for 64-bit, repositories. These packages are updated as ''Dwarf Fortress'' is updated, and handle required dependencies.  &lt;br /&gt;
&lt;br /&gt;
==== 32-bit ====&lt;br /&gt;
All of the following commands must be run as root&lt;br /&gt;
&lt;br /&gt;
First, download and install ''Dwarf Fortress'' with pacman&lt;br /&gt;
  pacman -S dwarffortress&lt;br /&gt;
Any required dependencies will be installed, too.&lt;br /&gt;
&lt;br /&gt;
Next you need to add the user(s) that will be playing the game to the games group&lt;br /&gt;
  gpasswd -a [users] games&lt;br /&gt;
&lt;br /&gt;
Any users you added to the games group must now be logged out, if they were logged in&lt;br /&gt;
&lt;br /&gt;
Now ''Dwarf Fortress'' should be playable by typing:&lt;br /&gt;
  dwarffortress&lt;br /&gt;
As any user in the games group. Any edits to game files must be done in the '.dwarffortress' directory in the user's home directory, not /opt/dwarffortress.&lt;br /&gt;
&lt;br /&gt;
==== 64-Bit ====&lt;br /&gt;
Installing ''Dwarf Fortress'' on 64-bit installs of Arch Linux is the same as installing it on 32-bit systems, with the exception of the [multilib] repository needing to be enabled prior to install.  &lt;br /&gt;
&lt;br /&gt;
These commands also must be run as root.&lt;br /&gt;
&lt;br /&gt;
To enable the [multilib] repository run:&lt;br /&gt;
  nano /etc/pacman.conf&lt;br /&gt;
And delete the pound symbol(#) in front of these three lines (Make sure the top one says #[multilib] NOT #[multilib-testing]. Note that the &amp;lt;code&amp;gt;SigLevel&amp;lt;/code&amp;gt; line may not be present under [multilib] and it will most likely be higher up in the pacman.conf. This is fine and you can then simply remove the pound symbol from the two other lines.&lt;br /&gt;
 #[multilib]&lt;br /&gt;
 #SigLevel = PackageRequired&lt;br /&gt;
 #Include = /etc/pacman.d/mirrorlist&lt;br /&gt;
So that they look like this&lt;br /&gt;
 [multilib]&lt;br /&gt;
 SigLevel = PackageRequired&lt;br /&gt;
 Include = /etc/pacman.d/mirrorlist&lt;br /&gt;
Save the file by typing&lt;br /&gt;
  ctrl x&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
  pacman -Syyu&lt;br /&gt;
&lt;br /&gt;
===== Sound and Graphics =====&lt;br /&gt;
&lt;br /&gt;
After that you can continue the install as detailed in the 32-bit section. Required 32-bit dependencies will automatically be installed, however you may have to install more dependencies, depending on what sound support you use, and your graphics card&lt;br /&gt;
&lt;br /&gt;
If you use alsa sound, install lib32-alsa-lib with:&lt;br /&gt;
  pacman -S lib32-alsa-lib&lt;br /&gt;
&lt;br /&gt;
If use use pulse sound install lib32-libpulse with:&lt;br /&gt;
  pacman -S lib32-libpulse&lt;br /&gt;
&lt;br /&gt;
You will also need to install a 32-bit graphics driver. Install the driver from multilib that corresponds to your driver/device on [https://wiki.archlinux.org/index.php/Xorg#Driver_installation this chart]. ''For example'', if you have xf86-video-nouveau installed, you would run:&lt;br /&gt;
  pacman -S lib32-mesa-libgl&lt;br /&gt;
&lt;br /&gt;
If you don't know what driver/device you're currently using run:&lt;br /&gt;
  lspci -k&lt;br /&gt;
&lt;br /&gt;
Find the line that starts with &amp;quot;VGA compatible controller.&amp;quot; Your driver will be listed under &amp;quot;kernel driver in use&amp;quot;, like so:&lt;br /&gt;
  01:00.0 VGA compatible controller: NVIDIA Corporation GK106M [GeForce GTX 765M] (rev a1)&lt;br /&gt;
          Subsystem: ASUSTeK Computer Inc. Device 119d&lt;br /&gt;
          Kernel driver in use: nvidia&lt;br /&gt;
          Kernel modules: nouveau, nvidia&lt;br /&gt;
&lt;br /&gt;
If you are using/wish to use the AMD catalyst drivers, please note that they are no longer available within the main arch repositories. You will have to install them from the AUR. [https://wiki.archlinux.org/index.php/AMD_Catalyst#Installation See here for more information.]&lt;br /&gt;
&lt;br /&gt;
If you have Nvidia graphics, you may also want to install lib32-nvidia-utils with:&lt;br /&gt;
  pacman -S lib32-nvidia-utils&lt;br /&gt;
&lt;br /&gt;
=== CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
''Dwarf Fortress'' is now 64-bit, so simply run:&lt;br /&gt;
&lt;br /&gt;
  sudo yum install SDL SDL_image SDL_ttf openal&lt;br /&gt;
&lt;br /&gt;
Note that CentOS 7 ships with glibc 2.17, but ''Dwarf Fortress'' by default would like 2.18. [http://www.bay12games.com/dwarves/mantisbt/view.php?id=9893 This bug] has a fix, simply copy the [http://pastebin.com/jX4Wf062 Pastebin script], then move the libraries into a new folder.&lt;br /&gt;
&lt;br /&gt;
  cd df_linux&lt;br /&gt;
  curl -L http://pastebin.com/raw/jX4Wf062 &amp;gt; df&lt;br /&gt;
  mkdir c_libs&lt;br /&gt;
  mv libs/libgcc_s.so.1 libs/libstdc++.so.6 c_libs/&lt;br /&gt;
  chmod a+x df&lt;br /&gt;
&lt;br /&gt;
Then run it!&lt;br /&gt;
  ./df&lt;br /&gt;
&lt;br /&gt;
=== Gentoo ===&lt;br /&gt;
&lt;br /&gt;
There is a ''Dwarf Fortress'' [https://packages.gentoo.org/package/games-roguelike/dwarf-fortress ebuild] in the main Gentoo's portage tree compatible with the new multilib support.&lt;br /&gt;
&lt;br /&gt;
  # emerge -av games-roguelike/dwarf-fortress&lt;br /&gt;
&lt;br /&gt;
=== Solus ===&lt;br /&gt;
&lt;br /&gt;
Download ''Dwarf Fortress'' from the Bay 12 Games website. If you encounter the following error upon launch:&lt;br /&gt;
&lt;br /&gt;
  ./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory&lt;br /&gt;
&lt;br /&gt;
then simply run the following command to install the missing libraries:&lt;br /&gt;
&lt;br /&gt;
  sudo eopkg install sdl-ttf&lt;br /&gt;
&lt;br /&gt;
If you are running a 32bit version of ''Dwarf Fortress'', simply replace &amp;lt;code&amp;gt;sdl-ttf&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;sdl-ttf-32bit&amp;lt;/code&amp;gt; in the above command. You're all set!&lt;br /&gt;
&lt;br /&gt;
=== Wine ===&lt;br /&gt;
Downloading the windows version and running it with Wine works fine ([https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=32503 platinum] on 1.7.47 as of .4x.xx, which means the program runs flawlessly without any initial user configuration). This also avoids any issues with 32-bit versus 64-bit mode.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
If you get errors, it is likely that others will have had the same problem; Try searching the bay12games forum with the error message.&lt;br /&gt;
==== Sound ====&lt;br /&gt;
&lt;br /&gt;
After installing, DF will run, but will complain that it cannot find the OpenAL library and cannot play sounds, even when OpenAL (i386) has been installed. This is due to a bug/feature in which there is no link from the name of the library that DF is looking for (&amp;quot;libopenal.so&amp;quot;) to its implementation (&amp;quot;libopenal.so.1&amp;quot; - technically another link). To fix this, simply provide the necessary links in DF's own ''libs'' directory:&lt;br /&gt;
&lt;br /&gt;
  $ cd df_linux/libs&lt;br /&gt;
  $ ln -s /usr/lib/i386-linux-gnu/libopenal.so.1 ./libopenal.so&lt;br /&gt;
  $ ln -s /usr/lib/i386-linux-gnu/libsndfile.so.1 ./libsndfile.so&lt;br /&gt;
&lt;br /&gt;
==== Upgrading ==== &lt;br /&gt;
&lt;br /&gt;
Since every new version of ''Dwarf Fortress'' unpacks in a directory named '''df_linux''' you have to manage upgrades yourself - or use the [http://dffd.wimbli.com/file.php?id=9639 Linux Updater Script]. 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.&lt;br /&gt;
&lt;br /&gt;
==== Manually installing 32-bit libraries ====&lt;br /&gt;
&lt;br /&gt;
If you do need to manually install the libraries, then the first step is to figure out where you will be putting them.  Check to see where your other 32-bit libraries are already installed; for example, on Debian, some are in /lib32 and others are in /usr/lib32.  Since libSDL is in /usr/lib32 on a Debian system, that's where we'll want to put libSDL_image and libSDL_ttf.  On other distributions, the path could be different.&lt;br /&gt;
&lt;br /&gt;
The second step is to get the 32-bit libraries.  You can typically do this by downloading them directly from your distribution's 32-bit package repository.  Again using Debian as our example, we can perform a search at http://packages.debian.org/ for files containing the word libSDL_image for the Intel x86 architecture.  This takes us to [http://packages.debian.org/search?searchon=contents&amp;amp;keywords=libSDL_image&amp;amp;mode=filename&amp;amp;suite=stable&amp;amp;arch=i386 a results page] from which we can proceed to [http://packages.debian.org/squeeze/libsdl-image1.2 the libsdl-image1.2 package page] with a list of download links arranged by architecture.  Grab the i386 package from here, and repeat this for the libSDL_ttf package, and whatever other library you are missing.  Store these package files somewhere convenient.&lt;br /&gt;
&lt;br /&gt;
The third step is to extract the libraries from the packages and get them in the proper location.  You probably ''won't'' be able simply to install the packages using your package manager, because they are for the wrong architecture.  Instead, you'll probably have to extract them by hand.  The steps for doing this are distribution-specific, so when in doubt consult your distribution's help resources. Here are the steps for a .deb package.&lt;br /&gt;
&lt;br /&gt;
* cd into some temporary working directory such as /tmp&lt;br /&gt;
* Extract the files from the .deb archive, which is in ar(1) format:&lt;br /&gt;
  tar x /path/to/libsdl-image1.2*_i386.deb&lt;br /&gt;
: This creates three files: debian-binary, control.tar.gz and data.tar.gz.  We only care about data.tar.gz.&lt;br /&gt;
* Extract data.tar.gz:&lt;br /&gt;
  tar xzf data.tar.gz&lt;br /&gt;
: This creates a subdirectory named usr with various files inside it.  We only care about usr/lib/libSDL_image-1.2.so.0.8.2 (or whatever precise version yours has).&lt;br /&gt;
* Move the shared library into place:&lt;br /&gt;
  sudo mv usr/lib/libSDL_image-1.2.so.* /usr/lib32/&lt;br /&gt;
* Create a symlink to it:&lt;br /&gt;
  cd /usr/lib32&lt;br /&gt;
  sudo ln -s libSDL_image-1.2.so.0.* libSDL_image-1.2.so.0&lt;br /&gt;
  cd -&lt;br /&gt;
&lt;br /&gt;
Repeat this for libSDL_ttf and whatever other libraries are required.&lt;br /&gt;
&lt;br /&gt;
'''NOTE''': If you get the error that libsndfile.so is not found, you must use the following:&lt;br /&gt;
  find */libsndfile.so*&lt;br /&gt;
cd to the correct directory, then use ln as shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;Not found: /data/art/mouse.png&amp;quot; ====&lt;br /&gt;
===== Fix 1: Preload zlib=====&lt;br /&gt;
Due to incompatibilities between DF's included zlib and newer versions of zlib, libpng can fail on newer systems. A solution is to add this line to the beginning of &amp;lt;code&amp;gt;/your/path/df_linux/df&amp;lt;/code&amp;gt; (or &amp;lt;code&amp;gt;/your/path/df_linux/dfhack&amp;lt;/code&amp;gt; if you use [[DFHack]]):&lt;br /&gt;
 export LD_PRELOAD=/usr/lib/libz.so.1&lt;br /&gt;
Note that this path can vary - be sure that it is referring to a '''32-bit''' zlib.&lt;br /&gt;
===== Fix 2: Use bmp instead =====&lt;br /&gt;
Another solution (if preloading zlib doesn't work) is to force DF to use the BMP versions of image files. You must first edit the ''/data/init/init.txt'' file and change all occurrences of &amp;quot;png&amp;quot; to &amp;quot;bmp&amp;quot;. This should solve all the error messages except for one: &amp;quot;''Not found: data/art/mouse.png''&amp;quot; since there is no setting in the init files to change it. The workaround for this is to edit the ''Dwarf_Fortress'' file found in the ''/your/path/df_linux/libs'' folder which contains the setting for the mouse cursor.&lt;br /&gt;
If you don't know how to do that, you can try this:&lt;br /&gt;
* cd to the ''/df_linux/libs'' folder&lt;br /&gt;
* open ''Dwarf_Fortress'' in ''vi'' or any other editor of your choise:&lt;br /&gt;
  vi ./Dwarf_Fortress&lt;br /&gt;
: This opens the file for editing (text mode). If you are not familiar with ''vi'', it would be a good idea to follow these steps exactly and not press any other keys since they all activate specific commands. If you do press a key though, you can press the ''ESC key'' a few times to cancel the command.&lt;br /&gt;
* With vi open, write the following string and press ''Enter'':&lt;br /&gt;
  /mouse&lt;br /&gt;
: This will search for all the strings that contain the word &amp;quot;mouse&amp;quot; and place the cursor on the first match. Pressing the ''n key'' will cycle through all the matches.&lt;br /&gt;
* Press the ''n'' key until the cursor moves to the desired string, which is &amp;quot;''data/art/mouse.png''&amp;quot;. If you accidentally move past the string, you can cycle back through the matched strings using the ''N key'' (shift + n).&lt;br /&gt;
* Once you find the right string, you will have to move the cursor over the &amp;quot;p&amp;quot; in &amp;quot;[..]/mouse.&amp;lt;b&amp;gt;p&amp;lt;/b&amp;gt;ng&amp;quot;. You do that by pressing the ''l key'' which will move the cursor to the right. There is also the ''h key'' to move the cursor to the left, in case you move past it.&lt;br /&gt;
* With the cursor in the right position press the following key sequence:&lt;br /&gt;
  xxxibmp&lt;br /&gt;
: This will replace the ''.png'' extension with the ''.bmp'' one which solves the problem of the missing ''/data/art/mouse.png'' error.&lt;br /&gt;
* All there is left to do is to save the modifications to the file and quit ''vi''. For that, press the ''ESC key'' once or twice and then press the following key sequence after which you press ''Enter'':&lt;br /&gt;
  :wq&lt;br /&gt;
: This saves the changes and quits 'vi'&lt;br /&gt;
&lt;br /&gt;
Now the game should work properly. Have fun!&lt;br /&gt;
&lt;br /&gt;
==FreeBSD==&lt;br /&gt;
&lt;br /&gt;
Although there is no official version ported to FreeBSD, ''Dwarf Fortress'' can nevertheless be run using either Wine or FreeBSD's compatibility with Linux. However, attempting to run the Linux version out of the blue will result in an error about missing library files. Such files must be downloaded from special linux-compatible packages or ports; using your preferred installation method, install the following:&lt;br /&gt;
&lt;br /&gt;
===linux-c6===&lt;br /&gt;
  sudo pkg install linux-c6-gtk2 linux-c6-sdl linux-c6-sdl_image linux-c6-sdl_ttf linux-c6-libGLU \&lt;br /&gt;
  linux-c6-openal-soft linux-c6-libsndfile linux-c6-alsa-plugins-oss&lt;br /&gt;
&lt;br /&gt;
===linux-f10===&lt;br /&gt;
If you don't have the linux-c6 ports available in your system, you can still run ''Dwarf Fortress'' (albeit without sound) using the following packages:&lt;br /&gt;
  sudo pkg install linux-f10-alsa-lib linux-f10-atk linux-f10-cairo linux-f10-expat linux-f10-fontconfig \&lt;br /&gt;
  linux-f10-gtk2 linux-f10-jpeg linux-f10-pango linux-f10-png linux-f10-sdl linux-f10-sdl_image linux-f10-tiff \&lt;br /&gt;
  linux-f10-xorg-libs linux-sdl_ttf linux_base-f10 linux_dri linux-f10-libGLU&lt;br /&gt;
linux_dri might be optional if you have the NVIDIA driver. Note that due to the lack of a linux-f10-libsndfile port, the sound will not work. Requests are being made to [http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2013-January/247698.html port] it, as well as a [https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=178474 DF] port itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After you install the required packages, copy (or symlink) DF's own library files to the linux-compatible directory:&lt;br /&gt;
  cd dwarf_fortress_directory&lt;br /&gt;
  sudo cp libs/lib* /compat/linux/usr/lib/&lt;br /&gt;
Or&lt;br /&gt;
  cd dwarf_fortress_directory&lt;br /&gt;
  sudo ln -s libs/lib* /compat/linux/usr/lib/&lt;br /&gt;
&lt;br /&gt;
You can then run df normally. Although it will likely display a bunch of warnings and errors about fonts, it should work.&lt;br /&gt;
&lt;br /&gt;
If you want to avoid polluting your linux-compatible directory, you can always just set LD_LIBRARY_PATH when running df:&lt;br /&gt;
  LD_LIBRARY_PATH=libs:$LD_LIBRARY_PATH ./df&lt;br /&gt;
&lt;br /&gt;
= Documentation =&lt;br /&gt;
&lt;br /&gt;
Fortunately the documentation on this wiki is very detailed and extensive. You may want to start out with:&lt;br /&gt;
* [[Tutorials]]&lt;br /&gt;
* [[Quickstart_guide|Fortress Mode Quickstart Guide]]&lt;br /&gt;
* [[Adventure mode quick start|Adventure Mode Quickstart Guide]]&lt;br /&gt;
&lt;br /&gt;
Then move on to:&lt;br /&gt;
* [[Dwarf fortress mode|Fortress Mode reference]]&lt;br /&gt;
* [[Adventure mode|Adventure Mode reference]]&lt;br /&gt;
* [[Special:Search|Searching]] the wiki&lt;br /&gt;
&lt;br /&gt;
{{Getting Started}}&lt;/div&gt;</summary>
		<author><name>Bachsau</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Installation&amp;diff=246343</id>
		<title>Installation</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Installation&amp;diff=246343"/>
		<updated>2019-08-06T13:51:12Z</updated>

		<summary type="html">&lt;p&gt;Bachsau: /* Mac */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Quality|Exceptional|12:06, 26 January 2015 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
{{quick download|{{current/version/ns}}}}&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
{{TOC right}}&lt;br /&gt;
= Download =&lt;br /&gt;
&lt;br /&gt;
Free alpha builds of ''Dwarf Fortress Classic'' are available directly from the developers, Bay 12 Games, at http://www.bay12games.com/dwarves/ . The three downloads linked at the top of the main page are 64-bit versions of DF for Windows, macOS, and Linux. &amp;quot;All versions&amp;quot; links to a page with additional choices, including 32-bit builds for all platforms, &amp;quot;small&amp;quot; builds for Windows (which lack sound files), and &amp;quot;legacy&amp;quot; builds for Windows. Generally, the SDL builds for Windows should be preferred, although the Legacy builds may be necessary on some older computers.&lt;br /&gt;
&lt;br /&gt;
''Dwarf Fortress'' is slated to be released on the [https://store.steampowered.com/app/975370/Dwarf_Fortress/ Steam] and [https://kitfoxgames.itch.io/dwarf-fortress itch.io] platforms in the future. These paid versions of the game will include an all-new graphical [[tileset]] and new music tracks. Additionally, the Steam version will include Steam Workshop integration for [[mod]]ding. Most other features will be shared with ''Dwarf Fortress Classic'' (which will remain available for free). &lt;br /&gt;
&lt;br /&gt;
== Third-Party Packages ==&lt;br /&gt;
&lt;br /&gt;
{{main|Utility:Lazy Newb Pack}}&lt;br /&gt;
&lt;br /&gt;
There are several packages which bundle the game with several utilities and graphics sets, usually configurable with an included launcher. These are listed on the [[Utility:Lazy Newb Pack|Lazy Newb Pack]] page.&lt;br /&gt;
&lt;br /&gt;
The ''Dwarf Fortress'' community often creates custom [[Graphics set repository|graphics sets]], [[Tileset repository|tilesets]] and [[Color_scheme#Custom_color_schemes|color schemes]]. They're like graphical mods that make DF look prettier or just different. A lot of people pack the game folder with the tileset installed and everything already set up, so all you have to do is extract and play. Among the most popular of these are [http://www.bay12forums.com/smf/index.php?topic=53180.0 Ironhand's Graphics Set] and [http://www.bay12forums.com/smf/index.php?topic=57557.0 Phoebus' Graphic Set].  Most notable graphics sets are included in the packs mentioned above.&lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
:''Also see: [[System requirements]]''&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
&lt;br /&gt;
There is no installer for the game. Simply extract the archive file to a folder somewhere and run the game from within the folder by opening &amp;quot;Dwarf Fortress.exe&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Make sure to actually ''extract'' the archive; do not just open the archive and run the game from the window that appears. If you do this then it may appear to work, but your save game data will get discarded. This is the cause of many &amp;quot;my saved games keep getting deleted&amp;quot; complaints. The game also needs to be able to write to its own folder, so do '''not''' install it in C:\Program Files if you are running Windows Vista or later.&lt;br /&gt;
&lt;br /&gt;
If you have an error stating that MSVCP140.dll is missing, it can be obtained by downloading [https://www.microsoft.com/en-us/download/details.aspx?id=48145 Visual C++ Redistributable for Visual Studio 2015]. When prompted choose the x64 version for 64-bit DF, or the x86 version for 32-bit DF.&lt;br /&gt;
&lt;br /&gt;
== Mac ==&lt;br /&gt;
&lt;br /&gt;
The Mac version is not a single application bundle, but like the Windows version it consists of a folder containing the application along with data files and there is no installer. The entire folder can be dragged into the Applications folder or placed elsewhere. As with the Windows version, the game must be able to write to its own folder.&lt;br /&gt;
&lt;br /&gt;
To start the game execute the launch script &amp;quot;df&amp;quot;. Launching &amp;quot;dwarfort.exe&amp;quot; by itself will ''not'' work (since the &amp;quot;df&amp;quot; script sets up [[wikipedia:environment variables|environment variables]] pointing to DF's libraries).&lt;br /&gt;
&lt;br /&gt;
On OS X 10.8 and above, you will need to [http://www.bay12games.com/dwarves/mantisbt/view.php?id=7389#c32194 update the SDL_ttf library] to run ''Dwarf Fortress''. {{bug|7389}}&lt;br /&gt;
* [https://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11.dmg Download] SDL_ttf 2.0.11 and replace the file libs/SDL_ttf.framework with the one from the downloaded folder.&lt;br /&gt;
&lt;br /&gt;
On OS X 10.11 and above, for the 32-bit version of DF only, you will need to [http://www.bay12games.com/dwarves/mantisbt/view.php?id=2624#c33110 update the SDL library]:&lt;br /&gt;
* [https://www.libsdl.org/release/SDL-1.2.15.dmg Download] SDL 1.2.15 and replace the file libs/SDL.framework with the one from the downloaded folder&lt;br /&gt;
&lt;br /&gt;
On case-sensitive filesystems, the game will not launch ootb. {{bug|11136}}&lt;br /&gt;
* Rename &amp;quot;libs/SDL_ttf.framework/Versions/A/Frameworks/FreeType.framework&amp;quot; to &amp;quot;libs/SDL_ttf.framework/Versions/A/Frameworks/freetype.framework&amp;quot; to fix this.&lt;br /&gt;
&lt;br /&gt;
Alternatively, instead of replacing SDL, you can change the PRINT_MODE setting in data/init/[[init.txt]] to STANDARD (or anything not related to 2D). {{bug|2624}}&lt;br /&gt;
&lt;br /&gt;
Retina display users will also need to change PRINT_MODE to STANDARD (or any non-2D option) in [[init.txt]]. {{bug|6031}}&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
&lt;br /&gt;
As of 0.43.05, both 64-bit and 32-bit compiled editions are available for ''Dwarf Fortress''. For older versions you can run the 32-bit compiled edition with a 64-bit system, provided that you have the (32-bit) shared libraries available that the program needs. Note that users of 32-bit systems have to click the All Versions button on the ''Dwarf Fortress'' download page in order to get the 32-bit edition.&lt;br /&gt;
&lt;br /&gt;
''Dwarf Fortress'' for Linux is meant to be run from a terminal (command-line) interface, and so the instructions here will assume you know how to login and get to a command prompt.  At least in the default mode, however, ''Dwarf Fortress'' is an X client (graphical desktop) program, so you should be in a terminal inside an X session before starting the game.  Dwarf Fortress will create a new X window outside of the terminal window, so don't worry about the size of the terminal.&lt;br /&gt;
&lt;br /&gt;
*'''Downloading''': Either download it from the [http://www.bay12games.com/dwarves/ Dwarf Fortress Homepage], or from the terminal call (replacing &amp;quot;XX_YY&amp;quot; with the numbers in the most current ''Dwarf Fortress'' file version, found on the [http://www.bay12games.com/dwarves/ site]):&lt;br /&gt;
&amp;lt;code&amp;gt;wget http://www.bay12games.com/dwarves/df_XX_YY_linux.tar.bz2&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''Unpacking''': Dwarf Fortress is shipped as a (bzip2) compressed tar archive.  It will extract into a new directory called '''df_linux'''.  So, cd to wherever you want the game to be unpacked, and then run&lt;br /&gt;
 tar -xjf /path/to/df_XX_YY_linux.tar.bz2&lt;br /&gt;
(where df_XX_YY_linux.tar.bz2 is the filename).  Then&lt;br /&gt;
 cd df_linux&lt;br /&gt;
to change into the new directory, and&lt;br /&gt;
 ./df&lt;br /&gt;
to execute the ''Dwarf Fortress'' wrapper script.&lt;br /&gt;
&lt;br /&gt;
(note: &amp;lt;code&amp;gt;tar -xjvf ./df_XX_YY_linux.tar.bz2&amp;lt;/code&amp;gt; may be needed in some cases.)&lt;br /&gt;
&lt;br /&gt;
When you installed Linux, you chose one of a 32-bit or 64-bit architectures. The programs on your system will then be compiled either for the 32-bit (i386, x86) arch, or the 64-bit (amd64, x86_64) arch.  If you've forgotten which one you have, you can check by running the command &amp;lt;code&amp;gt;uname -m&amp;lt;/code&amp;gt; in a terminal. A result of &amp;lt;code&amp;gt;x86_64&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;i686&amp;lt;/code&amp;gt; would indicate a 64-bit or a 32-bit system respectively.&lt;br /&gt;
&lt;br /&gt;
All that's needed now is to install the required dependencies. If you are getting errors about missing SDL_image libraries (etc.) then you simply need to install them. Use your distribution's package manager for this -- details will be extremely distribution-specific. You don't need the development versions of the packages with the headers (although that won't hurt) -- you just need the runtime versions, with the actual shared libraries. Specific installation commands for some popular distributions are listed below.&lt;br /&gt;
&lt;br /&gt;
Since ''Dwarf Fortress'' 0.43.05 is now compiled for both architectures, running natively shouldn't be an issue. However if you're wanting to run an older version of ''Dwarf Fortress'' on a 64-bit system, things get a bit trickier. Since older DF is only a 32-bit application, it will need 32-bit versions of the shared libraries. Some Linux distributions provide these in one or more packages that you can download. For example, in Debian, you'll need to enable the 32bit architecture in your package manager and install the relevant 32-bit libraries like libSDL. If your distribution does not include these, then you may have to supply them manually.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian-based ===&lt;br /&gt;
&lt;br /&gt;
Installing the dependencies for ''Dwarf Fortress'' is simple, but varies slightly depending on whether you're running a 32-bit OS, a 64-bit OS, or a 32-bit version of ''Dwarf Fortress'' on a 64-bit OS.&lt;br /&gt;
&lt;br /&gt;
==== 64-bit (recent version of ''Dwarf Fortress'', most modern machines) ====&lt;br /&gt;
&lt;br /&gt;
===== Install dependencies =====&lt;br /&gt;
&lt;br /&gt;
  $ sudo apt-get install libsdl1.2debian libsdl-image1.2 libsdl-ttf2.0-0 libopenal1 libsndfile1 libncursesw5&lt;br /&gt;
&lt;br /&gt;
This will install the SDL image and font libraries necessary, as well as libopenal and libsndfile, which are needed to get the sound working. It will also install libncursesw5, which is needed if you want to run ''Dwarf Fortress'' in ''TEXT'' mode.&lt;br /&gt;
&lt;br /&gt;
===== Fix sound issues =====&lt;br /&gt;
&lt;br /&gt;
Currently, ''Dwarf Fortress'' does not quite look in the correct place for the sound libraries it needs to play the wonderful music. This is easily fixed.&lt;br /&gt;
&lt;br /&gt;
Switch to the ''Dwarf Fortress'' folder and add some symlinks to the correct location:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/df_linux    # or other location, depending on where you installed ''Dwarf Fortress''&lt;br /&gt;
  $ ln -s /usr/lib/x86_64-linux-gnu/libopenal.so.1 libs/libopenal.so&lt;br /&gt;
  $ ln -s /usr/lib/x86_64-linux-gnu/libsndfile.so.1 libs/libsndfile.so&lt;br /&gt;
&lt;br /&gt;
==== Running 32-bit ''Dwarf Fortress'' on 64-bit Debian ====&lt;br /&gt;
&lt;br /&gt;
===== Install dependencies =====&lt;br /&gt;
&lt;br /&gt;
If you're trying to run a version of ''Dwarf Fortress'' older than 0.43.05, you'll need to install the 32-bit versions of the libraries. You can do this with:&lt;br /&gt;
&lt;br /&gt;
  $ sudo dpkg --add-architecture i386&lt;br /&gt;
  $ sudo apt-get update&lt;br /&gt;
  $ sudo apt-get install libsdl1.2debian:i386 libsdl-image1.2:i386 libsdl-ttf2.0-0:i386 libopenal1:i386 libsndfile1:i386 libncursesw5:i386&lt;br /&gt;
&lt;br /&gt;
===== Fix sound issues =====&lt;br /&gt;
&lt;br /&gt;
Almost the same as above, but the libraries will be in a different location as you're looking for the 32-bit versions:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/df_linux    # or other location, depending on where you installed ''Dwarf Fortress''&lt;br /&gt;
  $ ln -s /usr/lib/i386-linux-gnu/libopenal.so.1 libs/libopenal.so&lt;br /&gt;
  $ ln -s /usr/lib/i386-linux-gnu/libsndfile.so.1 libs/libsndfile.so&lt;br /&gt;
&lt;br /&gt;
==== 32-bit ====&lt;br /&gt;
&lt;br /&gt;
===== Install dependencies =====&lt;br /&gt;
&lt;br /&gt;
  $ sudo apt-get install libsdl1.2debian libsdl-image1.2 libsdl-ttf2.0-0 libopenal1 libsndfile1 libncursesw5&lt;br /&gt;
&lt;br /&gt;
As above, this will install the SDL image and font libraries, sound libraries, and text libraries.&lt;br /&gt;
&lt;br /&gt;
===== Fix sound issues =====&lt;br /&gt;
&lt;br /&gt;
Switch to the ''Dwarf Fortress'' folder and add some symlinks to the correct location:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/df_linux    # or other location, depending on where you installed ''Dwarf Fortress''&lt;br /&gt;
  $ ln -s /usr/lib/libopenal.so.1 libs/libopenal.so&lt;br /&gt;
  $ ln -s /usr/lib/libsndfile.so.1 libs/libsndfile.so&lt;br /&gt;
&lt;br /&gt;
==== Standard package ====&lt;br /&gt;
&lt;br /&gt;
''Dwarf Fortress'' is also available as a package in the (non-free) Debian repositories. You can install it (with all dependencies) with a simple&lt;br /&gt;
&lt;br /&gt;
  $ sudo apt-get install dwarf-fortress&lt;br /&gt;
&lt;br /&gt;
=== Fedora ===&lt;br /&gt;
&lt;br /&gt;
''Dwarf Fortress'' has been packaged in [https://rpmfusion.org/ RPM Fusion Nonfree], using a similar method as it is done in Arch Linux (see below). After [https://rpmfusion.org/Configuration installing RPM Fusion] you can simply run the following commands to install and run ''Dwarf Fortress'', which will pull in all the required dependencies:&lt;br /&gt;
&lt;br /&gt;
  $ sudo dnf install dwarffortress&lt;br /&gt;
  $ dwarffortress&lt;br /&gt;
&lt;br /&gt;
Some other tools are provided by the same packager in the [https://mars.arosser.com/fedora/dwarffortress/dwarffortress.repo &amp;quot;Dwarf Fortress for Fedora&amp;quot;] repository. For more information please [http://www.bay12forums.com/smf/index.php?topic=158289.msg7009116#msg7009116 see this forum thread].&lt;br /&gt;
&lt;br /&gt;
If you want to install 64-bit ''Dwarf Fortress'' manually, you can run the following:&lt;br /&gt;
&lt;br /&gt;
  $ sudo dnf install SDL SDL_image SDL_ttf gtk2-devel openal-soft alsa-lib alsa-plugins-pulseaudio mesa-dri-drivers&lt;br /&gt;
&lt;br /&gt;
On 64-bit Fedora installations, to install 32-bit ''Dwarf Fortress'' you can install 32-bit libraries by appending &amp;quot;.i686&amp;quot; to the package name:&lt;br /&gt;
&lt;br /&gt;
  $ sudo dnf install SDL.i686 SDL_image.i686 SDL_ttf.i686 gtk2-devel.i686 openal-soft.i686 alsa-lib.i686 alsa-plugins-pulseaudio.i686 mesa-dri-drivers.i686&lt;br /&gt;
&lt;br /&gt;
Fedora installs all 32-bit libraries to /usr/lib and 64-bit libraries to /usr/lib64 (with /lib and /lib64 being links to these two directories), so if you need to install stuff manually, look in there.&lt;br /&gt;
&lt;br /&gt;
=== Arch Linux ===&lt;br /&gt;
Although ''Dwarf Fortress'' may be installed using the method above (with some modifications), it is available through pacman (Arch Linux's package management system), in the [community], for 32-bit, and the [multilib], for 64-bit, repositories. These packages are updated as ''Dwarf Fortress'' is updated, and handle required dependencies.  &lt;br /&gt;
&lt;br /&gt;
==== 32-bit ====&lt;br /&gt;
All of the following commands must be run as root&lt;br /&gt;
&lt;br /&gt;
First, download and install ''Dwarf Fortress'' with pacman&lt;br /&gt;
  pacman -S dwarffortress&lt;br /&gt;
Any required dependencies will be installed, too.&lt;br /&gt;
&lt;br /&gt;
Next you need to add the user(s) that will be playing the game to the games group&lt;br /&gt;
  gpasswd -a [users] games&lt;br /&gt;
&lt;br /&gt;
Any users you added to the games group must now be logged out, if they were logged in&lt;br /&gt;
&lt;br /&gt;
Now ''Dwarf Fortress'' should be playable by typing:&lt;br /&gt;
  dwarffortress&lt;br /&gt;
As any user in the games group. Any edits to game files must be done in the '.dwarffortress' directory in the user's home directory, not /opt/dwarffortress.&lt;br /&gt;
&lt;br /&gt;
==== 64-Bit ====&lt;br /&gt;
Installing ''Dwarf Fortress'' on 64-bit installs of Arch Linux is the same as installing it on 32-bit systems, with the exception of the [multilib] repository needing to be enabled prior to install.  &lt;br /&gt;
&lt;br /&gt;
These commands also must be run as root.&lt;br /&gt;
&lt;br /&gt;
To enable the [multilib] repository run:&lt;br /&gt;
  nano /etc/pacman.conf&lt;br /&gt;
And delete the pound symbol(#) in front of these three lines (Make sure the top one says #[multilib] NOT #[multilib-testing]. Note that the &amp;lt;code&amp;gt;SigLevel&amp;lt;/code&amp;gt; line may not be present under [multilib] and it will most likely be higher up in the pacman.conf. This is fine and you can then simply remove the pound symbol from the two other lines.&lt;br /&gt;
 #[multilib]&lt;br /&gt;
 #SigLevel = PackageRequired&lt;br /&gt;
 #Include = /etc/pacman.d/mirrorlist&lt;br /&gt;
So that they look like this&lt;br /&gt;
 [multilib]&lt;br /&gt;
 SigLevel = PackageRequired&lt;br /&gt;
 Include = /etc/pacman.d/mirrorlist&lt;br /&gt;
Save the file by typing&lt;br /&gt;
  ctrl x&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
  pacman -Syyu&lt;br /&gt;
&lt;br /&gt;
===== Sound and Graphics =====&lt;br /&gt;
&lt;br /&gt;
After that you can continue the install as detailed in the 32-bit section. Required 32-bit dependencies will automatically be installed, however you may have to install more dependencies, depending on what sound support you use, and your graphics card&lt;br /&gt;
&lt;br /&gt;
If you use alsa sound, install lib32-alsa-lib with:&lt;br /&gt;
  pacman -S lib32-alsa-lib&lt;br /&gt;
&lt;br /&gt;
If use use pulse sound install lib32-libpulse with:&lt;br /&gt;
  pacman -S lib32-libpulse&lt;br /&gt;
&lt;br /&gt;
You will also need to install a 32-bit graphics driver. Install the driver from multilib that corresponds to your driver/device on [https://wiki.archlinux.org/index.php/Xorg#Driver_installation this chart]. ''For example'', if you have xf86-video-nouveau installed, you would run:&lt;br /&gt;
  pacman -S lib32-mesa-libgl&lt;br /&gt;
&lt;br /&gt;
If you don't know what driver/device you're currently using run:&lt;br /&gt;
  lspci -k&lt;br /&gt;
&lt;br /&gt;
Find the line that starts with &amp;quot;VGA compatible controller.&amp;quot; Your driver will be listed under &amp;quot;kernel driver in use&amp;quot;, like so:&lt;br /&gt;
  01:00.0 VGA compatible controller: NVIDIA Corporation GK106M [GeForce GTX 765M] (rev a1)&lt;br /&gt;
          Subsystem: ASUSTeK Computer Inc. Device 119d&lt;br /&gt;
          Kernel driver in use: nvidia&lt;br /&gt;
          Kernel modules: nouveau, nvidia&lt;br /&gt;
&lt;br /&gt;
If you are using/wish to use the AMD catalyst drivers, please note that they are no longer available within the main arch repositories. You will have to install them from the AUR. [https://wiki.archlinux.org/index.php/AMD_Catalyst#Installation See here for more information.]&lt;br /&gt;
&lt;br /&gt;
If you have Nvidia graphics, you may also want to install lib32-nvidia-utils with:&lt;br /&gt;
  pacman -S lib32-nvidia-utils&lt;br /&gt;
&lt;br /&gt;
=== CentOS 7 ===&lt;br /&gt;
&lt;br /&gt;
''Dwarf Fortress'' is now 64-bit, so simply run:&lt;br /&gt;
&lt;br /&gt;
  sudo yum install SDL SDL_image SDL_ttf openal&lt;br /&gt;
&lt;br /&gt;
Note that CentOS 7 ships with glibc 2.17, but ''Dwarf Fortress'' by default would like 2.18. [http://www.bay12games.com/dwarves/mantisbt/view.php?id=9893 This bug] has a fix, simply copy the [http://pastebin.com/jX4Wf062 Pastebin script], then move the libraries into a new folder.&lt;br /&gt;
&lt;br /&gt;
  cd df_linux&lt;br /&gt;
  curl -L http://pastebin.com/raw/jX4Wf062 &amp;gt; df&lt;br /&gt;
  mkdir c_libs&lt;br /&gt;
  mv libs/libgcc_s.so.1 libs/libstdc++.so.6 c_libs/&lt;br /&gt;
  chmod a+x df&lt;br /&gt;
&lt;br /&gt;
Then run it!&lt;br /&gt;
  ./df&lt;br /&gt;
&lt;br /&gt;
=== Gentoo ===&lt;br /&gt;
&lt;br /&gt;
There is a ''Dwarf Fortress'' [https://packages.gentoo.org/package/games-roguelike/dwarf-fortress ebuild] in the main Gentoo's portage tree compatible with the new multilib support.&lt;br /&gt;
&lt;br /&gt;
  # emerge -av games-roguelike/dwarf-fortress&lt;br /&gt;
&lt;br /&gt;
=== Solus ===&lt;br /&gt;
&lt;br /&gt;
Download ''Dwarf Fortress'' from the Bay 12 Games website. If you encounter the following error upon launch:&lt;br /&gt;
&lt;br /&gt;
  ./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory&lt;br /&gt;
&lt;br /&gt;
then simply run the following command to install the missing libraries:&lt;br /&gt;
&lt;br /&gt;
  sudo eopkg install sdl-ttf&lt;br /&gt;
&lt;br /&gt;
If you are running a 32bit version of ''Dwarf Fortress'', simply replace &amp;lt;code&amp;gt;sdl-ttf&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;sdl-ttf-32bit&amp;lt;/code&amp;gt; in the above command. You're all set!&lt;br /&gt;
&lt;br /&gt;
=== Wine ===&lt;br /&gt;
Downloading the windows version and running it with Wine works fine ([https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=32503 platinum] on 1.7.47 as of .4x.xx, which means the program runs flawlessly without any initial user configuration). This also avoids any issues with 32-bit versus 64-bit mode.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
If you get errors, it is likely that others will have had the same problem; Try searching the bay12games forum with the error message.&lt;br /&gt;
==== Sound ====&lt;br /&gt;
&lt;br /&gt;
After installing, DF will run, but will complain that it cannot find the OpenAL library and cannot play sounds, even when OpenAL (i386) has been installed. This is due to a bug/feature in which there is no link from the name of the library that DF is looking for (&amp;quot;libopenal.so&amp;quot;) to its implementation (&amp;quot;libopenal.so.1&amp;quot; - technically another link). To fix this, simply provide the necessary links in DF's own ''libs'' directory:&lt;br /&gt;
&lt;br /&gt;
  $ cd df_linux/libs&lt;br /&gt;
  $ ln -s /usr/lib/i386-linux-gnu/libopenal.so.1 ./libopenal.so&lt;br /&gt;
  $ ln -s /usr/lib/i386-linux-gnu/libsndfile.so.1 ./libsndfile.so&lt;br /&gt;
&lt;br /&gt;
==== Upgrading ==== &lt;br /&gt;
&lt;br /&gt;
Since every new version of ''Dwarf Fortress'' unpacks in a directory named '''df_linux''' you have to manage upgrades yourself - or use the [http://dffd.wimbli.com/file.php?id=9639 Linux Updater Script]. 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.&lt;br /&gt;
&lt;br /&gt;
==== Manually installing 32-bit libraries ====&lt;br /&gt;
&lt;br /&gt;
If you do need to manually install the libraries, then the first step is to figure out where you will be putting them.  Check to see where your other 32-bit libraries are already installed; for example, on Debian, some are in /lib32 and others are in /usr/lib32.  Since libSDL is in /usr/lib32 on a Debian system, that's where we'll want to put libSDL_image and libSDL_ttf.  On other distributions, the path could be different.&lt;br /&gt;
&lt;br /&gt;
The second step is to get the 32-bit libraries.  You can typically do this by downloading them directly from your distribution's 32-bit package repository.  Again using Debian as our example, we can perform a search at http://packages.debian.org/ for files containing the word libSDL_image for the Intel x86 architecture.  This takes us to [http://packages.debian.org/search?searchon=contents&amp;amp;keywords=libSDL_image&amp;amp;mode=filename&amp;amp;suite=stable&amp;amp;arch=i386 a results page] from which we can proceed to [http://packages.debian.org/squeeze/libsdl-image1.2 the libsdl-image1.2 package page] with a list of download links arranged by architecture.  Grab the i386 package from here, and repeat this for the libSDL_ttf package, and whatever other library you are missing.  Store these package files somewhere convenient.&lt;br /&gt;
&lt;br /&gt;
The third step is to extract the libraries from the packages and get them in the proper location.  You probably ''won't'' be able simply to install the packages using your package manager, because they are for the wrong architecture.  Instead, you'll probably have to extract them by hand.  The steps for doing this are distribution-specific, so when in doubt consult your distribution's help resources. Here are the steps for a .deb package.&lt;br /&gt;
&lt;br /&gt;
* cd into some temporary working directory such as /tmp&lt;br /&gt;
* Extract the files from the .deb archive, which is in ar(1) format:&lt;br /&gt;
  tar x /path/to/libsdl-image1.2*_i386.deb&lt;br /&gt;
: This creates three files: debian-binary, control.tar.gz and data.tar.gz.  We only care about data.tar.gz.&lt;br /&gt;
* Extract data.tar.gz:&lt;br /&gt;
  tar xzf data.tar.gz&lt;br /&gt;
: This creates a subdirectory named usr with various files inside it.  We only care about usr/lib/libSDL_image-1.2.so.0.8.2 (or whatever precise version yours has).&lt;br /&gt;
* Move the shared library into place:&lt;br /&gt;
  sudo mv usr/lib/libSDL_image-1.2.so.* /usr/lib32/&lt;br /&gt;
* Create a symlink to it:&lt;br /&gt;
  cd /usr/lib32&lt;br /&gt;
  sudo ln -s libSDL_image-1.2.so.0.* libSDL_image-1.2.so.0&lt;br /&gt;
  cd -&lt;br /&gt;
&lt;br /&gt;
Repeat this for libSDL_ttf and whatever other libraries are required.&lt;br /&gt;
&lt;br /&gt;
'''NOTE''': If you get the error that libsndfile.so is not found, you must use the following:&lt;br /&gt;
  find */libsndfile.so*&lt;br /&gt;
cd to the correct directory, then use ln as shown above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;Not found: /data/art/mouse.png&amp;quot; ====&lt;br /&gt;
===== Fix 1: Preload zlib=====&lt;br /&gt;
Due to incompatibilities between DF's included zlib and newer versions of zlib, libpng can fail on newer systems. A solution is to add this line to the beginning of &amp;lt;code&amp;gt;/your/path/df_linux/df&amp;lt;/code&amp;gt; (or &amp;lt;code&amp;gt;/your/path/df_linux/dfhack&amp;lt;/code&amp;gt; if you use [[DFHack]]):&lt;br /&gt;
 export LD_PRELOAD=/usr/lib/libz.so.1&lt;br /&gt;
Note that this path can vary - be sure that it is referring to a '''32-bit''' zlib.&lt;br /&gt;
===== Fix 2: Use bmp instead =====&lt;br /&gt;
Another solution (if preloading zlib doesn't work) is to force DF to use the BMP versions of image files. You must first edit the ''/data/init/init.txt'' file and change all occurrences of &amp;quot;png&amp;quot; to &amp;quot;bmp&amp;quot;. This should solve all the error messages except for one: &amp;quot;''Not found: data/art/mouse.png''&amp;quot; since there is no setting in the init files to change it. The workaround for this is to edit the ''Dwarf_Fortress'' file found in the ''/your/path/df_linux/libs'' folder which contains the setting for the mouse cursor.&lt;br /&gt;
If you don't know how to do that, you can try this:&lt;br /&gt;
* cd to the ''/df_linux/libs'' folder&lt;br /&gt;
* open ''Dwarf_Fortress'' in ''vi'' or any other editor of your choise:&lt;br /&gt;
  vi ./Dwarf_Fortress&lt;br /&gt;
: This opens the file for editing (text mode). If you are not familiar with ''vi'', it would be a good idea to follow these steps exactly and not press any other keys since they all activate specific commands. If you do press a key though, you can press the ''ESC key'' a few times to cancel the command.&lt;br /&gt;
* With vi open, write the following string and press ''Enter'':&lt;br /&gt;
  /mouse&lt;br /&gt;
: This will search for all the strings that contain the word &amp;quot;mouse&amp;quot; and place the cursor on the first match. Pressing the ''n key'' will cycle through all the matches.&lt;br /&gt;
* Press the ''n'' key until the cursor moves to the desired string, which is &amp;quot;''data/art/mouse.png''&amp;quot;. If you accidentally move past the string, you can cycle back through the matched strings using the ''N key'' (shift + n).&lt;br /&gt;
* Once you find the right string, you will have to move the cursor over the &amp;quot;p&amp;quot; in &amp;quot;[..]/mouse.&amp;lt;b&amp;gt;p&amp;lt;/b&amp;gt;ng&amp;quot;. You do that by pressing the ''l key'' which will move the cursor to the right. There is also the ''h key'' to move the cursor to the left, in case you move past it.&lt;br /&gt;
* With the cursor in the right position press the following key sequence:&lt;br /&gt;
  xxxibmp&lt;br /&gt;
: This will replace the ''.png'' extension with the ''.bmp'' one which solves the problem of the missing ''/data/art/mouse.png'' error.&lt;br /&gt;
* All there is left to do is to save the modifications to the file and quit ''vi''. For that, press the ''ESC key'' once or twice and then press the following key sequence after which you press ''Enter'':&lt;br /&gt;
  :wq&lt;br /&gt;
: This saves the changes and quits 'vi'&lt;br /&gt;
&lt;br /&gt;
Now the game should work properly. Have fun!&lt;br /&gt;
&lt;br /&gt;
==FreeBSD==&lt;br /&gt;
&lt;br /&gt;
Although there is no official version ported to FreeBSD, ''Dwarf Fortress'' can nevertheless be run using either Wine or FreeBSD's compatibility with Linux. However, attempting to run the Linux version out of the blue will result in an error about missing library files. Such files must be downloaded from special linux-compatible packages or ports; using your preferred installation method, install the following:&lt;br /&gt;
&lt;br /&gt;
===linux-c6===&lt;br /&gt;
  sudo pkg install linux-c6-gtk2 linux-c6-sdl linux-c6-sdl_image linux-c6-sdl_ttf linux-c6-libGLU \&lt;br /&gt;
  linux-c6-openal-soft linux-c6-libsndfile linux-c6-alsa-plugins-oss&lt;br /&gt;
&lt;br /&gt;
===linux-f10===&lt;br /&gt;
If you don't have the linux-c6 ports available in your system, you can still run ''Dwarf Fortress'' (albeit without sound) using the following packages:&lt;br /&gt;
  sudo pkg install linux-f10-alsa-lib linux-f10-atk linux-f10-cairo linux-f10-expat linux-f10-fontconfig \&lt;br /&gt;
  linux-f10-gtk2 linux-f10-jpeg linux-f10-pango linux-f10-png linux-f10-sdl linux-f10-sdl_image linux-f10-tiff \&lt;br /&gt;
  linux-f10-xorg-libs linux-sdl_ttf linux_base-f10 linux_dri linux-f10-libGLU&lt;br /&gt;
linux_dri might be optional if you have the NVIDIA driver. Note that due to the lack of a linux-f10-libsndfile port, the sound will not work. Requests are being made to [http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2013-January/247698.html port] it, as well as a [https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=178474 DF] port itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After you install the required packages, copy (or symlink) DF's own library files to the linux-compatible directory:&lt;br /&gt;
  cd dwarf_fortress_directory&lt;br /&gt;
  sudo cp libs/lib* /compat/linux/usr/lib/&lt;br /&gt;
Or&lt;br /&gt;
  cd dwarf_fortress_directory&lt;br /&gt;
  sudo ln -s libs/lib* /compat/linux/usr/lib/&lt;br /&gt;
&lt;br /&gt;
You can then run df normally. Although it will likely display a bunch of warnings and errors about fonts, it should work.&lt;br /&gt;
&lt;br /&gt;
If you want to avoid polluting your linux-compatible directory, you can always just set LD_LIBRARY_PATH when running df:&lt;br /&gt;
  LD_LIBRARY_PATH=libs:$LD_LIBRARY_PATH ./df&lt;br /&gt;
&lt;br /&gt;
= Documentation =&lt;br /&gt;
&lt;br /&gt;
Fortunately the documentation on this wiki is very detailed and extensive. You may want to start out with:&lt;br /&gt;
* [[Tutorials]]&lt;br /&gt;
* [[Quickstart_guide|Fortress Mode Quickstart Guide]]&lt;br /&gt;
* [[Adventure mode quick start|Adventure Mode Quickstart Guide]]&lt;br /&gt;
&lt;br /&gt;
Then move on to:&lt;br /&gt;
* [[Dwarf fortress mode|Fortress Mode reference]]&lt;br /&gt;
* [[Adventure mode|Adventure Mode reference]]&lt;br /&gt;
* [[Special:Search|Searching]] the wiki&lt;br /&gt;
&lt;br /&gt;
{{Getting Started}}&lt;/div&gt;</summary>
		<author><name>Bachsau</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=User:Bachsau&amp;diff=235282</id>
		<title>User:Bachsau</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=User:Bachsau&amp;diff=235282"/>
		<updated>2018-03-01T15:07:52Z</updated>

		<summary type="html">&lt;p&gt;Bachsau: User Page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to my user page! I'll expand this page when I've time to.&lt;/div&gt;</summary>
		<author><name>Bachsau</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=User:Bachsau&amp;diff=235281</id>
		<title>User:Bachsau</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=User:Bachsau&amp;diff=235281"/>
		<updated>2018-03-01T15:07:38Z</updated>

		<summary type="html">&lt;p&gt;Bachsau: User Page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to my user page! My home wiki is the german wikipedia. I'll expand this page when I've time to.&lt;/div&gt;</summary>
		<author><name>Bachsau</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Category:Noindexed_pages&amp;diff=235280</id>
		<title>Category:Noindexed pages</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Category:Noindexed_pages&amp;diff=235280"/>
		<updated>2018-03-01T15:06:18Z</updated>

		<summary type="html">&lt;p&gt;Bachsau: A system category that should exist. Used by __NOINDEX__ magical word.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;System category containing pages not indexed by search engines.&lt;/div&gt;</summary>
		<author><name>Bachsau</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=User_talk:Bachsau/Template:Welcome&amp;diff=235279</id>
		<title>User talk:Bachsau/Template:Welcome</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=User_talk:Bachsau/Template:Welcome&amp;diff=235279"/>
		<updated>2018-03-01T15:04:01Z</updated>

		<summary type="html">&lt;p&gt;Bachsau: User talk:Bachsau&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[User talk:Bachsau]]&lt;/div&gt;</summary>
		<author><name>Bachsau</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=User:Bachsau/Template:Welcome&amp;diff=235278</id>
		<title>User:Bachsau/Template:Welcome</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=User:Bachsau/Template:Welcome&amp;diff=235278"/>
		<updated>2018-03-01T15:02:41Z</updated>

		<summary type="html">&lt;p&gt;Bachsau: Bugfix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;table border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;margin:10px 0;border:1px solid #dfdfdf;padding:1em;background-color:#F8F8FF;&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td style=&amp;quot;vertical-align:top;&amp;quot;&amp;gt;__TOC__&amp;lt;/td&amp;gt;&amp;lt;td style=&amp;quot;padding-left:10px;vertical-align:top;&amp;quot;&amp;gt;Welcome to my discussion page!&lt;br /&gt;
&lt;br /&gt;
Please use the &amp;quot;&amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[{{fullurl:{{FULLPAGENAME}}|action=edit&amp;amp;section=new}} Add topic]&amp;lt;/span&amp;gt;&amp;quot; tab when you start a new topic, and don't forget to add your signature (''&amp;lt;nowiki&amp;gt;--~~~~&amp;lt;/nowiki&amp;gt;''). Questions asked on this page will be answered here. Answers to my questions on other user's pages are expected there. Please inset your answers with a colon.&lt;br /&gt;
&lt;br /&gt;
Should you miss previous discussions, please have a look at the &amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[{{fullurl:{{FULLPAGENAME}}|action=history}} history]&amp;lt;/span&amp;gt;. Once in a while I remove finished topics, and there's no sense in having an additional archive. &amp;lt;div style=&amp;quot;float:right;font-size:smaller;text-align:right;&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;plainlinks&amp;quot; style=&amp;quot;font-style:italic;&amp;quot;&amp;gt;[{{fullurl:User talk:Bachsau|action=edit&amp;amp;oldid=235276&amp;amp;minor=1&amp;amp;summary=Archived+old+discussions}} Archive discussions]&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;{{Clear}}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bachsau</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=User:Bachsau/Template:Welcome&amp;diff=235277</id>
		<title>User:Bachsau/Template:Welcome</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=User:Bachsau/Template:Welcome&amp;diff=235277"/>
		<updated>2018-03-01T14:56:25Z</updated>

		<summary type="html">&lt;p&gt;Bachsau: Introduction to my discussion page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;table border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;margin:10px 0;border:1px solid #dfdfdf;padding:1em;background-color:#F8F8FF;&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td style=&amp;quot;vertical-align:top;&amp;quot;&amp;gt;__TOC__&amp;lt;/td&amp;gt;&amp;lt;td style=&amp;quot;padding-left:10px;vertical-align:top;&amp;quot;&amp;gt;Welcome to my discussion page!&lt;br /&gt;
&lt;br /&gt;
Please use the &amp;quot;&amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[{{fullurl:{{FULLPAGENAME}}|action=edit&amp;amp;section=new}} Add topic]&amp;lt;/span&amp;gt;&amp;quot; tab when you start a new topic, and don't forget to add your signature (''&amp;lt;nowiki&amp;gt;--~~~~&amp;lt;/nowiki&amp;gt;''). Questions asked on this page will be answered here. Answers to my questions on other user's pages are expected there. Please inset your answers with a colon.&lt;br /&gt;
&lt;br /&gt;
Should you miss previous discussions, please have a look at the &amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[{{fullurl:{{FULLPAGENAME}}|action=history}} history]&amp;lt;/span&amp;gt;. Once in a while I remove finished topics, and there's no sense in having an additional archive. &amp;lt;div style=&amp;quot;float:right;font-size:smaller;text-align:right;&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;plainlinks&amp;quot; style=&amp;quot;font-style:italic;&amp;quot;&amp;gt;[{{fullurl:User talk:Bachsau|action=edit&amp;amp;oldid=235276&amp;amp;minor=1&amp;amp;summary=Archived+old+discussions}} Archive discussions]&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;{{Clear}}&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bachsau</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=User_talk:Bachsau&amp;diff=235276</id>
		<title>User talk:Bachsau</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=User_talk:Bachsau&amp;diff=235276"/>
		<updated>2018-03-01T14:50:44Z</updated>

		<summary type="html">&lt;p&gt;Bachsau: Reset Base #1&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOINDEX__ {{User:Bachsau/Template:Welcome}}&lt;br /&gt;
&amp;lt;!-- Please edit BELOW this line! --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bachsau</name></author>
	</entry>
</feed>