You should first install ghc, cabal, the readline and argon2 libraries, and zenity. For example, on a Debian system: sudo apt-get install ghc cabal-install libreadline-dev \ libargon2-0-dev zenity Then to build and install keysafe: cabal install keysafe