From: Tom Cloyd Date: 2009-09-03T08:42:17+09:00 Subject: Re: gem install failure - probably easy to fix Axel Etzold wrote: > -------- Original-Nachricht -------- > >> Datum: Thu, 3 Sep 2009 00:03:12 +0900 >> Von: Tom Cloyd >> An: ruby-talk@ruby-lang.org >> Betreff: Re: gem install failure - probably easy to fix >> > > >> Axel Etzold wrote: >> >>> Dear Tom, >>> >>> >>> >>> >>>> ERROR: While executing gem ... (Errno::EACCES) >>>> Permission denied - /home/tomc/.ri/cache/.doc_dirs >>>> >>>> >>> you don't have sufficient writing rights on that file, probably >>> because you installed the gems as normal user rather than with sudo >>> privileges. >>> >>> >> Actually, no. I did install rubygems as root user. THEN I discovered >> that "sudo gem install..." wouldn't work, but "gem install..." would. >> >> I don't understand what happened. >> >> > > Tom, > > then I'd guess that the cache file is locked (maybe by some other > installation process), and that you'd need to unlock it using eg., chown . > > Best regards, > > Axel > Very interesting. Sometimes the obvious solution is the right solution, and was in this case. Resetting permissions for the /ri dir fixed everything. Thanks! t. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << tc@tomcloyd.com >> (email) << TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~