I have recently installed TeXLive on Mac OSX Yosemite from this link
I then find texdoc as follows
$ which texdoc /opt/local/bin/texdoc
When I run it, I get an error
$ texdoc pgf dyld: Library not loaded: /opt/local/lib/libpng15.15.dylib Referenced from: /opt/local/bin/texlua Reason: Incompatible library version: texlua requires version 33.0.0 or later, but libpng15.15.dylib provides version 31.0.0 Trace/BPT trap: 5
I then try a fix
$ brew upgrade $ brew update $ brew doctor $ brew uninstall libpng $ brew install libpng ... outputs don't show any obvious problems ...
but that did not work. I'd be grateful for any advice how to uncapsize and salvage my installation. The only thing I can think of to do is wipe the machine and start over completely from scratch :(