Install Notes for fityk

Configure stage

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.

  • Couldn't find wxWidgets libraries which is outrageous because the libwxbase libraries are clearly installed
  • Output of 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>
  • So then executed sudo apt-get install libwxbase3.0-dev. Apparently that package provides something that libwxbase3.0-0v5 does not because now ./configure runs successfully

Make stage

  • Well surprise, surprise the dependencies required by the fityk package again fall short
  • Immediately after running make, get the error swig_not_found: command not found.
  • Installed 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.
  • Have to reconfigure after this: ./configure
  • During make 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();
  • Execute sudo apt-get install libwxgtk3.0-dev
  • make now executes without issue
  • Can finish installation by running sudo 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.

Summary:

Packages installed (some were already installed on my system and some may not actually be necessary):

  • lua5.2
  • liblua5.2
  • zlibc
  • lua-zlib
  • libxy-dev
  • libc6
  • libgcc1
  • liblua5.1-0
  • libreadline6
  • libstdc++6
  • libwxbase3.0-0v5
  • libwxgtk3.0-0v5
  • libxy3v5
  • zlib1g
  • libwxbase3.0-dev
  • swig3.0
  • swig2.0
  • libwxgtk3.0-dev

Commands executed in fityk source directory:

autoreconf --install
./configure
make -j4

And then to install into your system, execute sudo make install


In [ ]: