chiark / gitweb /
Missing libgs warning (latex2svg.py) and generation failing.
authorgotchafr <gotchafr@users.noreply.github.com>
Sat, 4 Nov 2017 13:05:23 +0000 (14:05 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Sat, 4 Nov 2017 13:29:04 +0000 (14:29 +0100)
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 [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index f068f47..8efe81b
@@ -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')