gjtorikian / mathematical

Convert mathematical equations to SVGs, PNGs, or MathML. A general wrapper to Lasem and mtex2MML.
https://gjtorikian.github.io/mathematical/
MIT License
164 stars 31 forks source link

Specify path of LASEM_LIB_DIR for Linux #78

Closed gjtorikian closed 6 years ago

gjtorikian commented 7 years ago

Allegedly to fix https://github.com/asciidoctor/asciidoctor-mathematical/issues/30, but CI is failing.

ProgramFan commented 6 years ago

I can see it fails on ruby 2.1 on macOS, all rubies on Linux passed. Shall we just fix the path on Linux? The error message seems to not be related with the library path, though.

Failed to parse mtex
jesustorresdev commented 3 years ago

The solution doesn't work in Linux if mathematical is installed system-wide with bundle install using a non-root account. In that case bundle install the gem in a temporary directory (later copy it to its final path) so LASEM_LIB_DIR and RPATH points to the temporary path, not to the directory where the gem will be installed.

A workaround is to install mathematical with gem (or install it locally, of course).