From 489b91d156e8299820d6be5f3b2d7108d939ca22 Mon Sep 17 00:00:00 2001 From: gotchafr Date: Sat, 4 Nov 2017 14:05:23 +0100 Subject: [PATCH] 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 ``` --- pelican-plugins/m/latex2svg.py | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 pelican-plugins/m/latex2svg.py 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') -- 2.30.2