From: eepeterson Date: 2009-10-21T03:40:06+09:00 Subject: Re: /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:384:in `initialize': Permission denied On Oct 20, 2:35 pm, Aaron Patterson wrote: > eepeterson wrote: > > I'm getting the following error when I try to run 'ri' command. I'm > > running on Snow Leopard if that helps at all. > > > /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:384:in `initialize': > > Permission denied - /Users/erik_mbp/.ri/cache/.doc_dirs > > (Errno::EACCES) > >    from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:384:in `open' > >    from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:384:in > > `create_class_cache' > >    from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:371:in `class_cache' > >    from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:591:in `block in > > run' > >    from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:590:in `each' > >    from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:590:in `run' > >    from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:300:in `run' > >    from /usr/local/bin/ri:5:in `
' > > > ANy ideas on how I can fix this? > > Looks like you ran "ri" with some other user (probably root) and it > created a directory in your ".ri" directory that you cannot read.  You > need to either fix the permissions here: > >   /Users/erik_mbp/.ri/cache/.doc_dirs > > Look at the "chown" command. > > Or just rm your ".ri" directory and like rdoc rebuild it. > > -- > Aaron Pattersonhttp://tenderlovemaking.com/ any chance you could give me some further info on how to fix the permissions. I'm slowing learning more terminal commands but still need help obviously...