Hi all. Running Arch Linux 64-bit, and getting LNP to run has been a good deal of pain. After doing it over and over several times, I think I know how to make it work for Arch users. Note that this is probably not the most optimal way of doing it, and it's entirely possible that I forgot some libraries that may need to be installed in addition to everything else. After reading and fighting and getting all the various bits of information, I figured I could try and conglomerate it into one post. Please don't eat me if I'm doing this wrong.
The following is for the LNP for 0.40.24!1)The first thing to do is to enable multilib repositories. We're going to be installing the version of DF from the official repos to get the dependencies for the game. Further information can be found
here, and it's advisable to read that before you continue, but you're going to uncomment the following files in /etc/pacman.conf
[multilib]
Include = /etc/pacman.d/mirrorlist
And then run
pacman -Syu
to update your package list and upgrade. Now that we have multilibs enabled, it's time to install the official version of DF.
pacman -S dwarffortress
Congratulations. We are now at the part where we don't rush off to play because we remember that we need to get LNP. Installing DF let us get the dependencies that we need to play the game. It would be prudent to run the installed version of DF to see if it works. If it doesn't, take more looks around and see if you can get it working before you continue.
2)If you're reading this, chances are that you've gotten this far, but for the sake of completion, download the pack, and extract it to wherever you want to work on it. Personally, mine looks like ~/lnp/[all the actual folders], but use whatever setup works for you. Assume that we're sitting in that hypothetical ~/lnp/ folder, looking at the LNP/ and df_linux/ folders, as well as the various executables (startlnp, PyLNP, xdg-terminal).
3)We're going to start by removing the two problematic libraries bundled with DF. To do the first, we're going to run the following commands:
cd df_linux/libs
rm libgcc_s.so.1 libstdc++.so.6
That will remove the two libraries that generate an error upon usage (If you see something about a LibGL error and some drivers, this should solve it.)
4)Now that we've got the library mess sorted out, we need to fix that awful "not found" error. Go ahead and
cd ..
back up to the df_linux/ directory. The error seems to be caused by the game being unable to find zlib, so we need to change that. To do that, copy
this version of the distrofixes script and replace the original with it (make sure it still has the same name)
5)This step (and 5.5) may or may not be necessary, a variable that seems to depend mostly on your desktop environment of choice. Try skipping this and going straight to pressing "Play Dwarf Fortress" before you do anything here. If it works, you're pretty much done. Otherwise, read on.First, leave the df_linux/ folder, get back to our hypothetical lnp/ folder, and run LNP:
cd ..
./startlnp
By now, you should be able to actually execute the df_linux/df executable and have it work. You should even be able to modify some settings in LNP, close it, and execute the df file and play normally. However, the "Play Dwarf Fortress" button in LNP will not work. We can fix that (hopefully). In the launcher, go to File>Configure Terminal and enter "xterm" (assuming you have xterm installed). You can modify this to work with your favorite terminal, for example, using MATE's terminal requires the usage of "mate-terminal -e $" in the field. Xterm seems to be the only one that works without any usage of -e or $. You should now be able to launch DF and DFHack from the "Play Dwarf Fortress" button.
5.5) Or don't even botherIf you don't use DFHack anyway, go to the DFHack tab and disable it.
Other points of interest- I have not done any experimenting with utilities to get them to work. This is just for running DF from the launcher.
- In the course of the last several days of work, I've installed several other libraries outside of what was installed by the DF package, and it is possible that some of those are necessary. Be prepared to fight around with it more.
- I will retry these steps when the new version of the pack appears and update this post accordingly
- If someone else can confirm that these steps work, I can look at adding this to the wiki.