dyld: Library not loaded: /sw/lib/libpng12.0.dylib
Referenced from: /sw/bin/latex
Reason: Incompatible library version: latex requires version 30.0.0 or later, but libpng12.0.dylib provides version 26.0.0
sh: line 1: 81964 Trace/BPT trap latex -output-directory=/var/folders/71/71wgK3o7FtGClPSEzjU3v++++TM/-Tmp-/inkscape-9yWR6s -halt-on-error /var/folders/71/71wgK3o7FtGClPSEzjU3v++++TM/-Tmp-/inkscape-9yWR6s/eq.tex > /var/folders/71/71wgK3o7FtGClPSEzjU3v++++TM/-Tmp-/inkscape-9yWR6s/eq.out
invalid LaTeX input:
\(\displaystyle\frac{\pi^2}{6}=\lim_{n \to \infty}\sum_{k=1}^n \frac{1}{k^2}\)
temporary files were left in: /var/folders/71/71wgK3o7FtGClPSEzjU3v++++TM/-Tmp-/inkscape-9yWR6s
Curiously, when I print out the version number of "/sw/lib/libpng12.0.dylib" via otool, it tells me that I already use the most recent version, which is 32.0.0, so there should be no problems.
I just found out what goes wrong: The Inkscape .dmg application package which I got from the Inkscape homepage comes with an own version of libpng12.0.dylib, which lies in "Inkscape.app/Contents/Resources/lib/", that has version number 26.0.0. It seems that Inkscape uses this file although the error message above explicitely shows the Fink path "/sw/lib/" !!
So I just renamed the libpng12.0.dylib which comes with the application package so that Inkscape doesn't find / use this file anymore and now the LaTeX effect works fine.
Just wanted to tell you in case someone else has a similar problem...
bluefloyd
P.S.: My version of Inkscape is 0.46.
P.P.S.: The identical problem occurs when using the textext extension. The solution is the same. An additional comment concerning textext: On a Mac there are actually two places where you can put the files of the textext extension:
1) ~/inkscape/extensions/
2)/Applications/Inkscape.app/Contents/Resources/extensions/
I propose putting the files in 2), since the extension is looking for inkex.py which has to be in the same directory as the extensions itself; inkex.py lies in 2), not in 1). Another possibility would be to use 1) and copy inkex.py (and probably some other needed files?) also from 2) to 1).