Bugs item #27463, was opened at 2009-11-20 06: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: Luis Lavena (luislavena)
Date: 2009-11-20 08:58

Message:
Have to agree with Marcus,

On OSX, CONFIG['INSTALL'] looks like this:

/usr/bin/install -c

In other OS, like Linux, looks the same.

The value of install was form during the configure and install process of Ruby 
itself, and is the one being used by mkmf to generate the Makefile.

I would check the way FreeBSD is building Ruby to see if that is the problem.

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

Comment By: Marcus Rueckert (darix)
Date: 2009-11-20 08: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