[DRE-maint] Bug#514126: unable to install gems as non-root user

Antonio Terceiro terceiro at softwarelivre.org
Thu Apr 8 02:56:53 UTC 2010


The problem here is not the permissions of /var/lib/gems, but the fact
the a non-root user cannot install gems into her $HOME/.gem anymore,
which used to work with rubygems 1.3.5-2. Uninstalling gems from
$HOME/.gem, on the other hand, seems to work.

==> 1.3.6-1 installed, unable to install as non-root

  terceiro at morere:~/tmp (home)$ dpkg -l rubygems1.8
  Desired=Unknown/Install/Remove/Purge/Hold
  | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
  |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
  ||/ Name                              Version                           Description
  +++-=================================-=================================-==================================================================================
  ii  rubygems1.8                       1.3.6-1                           package management framework for Ruby libraries/applications
  terceiro at morere:~/tmp (home)$ gem install mocha
  ERROR:  While executing gem ... (Gem::FilePermissionError)
      You don't have write permissions into the /var/lib/gems/1.8 directory.
  
==> downgrade to 1.3.5-2, works fine

  terceiro at morere:~/tmp (home)$ sudo dpkg -i rubygems1.8_1.3.5-2_all.deb 
  dpkg: warning: downgrading rubygems1.8 from 1.3.6-1 to 1.3.5-2.
  (Reading database ... 205680 files and directories currently installed.)
  Preparing to replace rubygems1.8 1.3.6-1 (using rubygems1.8_1.3.5-2_all.deb) ...
  Unpacking replacement rubygems1.8 ...
  Setting up rubygems1.8 (1.3.5-2) ...
  Processing triggers for man-db ...
  terceiro at morere:~/tmp (home)$ gem install mocha
  WARNING:  Installing to ~/.gem since /var/lib/gems/1.8 and
  	  /var/lib/gems/1.8/bin aren't both writable.
  Successfully installed rake-0.8.7
  Successfully installed mocha-0.9.8
  2 gems installed
  Installing ri documentation for rake-0.8.7...
  Installing ri documentation for mocha-0.9.8...
  Installing RDoc documentation for rake-0.8.7...
  Installing RDoc documentation for mocha-0.9.8...

==> upgrade again to 1.3.6-1, able to remove

  terceiro at morere:~/tmp (home)$ sudo apt-get install rubygems1.8
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Suggested packages:
    rubygems-doc
  The following packages will be upgraded:
    rubygems1.8
  1 upgraded, 0 newly installed, 0 to remove and 503 not upgraded.
  Need to get 0B/198kB of archives.
  After this operation, 12.3kB of additional disk space will be used.
  (Reading database ... 205683 files and directories currently installed.)
  Preparing to replace rubygems1.8 1.3.5-2 (using .../rubygems1.8_1.3.6-1_all.deb) ...
  Unpacking replacement rubygems1.8 ...
  Processing triggers for man-db ...
  Setting up rubygems1.8 (1.3.6-1) ...
  terceiro at morere:~/tmp (home)$ gem uninstall mocha rake
  Successfully uninstalled mocha-0.9.8
  Remove executables:
  	rake
  
  in addition to the gem? [Yn]  y
  Removing rake
  Successfully uninstalled rake-0.8.7


-- 
Antonio Terceiro <terceiro at softwarelivre.org>
http://softwarelivre.org/terceiro


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20100407/95ab8b61/attachment-0001.pgp>


More information about the Pkg-ruby-extras-maintainers mailing list