Simple way to install game in Linux: use Shell script

(Script hosted on GitHub; it downloads stuff from offical source repo. To download script from this page: RMB -> “Save link as…”)


Outdated: manual guide

First, you should open Terminal program (ctrl+alt+t), and prepare to type in (you can copy-paste from here) some commands.

1) Essentials & libraries 

if you have Debian-based linux*** (Ubuntu, Mint, etc) – your distro package manager is apt, so the needed libraries and build tools can be obtained with:

sudo apt update

sudo apt install build-essential

sudo apt install autoconf

sudo apt install curl

sudo apt-get install build-essential autoconf libsdl1.2debian libsdl-ttf2.0-dev libsdl-image1.2-dev libsdl-mixer1.2-dev

***if you use RPM-based linux (Fedora, Centos, openSUSE..) then apt command won’t work for you. Rpm-based distro package manager is yum; the command to obtain build tools is something like:
sudo yum group install "Development Tools"
and the command to obtain all the needed libraries is:
sudo yum install SDL-devel SDL_ttf-devel SDL_mixer-devel SDL_image-devel

2) Build from sources

Now that you have installed all the needed dependencies and build tools; you could proceed to building

  1. Download sources:
    curl -L | tar xz
    by default it downloads files in the current working directory where it is run, eg
  2. rename downloaded folder from igroglaz-tangaria-******* to something like PWMA
  3. in terminal – change directory to PWMA:
    cd PWMA
  4. run autoconf – macros that produces a shell script configure to generate a Makefile and config header for a project:
  5. run the script which generates the configure script (from, using autoconf) and any files it needs (like creating from using automake):
  6. run the configure script which generates Makefile and other files needed to build:
    ./configure --with-no-install --disable-curses --disable-x11 --enable-sdl
  7. run the make command which builds the software:
  8. make
  9. run the cp command to copy folder:
    cp src/pwmangband .
  10. run make install command which installs it:
    sudo make install

After executing make install, two binaries will be installed system-wide: pwmangclient and pwmangband (that’s the server). You can execute them from anywhere.

To connect the game: run pwmangclient and choose to join server:

To uninstall the game, run this command from PWMA:
sudo make uninstall

Archlinux (tested with Manjaro in virtualbox):
sudo pacman -S autoconf automake gcc glibc make sdl sdl_image sdl_mixer sdl_ttf unzip

To report typo, error or make suggestion: select text and press Ctrl+Enter.

9 Responses to Linux

  1. tokariew says:

    Please don’t assume that some random key shortcut from your DE is universal…

  2. fonz says:

    is it possible to request an official universal (appimages are awesome too BTW) zip of tangaria and assets? it may help jump start the project if it were more easily accessible

  3. luarocks says:

    > autoconf error: possibly undefined macro: AM_PATH_NCURSESW
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation. error: possibly undefined macro: AM_PATH_SDL

    > sudo make install
    /usr/bin/install: ‘activation.txt’ and ‘/opt/tangaria/PWMA/lib//gamedata/activation.txt’ are the same file
    Failed to install activation.txt!
    make[2]: *** [../../mk/ install] Error 1
    make[1]: *** [../mk/ install] Error 2
    make: *** [mk/ install] Error 2

  4. luarocks says:

    Never mind. Shell script works perfect! Just remove this outdated instruction and leave only the link to script.

Leave a Reply

🇬🇧 Attention! Comments with URLs/email are not allowed.
🇷🇺 Комментарии со ссылками/email удаляются автоматически.