Bugs item #27463, was opened at 2009-11-20 10:49
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27463&group_id=126

Category: `gem install` command (extensions)
Group: v1.3.x
Status: Open
Resolution: None
Priority: 3
Submitted By: Josef Pospíšil (damnpepe)
Assigned to: Nobody (None)
Summary: On freebsd gem install uses install -oroot -gwheel when there are 
native extension (nokogiri, json)

Initial Comment:
When instaling gem as non-super user and it has native extension (nokogiri, 
json tested) on freebsd, it always fails with (nokogiri example):

install: /home/pepe/.gem/ruby/1.8/gems/nokogiri-1.4.0/lib/nokogiri/nokogiri.so: 
chown/chgrp: Operation not permitted
*** Error code 71

which is caused by (I think):

/usr/bin/install -c -o root -g wheel -m 0755 nokogiri.so 
/home/pepe/.gem/ruby/1.8/gems/nokogiri-1.4.0/lib/nokogiri

which in turn is caused by this line in Makefile:

INSTALL = /usr/bin/install -c -o root -g wheel

I tried to find solution, but my OS/extension knowledge is very limited. 

FreeBSD: 7.2-STABLE FreeBSD
Ruby: ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-freebsd7]
gem env:
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.5
  - RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [i386-freebsd7]
  - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: /usr/local/bin/ruby18
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-freebsd-7
  - GEM PATHS:
     - /usr/local/lib/ruby/gems/1.8
     - /home/metee/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://gems.rubyforge.org




----------------------------------------------------------------------

Comment By: Marcus Rueckert (darix)
Date: 2009-11-20 12:54

Message:
this is not a bug of rubygems. the value for INSTALL comes from the rbconfig.

ruby -rrbconfig -e 'puts Config::CONFIG["INSTALL"]'

this would be more a bug of the ruby parts on freebsd.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27463&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to