[OS X TeX] Can't compile - pdflatex issue

Tim Poitras timpoitras at gmail.com
Sat Apr 11 22:37:29 CEST 2009


Hello,

I'm running the MacTex 2008 distribution on my Macbook Pro, and it just
won't compile.

When I try to compile a .tex file using pdflatex, I get this error:

dyld: Library not loaded: /sw/lib/libpng12.0.dylib
Referenced from: /usr/bin/pdflatex
Reason: image not found
Trace/BPT trap

So I did a find for the missing file "libpng12.0.dylib" and found it in a
couple other directories. They are:
/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libpng12.0.dylib
/usr/X11/lib/libpng12.0.dylib

So I copied the file out of there (the 1st directory I listed) and into the
/usr/bin directory. I then tried to run pdflatex again and got this error:

dyld: Library not loaded: /sw/lib/libpng12.0.dylib
Referenced from: /usr/bin/pdflatex
Reason: no suitable image found. Did find:
/sw/lib/libpng12.0.dylib: can't map
Trace/BPT trap

Has anyone seen this before? Any advice on how I can get this to work?

I even tried this with the most basic of .tex files possible:

\documentclass{article}
\begin{document}
hello world!
\end{document}

and it can't even compile that.

I googled a lot, and still can't find a solution.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/macostex-archives/attachments/20090411/6dd95eca/attachment.html 
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
List Archive: http://tug.org/pipermail/macostex-archives/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex



More information about the macostex-archives mailing list