From: Nobuyoshi Nakada Date: 2006-10-01T23:05:47+09:00 Subject: Re: rubygems user install of extensions Hi, At Mon, 25 Sep 2006 23:44:20 +0900, Dimitri Aivaliotis wrote in [ruby-talk:216293]: > 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 INSTALL should not have -o and -g options by default. Why do you need those options? Does your /usr/bin/install want to change owner and group even if run by a non-root user? -- Nobu Nakada