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
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. http://www.pixelglow.com/graphviz/ 2. ./Graphviz.app/Contents/MacOS/dot On Jan 2, 2006, at 5:01 PM, Keith Lancaster wrote:> 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 > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/railsCorey Jewett cj@syntheticplayground.com
Corey Jewett 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. 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 -- Posted via http://www.ruby-forum.com/.
Keith Lancaster wrote:> Corey Jewett 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. 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? > > KeithDuh- 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 -- Posted via http://www.ruby-forum.com/.
On Jan 2, 2006, at 5:34 PM, rails-request@lists.rubyonrails.org wrote:> 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?Just use Graphviz.app: http://www.pixelglow.com/graphviz/ Then add /Applications/Graphviz.app/Contents/MacOS/ to your $PATH. -- Eric Hodel - drbrain@segment7.net - http://segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com
On Jan 2, 2006, at 9:55 PM, rails-request@lists.rubyonrails.org wrote:> Keith Lancaster wrote: >> Corey Jewett 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. 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.That''s exactly what RDoc produces. It goes in the header for each class page.> I am looking for an overall class diagram.RDoc does not produce this, you''ll have to roll your own. -- Eric Hodel - drbrain@segment7.net - http://segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com