# RDOC and dot on mac

**URL:** <https://www.ruby-forum.com/t/rdoc-and-dot-on-mac/88111>\
**Category:** Rails\
**Created:** [January 3, 2006, 2:02am UTC](https://www.ruby-forum.com/t/rdoc-and-dot-on-mac/88111 "2006-01-03T02:02:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![klancaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f1d935/32.png) [@klancaster](https://www.ruby-forum.com/u/klancaster)\
**Post date:** [January 3, 2006, 2:02am UTC](https://www.ruby-forum.com/t/rdoc-and-dot-on-mac/88111/1 "2006-01-03T02:02:24Z")

</div>

All,  
This is probably a bit more of a mac question, but here goes.  
(Admission: I  
posted this to ruby-talk as well…)

I am trying to use rdoc -d to generate class diagrams on a mac running  
Tiger  
(OS X 10.4) for a rails app. I managed to get dot installed, but now am  
running into problems with dot looking for libraries that either do not  
exist or are apparently in the wrong place. I probably made things worse  
by  
trying (at various times) both Darwin ports and i-installer. Can anyone  
point me to instructions on getting this working?

BTW, the current error I am getting is

dyld: Library not loaded: /Local/DarwinPorts/lib/libpng.3.dylib  
Referenced from: /usr/local/bin/dot  
Reason: image not found

TIA,  
Keith

---

<div class="post-metadata">

**Author:** ![klancaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f1d935/32.png) [@klancaster](https://www.ruby-forum.com/u/klancaster)\
**Post date:** [January 3, 2006, 2:59am UTC](https://www.ruby-forum.com/t/rdoc-and-dot-on-mac/88111/2 "2006-01-03T02:59:52Z")

</div>

This would be kinda hackish, but you could download Graphviz[1] and  
use the prebuilt dot buried inside of the .app package.[2]

Or maybe you just need Graphviz. I find quite a bit handier,  
especially for large graphs.

Corey

1. [pixelglow | graphviz](http://www.pixelglow.com/graphviz/)
2. ./Graphviz.app/Contents/MacOS/dot

On Jan 2, 2006, at 5:01 PM, Keith L. wrote:

> not  
> Reason: image not found
> 
> TIA,  
> Keith
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

Corey J.  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![klancaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f1d935/32.png) [@klancaster](https://www.ruby-forum.com/u/klancaster)\
**Post date:** [January 3, 2006, 6:39am UTC](https://www.ruby-forum.com/t/rdoc-and-dot-on-mac/88111/3 "2006-01-03T06:39:05Z")

</div>

Keith L. wrote:

> Corey J. wrote:
> 
> > This would be kinda hackish, but you could download Graphviz[1] and  
> > use the prebuilt dot buried inside of the .app package.[2]
> > 
> > Or maybe you just need Graphviz. I find quite a bit handier,  
> > especially for large graphs.
> > 
> > Corey
> > 
> > 1. [pixelglow | graphviz](http://www.pixelglow.com/graphviz/)
> > 2. ./Graphviz.app/Contents/MacOS/dot
> 
> Corey,  
> Thanks - I had actually tried that, but could not figure out how to use  
> the dot that is embedded. How do you tell rdoc to use that one?
> 
> Keith

Duh- got it working by creating a sym link to the dot file in the  
graphviz directory. Guess I am still doing something not quite right,  
since the output appears to be many diagrams, each of one source file. I  
am looking for an overall class diagram.

Keith

---

<div class="post-metadata">

**Author:** ![klancaster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f1d935/32.png) [@klancaster](https://www.ruby-forum.com/u/klancaster)\
**Post date:** [January 3, 2006, 3:04am UTC](https://www.ruby-forum.com/t/rdoc-and-dot-on-mac/88111/4 "2006-01-03T03:04:23Z")

</div>

Corey J. wrote:

> This would be kinda hackish, but you could download Graphviz[1] and  
> use the prebuilt dot buried inside of the .app package.[2]
> 
> Or maybe you just need Graphviz. I find quite a bit handier,  
> especially for large graphs.
> 
> Corey
> 
> 1. [pixelglow | graphviz](http://www.pixelglow.com/graphviz/)
> 2. ./Graphviz.app/Contents/MacOS/dot

Corey,  
Thanks - I had actually tried that, but could not figure out how to use  
the dot that is embedded. How do you tell rdoc to use that one?

Keith
