[Rubygems-developers] Fwd: rubygems user install of extensions

Marcus Rueckert darix at web.de
Thu Sep 28 07:00:28 EDT 2006

On 2006-09-28 08:48:45 +0200, Dimitri Aivaliotis wrote:
> ---------- Forwarded message ----------
> From: Dimitri Aivaliotis <aglarond at gmail.com>
> Date: Sep 25, 2006 4:44 PM
> Subject: rubygems user install of extensions
> To: ruby-talk ML <ruby-talk at ruby-lang.org>
> Hello,
> My problem is that I am trying to run a gems installation as a non-root
> user, and this doesn't work out-of-the-box for any gems that include the
> building of extensions with mkmf.  For each gem (example: mongrel), I need
> to add the following lines to extconf.rb:
> require 'etc'
> user = ENV['USER']
> group = Etc.getpwnam(user).gid
> module Config
>  MAKEFILE_CONFIG["INSTALL"] = "/usr/bin/install -c -o #{user} -g #{group}"
> end
> and regenerate the gem.
> I was wondering if anyone else ran into a similar problem when installing a
> gem that included extensions?  Do you have other solutions?  Is there any
> way of specifying MAKEFILE_CONFIG["INSTALL"] in .gemrc, for example?

what error do you get?
on my linux box i have:
CONFIG["INSTALL"] = "/usr/bin/install -c"
which should work as non-root user too.


           openSUSE - SUSE Linux is my linux
               openSUSE is good for you

More information about the Rubygems-developers mailing list