Friday, April 13, 2012

Installing Dwarf Fortress and Dwarf Therapist on 64-bit fedora 16/17

Because losing is fun.

Dwarf Fortress:
 sudo yum install -y SDL{,_image}.i686 gtk2.i686 mesa-libGLU.i686 SDL_ttf.i686
Grab the latest linux pack for Phoebus with DF pre-installed from http://dffd.wimbli.com/file.php?id=2944, untar and you should be good to go.


Dwarf Therapist:
sudo yum install -y mercurial qt-devel gcc-c++
Checkout a copy of the Dwarf Therapist code:
 cd ~/Downloads ; hg clone https://code.google.com/p/dwarftherapist/
Build with qmake/c++
 cd ~/Downloads/dwarftherapist/ ; qmake-qt4 && make && sudo make install
Therapist should now be in your path, and runnable from any directory with the 'dwarftherapist' command.
The only way I have been able to get this to run lately is from the directory it was built in, and not using the wrapper script (which is 'dwarftherapist' in all lower case):
 cd ~/Downloads/dwarftherapist ; DwarfTherapist

5 comments:

Anonymous said...

For anyone banging their head on the wall if qmake is not found, try qmake-qt4 as the command.

Adri said...

Dude thanks

"qmake-qt4 && make && sudo make install"
Worked ^^

Adri said...

it's me again, it's not working properly...

I need to

qmake-qt4 && make && sudo make install


every time I want to use the Dwarf Therapist and i can't edit the works...

if i not do it, I get:

/usr/bin/dwarftherapist: línea 2: cd: /usr/share/dwarftherapist: No existe el fichero o el directorio
which: no gksudo in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/usuario/bin)
which: no kdesudo in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/usuario/bin)
"Unknown error"

Unknown said...

Adrian I get the same behaviour in Fedora 17, I'll try and find a solution.

Unknown said...

The only way I have been able to get around this issue is by running dwarf therapist without the wrapper script (which is dwarftherapist, no capital letters) from the directory that I built dwarf therapist in, so:

cd ~/Downloads/dwarftherapist ; DwarfTherapist

If I do it that way it works fine.