# [pdftex] can't compile using mac tex distribution

Axel E. Retif axel.retif at mac.com
Sat Apr 11 06:15:34 CEST 2009

Tim,

I'm Ccing your message below to Richard Koch, MacTeX maintainer. Also,
I would advise you to subscribe to the TeX on Mac OS mailing list:

http://email.esm.psu.edu/mailman/listinfo/macosx-tex

where you can get proper help for your distribution, as the pdfTeX
mailing deals with pdfTeX development, and your problem is really

That said, your problem is that Fink is getting on the way (/sw/ is
Fink's distribution main directory). Moreover, MacTeX *doesn't*
install binaries in /usr/bin (neither Fink, by the way), but
*symlinks* in /usr/texbin ---the actual binaries are in /usr/local/
texlive/2008/bin/universal-darwin.

So, please subscribe to the mailing list above and tell exactly how
you installed MacTeX and which other distributions (Fink, MacPorts...)
you have installed one time or another (that is, even if you have
uninstalled them).

Best regards,

Axel

> 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
> 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.