Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Sep 2006 07:28:33 GMT
From:      Dimitri Aivaliotis <aglarond@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/103801: lang/ruby18: unprivileged rubygems install of gems with extensions fails
Message-ID:  <200609290728.k8T7SXOk009932@www.freebsd.org>
Resent-Message-ID: <200609290730.k8T7UIuA052244@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         103801
>Category:       ports
>Synopsis:       lang/ruby18: unprivileged rubygems install of gems with extensions fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 29 07:30:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Dimitri Aivaliotis
>Release:        6.1-RELEASE
>Organization:
>Environment:
FreeBSD linux-dna.everyware.ch 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006     root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
rubygems allows for nonprivileged users to use a gems repository in their home directory.  When installing a gem that compiles an extension, the install of this compiled part fails because the CONFIG["INSTALL"] in rbconfig.rb is set to "/usr/bin/install -c -o root -g wheel".  An unprivileged user can obviously not install anything as root, so the install fails.
>How-To-Repeat:
- install ruby and rubygems from ports.
- setup a local gem repository as an unprivileged user.
- install any gem that compiles an extension (mongrel, hpricot, etc.)

>Fix:
set CONFIG["INSTALL"] = '/usr/bin/install -c' in rbconfig.rb
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609290728.k8T7SXOk009932>