On 2006-09-28 08:48:45 +0200, Dimitri Aivaliotis wrote:
> ---------- Forwarded message ----------
> From: Dimitri Aivaliotis <[EMAIL PROTECTED]>
> Date: Sep 25, 2006 4:44 PM
> Subject: rubygems user install of extensions
> To: ruby-talk ML <[EMAIL PROTECTED]>
>
> 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.
darix
--
openSUSE - SUSE Linux is my linux
openSUSE is good for you
www.opensuse.org
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers