Commands executed on Ubuntu 16.04 OS:
sudo apt-get install lua5.2 liblua5.2 zlibc lua-zlib libxy-dev
Above perhaps unneccessary. Here's output of apt-cache depends fityk:
fityk
  Depends: libc6
  Depends: libgcc1
  Depends: liblua5.1-0
  Depends: libreadline6
  Depends: libstdc++6
  Depends: libwxbase3.0-0v5
  Depends: libwxgtk3.0-0v5
  Depends: libxy3v5
  Depends: zlib1g
  Recommends: gnuplot
    gnuplot5
  Suggests: libjs-sphinxdoc
So just make sure those packages are installed by executing:
sudo apt-get install libc6 libgcc1 liblua5.1-0 libreadline6 libstdc++6 libwxbase3.0-0v5 libwxgtk3.0-0v5 libxy3v5 zlib1g
Now to install fityk from source...Despite the install instruction, the configure script doesn't exist. Have to run autoreconf --install.
Output of ./configure:
wxWidgets must be installed on your system but wx-config script could not be found.
Please check that wx-config is in path, the directory where wxWidgets libraries are installed (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH or equivalent variable and wxWidgets version is 3.0 or above.
wx-config --libs:The program 'wx-config' can be found in the following packages:
 * libwxbase3.0-dev
 * libwxgtk3.0-dev
Try: sudo apt install <selected package>
sudo apt-get install libwxbase3.0-dev. Apparently that package provides something that libwxbase3.0-0v5 does not because now ./configure runs successfullymake, get the error swig_not_found: command not found. swig3.0 but apparently that doesn't actually provide any swig commands. Had to install swig2.0 in order to get any output from which swig../configuremake getting a lot of errors like this:
/usr/include/wx-3.0/wx/containr.h: In instantiation of ‘void wxNavigationEnabled<W>::SetFocus() [with W = wxWindow]’:
parpan.cpp:461:58:   required from here
/usr/include/wx-3.0/wx/containr.h:247:38: error: incomplete type ‘wxNavigationEnabled<wxWindow>::BaseWindowClass {aka wxWindow}’ used in nested name specifier
           BaseWindowClass::SetFocus();
sudo apt-get install libwxgtk3.0-devmake now executes without issuesudo make install. However, I'm not really interested in moving this out of my home space so I'm going to call it quits there.fityk source directory:autoreconf --install
./configure
make -j4
And then to install into your system, execute sudo make install
In [ ]: