Closed aurabindo closed 7 years ago
Would you please try reinstall mathematical?
I did, still getting same, error. During installation, I have lots of warnings like:
unknown encoding name "'application/x-tex'>" for ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/accents-1.html, skipping
unknown encoding name "'application/x-tex'>" for ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/accents-2.html, skipping
unknown encoding name "'application/x-tex'>" for ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/accents-3.html, skipping
unknown encoding name "'application/x-tex'>" for ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/buildrel-1.html, skipping
unknown encoding name "'application/x-tex'>" for ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/issue877.html, skipping
unknown encoding name "'application/x-tex'>" for ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/issue937.html, skipping
unknown encoding name "'application/x-tex'>" for ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/overbrace-1.html, skipping
unknown encoding name "'application/x-tex'>" for ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/overbracket-1.html, skipping
unknown encoding name "'application/x-tex'>" for ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/overset-1.html, skipping
unknown encoding name "'application/x-tex'>" for ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/sideset-1.html, skipping
unknown encoding name "'application/x-tex'>" for ext/mathematical/mtex2MML/tests/fixtures/MathJax/LaTeXToMathML-out/above-below/stackrel-1.html, skipping
Full log here: https://paste.gnome.org/pwamjtvat
What is the result if you export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
before running asciidoctor-pdf?
I am also curious why your asciidoctor locates in /usr/lib
while your liblasem locates in /usr/local/lib
, shouldn't it be in /usr/lib
too?
@ProgramFan Surprisingly setting the LD_LIBRARY_PATH
like you suggested fixed the issue! I'm confused, my ldconfig for /usr/local/lib
is not being respected. There are other libs I locally installed as well, and they work well. Its just for liblasem.so
that it doesnt seem to work.
Thanks!
Glad to see it solved. 😄
I tried compiling the sample.adoc in the repo with the command
asciidoctor-pdf -r asciidoctor-mathematical -o test.pdf sample.adoc --trace
, and I get the following error:However, I do have
liblasem.so
, sincewhereis liblasem.so
returnsliblasem: /usr/local/lib/liblasem.so
Also,
file /usr/lib/ruby/gems/2.4.0/gems/mathematical-1.6.8/lib/mathematical/mathematical.so
gives:Asciidoctor-pdf verison:
Asciidoctor version:
Kindly suggest some workarounds