From: gotchafr Date: Sat, 4 Nov 2017 13:05:23 +0000 (+0100) Subject: Missing libgs warning (latex2svg.py) and generation failing. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=489b91d156e8299820d6be5f3b2d7108d939ca22;p=blog.git Missing libgs warning (latex2svg.py) and generation failing. Problem was the the name looked for 'libgs' on linux platform it should be 'gs'. On Ubuntu 16.04 find_library gives 'libgs.so.9' Last, but not least, LaTeX packages... (not small ones indeed!) ``` sudo apt-get install texlive-base sudo apt-get install texlive-latex-extra sudo apt-get install texlive-fonts-extra ``` --- diff --git a/pelican-plugins/m/latex2svg.py b/pelican-plugins/m/latex2svg.py old mode 100644 new mode 100755 index f068f47e..8efe81b6 --- a/pelican-plugins/m/latex2svg.py +++ b/pelican-plugins/m/latex2svg.py @@ -55,6 +55,8 @@ if not hasattr(os.environ, 'LIBGS') and not find_library('libgs'): homebrew_libgs = '/usr/local/opt/ghostscript/lib/libgs.dylib' if os.path.exists(homebrew_libgs): default_params['libgs'] = homebrew_libgs + if sys.platform == 'linux': + default_params['libgs'] = find_library('gs') if not default_params['libgs']: print('Warning: libgs not found')