OK, I saw the recent thread on Pandoc and since I write books for a hobby, I wanted to install it. I used it a lot on Debian, and the one on SBo is like 3 versions old. I saw a comment in passing about using Stack to install it, so that was the way I went. For posterity, here's the workflow I used:
1. Downloaded Stack https://docs.haskellstack.org/en/sta...upgrade/#linux
This pretty much amounted to downloading the source file, unpacking it, then moving the stack executable to a directory in my path. (/data/bin in my case)
2. Download the Pandoc source code https://hackage.haskell.org/package/pandoc
I tried to use the source package directly from the Pandoc website, but for some reason that didn't compile. This version did. I never did figure out why.
3.Uncompress Pandoc source and change to that directory
2.stack install --test
4. At this point, the install fails, as there is no libtinfo.so.5 I suspect this is what caused the failure to compile GHC 8 when I tried modifying the GHC slackbuild earlier. The fix for this is:
/lib/64 - > ln -s libncurses.so.5.9 libtinfo.so.5
5. Change back to Pandoc source directory, and stack install --test works a treat. Wait a while, and the latest Pandoc is sitting in ~/.local/bin, which I then moved to /data/bin, and Bob was my uncle.
The only step that needs to be done as root is setting the symlink. Everything else is done as user, with the .stack directory in the home folder. It's about 2 gigs of stuff, but the important thing is that it works and now I have the latest Pandoc to convert my markdown into PDF's and EPUB's.
For a lighter weight solution, there's always text2pdf, or a markdown compiler -> html -> wkhtmltopdf, but I like Pandoc, I'm used to its quirks, so this solution worked for me.
Oh, that reminds me. Pandoc requires texlive. I couldn't get it to work with the standard tex in Slack, so remove tetex and tetex-doc, install texlive (I used the medium profile, about 1.3 gigs, but I may try again someday with basic which is about on par with tetex at 400 megs or so.) and call pandoc with the command
pandoc [infile] --latex-engine=xelatex -o [outfile]
So, I hope this helps anyone else looking for an easy way of installing the latest Pandoc on Slack. Needs a ton of diskspace with all the Haskell and Texlive, but it still beats the dickens out of trying to get LO or OO to do what I want it to.