Skip to content

Gem Fails to Install Without 'sudo' #94

Closed
jherdman opened this Issue Nov 26, 2009 · 6 comments

4 participants

@jherdman

I tried to install the FasterCSV gem without 'sudo' today and found that Rubinius tries to install gems to its own path instead of my $HOME directory (happens with MRI, 1.9, JRuby). Here's the verbose output of attempting this install:

(~)→ rbx gem install -V fastercsv
GET 200 OK: http://gemcutter.org/latest_specs.4.8.gz
Installing gem fastercsv-1.5.0
Downloading gem fastercsv-1.5.0.gem
connection reset after 2 requests, retrying
GET 302 Found: http://gemcutter.org/gems/fastercsv-1.5.0.gem
GET 200 OK: http://s3.amazonaws.com/gemcutter_production/gems/fastercsv-1.5.0.gem
ERROR:  While executing gem ... (EACCES)
    Permission denied - Permission denied - /usr/local/rubinius/gems/1.8

Rubinius 1.0.0RC1 (with LLVM), Macbook, OS X 10.6.2

@tmornini

Could you show us shell output of "env"? Thanks!

@jherdman
PATH=/opt/local/apache2/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/X11R6/bin:/usr/local/scripts:/opt/local/bin:/usr/local/games:/Users/james/.gem/ruby/1.8/bin:/usr/local/rubinius/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/PalmSDK/Current/bin:/usr/X11/bin
TMPDIR=/var/folders/L3/L3c6g-Q0EG4huNwbOSjOBU+++TI/-Tmp-/
SHELL=/bin/zsh
HOME=/Users/james
USER=james
LOGNAME=james
DISPLAY=/tmp/launch-qgQJts/:0
SSH_AUTH_SOCK=/tmp/launch-shwDAH/Listeners
Apple_PubSub_Socket_Render=/tmp/launch-2xV86i/Render
COMMAND_MODE=unix2003
__CF_USER_TEXT_ENCODING=0x1F5:0:82
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=272
LANG=en_CA.UTF-8
TERM=xterm-color
SHLVL=1
PWD=/Users/james
OLDPWD=/Users/james
PROMPT=%{�[0;32m%}(%~)%{�[0;33m%}→ %{�[0m%}
EDITOR=vim
CLICOLOR=true
LSCOLORS=GxFxCxDxBxEGEDABAGACAD
LC_CTYPE=en_US.UTF-8
LD_LIBRARY_PATH=/usr/local/lib
PAGER=less
_=/usr/bin/env
@engineyard

I recently fixed a few rubygems related things, please try again and reopen.

@evanphx
Rubinius member
evanphx commented Dec 4, 2009

Ack, that was me evan. I was logged in wrong.

@jherdman
jherdman commented Dec 5, 2009

Hi Evan.

I pulled in the latest changes to Rubinius this morning, uninstalled my previous copy, rebuilt and reinstalled, and found that the issue persists. My output is below:

(~/dev/rubinius)→ rbx gem install -V fastercsv
GET 200 OK: http://gemcutter.org/latest_specs.4.8.gz
Installing gem fastercsv-1.5.0
ERROR:  While executing gem ... (EACCES)
    Permission denied - Permission denied - /usr/local/rubinius/gems/1.8

Note that Rubinius is still attempting to install to /usr/local/rubinius/gems/1.8 despite the fact that I'm not using 'sudo'. Expected behaviour without 'sudo' is to install to $HOME/.gem/rbx/1.8.

@jherdman
jherdman commented Jan 5, 2010

FYI: This issue persists in RC2

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.