Making RDoc Ruby Gem Default on Mac OS X
- by jkale
Hey all,
I've recently installed RDoc version (2.4.3) through Ruby gems to replace the one shipped with Mac OS X (version 1.0.1). Unfortunately, I can still only use RDoc 1.0.1 when I call run "rdoc" at the command line. rdoc -v returns:
RDoc V1.0.1 - 20041108
I tried amending the $PATH variable to point the first entry to the RDoc 2.4.3 folder but no luck. I couldn't find anything about this online either, so I thought I'd ask here.
Cheers!
Update:
Running "gem list -d --version 1.0.1 rdoc" returns:
*** LOCAL GEMS ***
rdoc (2.4.3)
Authors: Eric Hodel, Dave Thomas, Phil Hagelberg, Tony Strauss
Rubyforge: http://rubyforge.org/projects/rdoc
Homepage: http://rdoc.rubyforge.org
Installed at: /usr/local/lib/ruby/gems/1.8
RDoc is an application that produces documentation for one or more
Ruby source files
Therefore, it's definitely the Mac OSX version of RDoc that's interfering with the Gems version.
Update 2:
I found out, using:
`bash --debugger rdoc`
that the old version of RDoc was in /opt/local/bin. I deleted it and added my gems directory to my $PATH
`export PATH=/usr/local/lib/ruby/gems/1.8/gems/`
I now have a fresh working copy of the latest RDoc!