I wrote a short script that copies a few files around in order to produce a working MDF, for people who have the kind of dependency issues I have had. You have to unpack the Unofficial Lazy Newb Pack for Linux and Masterwork Dwarf Fortress for Linux, renaming the folder LNP and MDF respectively.
In the containing folder for LNP and MDF, copy the script below into a file called, say, mdf-setup.sh, and then run chmod +x mdf-setup.sh and ./mdf-setup.sh in a terminal session located at this folder.
#!/bin/bash
# Script to set up Linux Masterwork Dwarf Fortress on computers that meet dependency issues
echo "Beginning setup for Masterwork Dwarf Fortress."
echo "Copying Linux DF into MDF."
cp -r LNP/df_linux MDF/df_linux
cd MDF
echo "Moving MDF original DF folder."
mv "Dwarf Fortress" mdf_orig
echo "Removing new DF data and raws."
rm -rf df_linux/data
rm -rf df_linux/raw
echo "Installing data and raws for MDF."
cp -r mdf_orig/data df_linux/data
cp -r mdf_orig/raw df_linux/raw
echo "Installing extra dfhack settings."
cp mdf_orig/extra_dfhack_init.init df_linux/dfhack_extra.init
echo "Moving new DF to standard name."
mv df_linux "Dwarf Fortress"
cd ..
echo "Closing out setup for Masterwork Dwarf Fortress."
At the end, you should (hopefully!) have a working MDF, with the LNP still intact and a folder called mdf_orig in the MDF folder that contains the original MDF files. You can, if you wish, remove this folder. I like to keep it in case something got screwed up or whatever and I have a decent copy to restore from.