From: Ryan Davis Date: 2010-09-04T04:17:31+09:00 Subject: Re: load path On Sep 3, 2010, at 06:47 , Iain Barnett wrote: > I don't have a reset line, but here's my sudoers. > > # sudoers file. Here is what my /etc/sudoers has. It has only the one documented molestation by myself. Everything else is _standard_ to Mac OSX: > # Defaults specification > Defaults env_reset > Defaults env_keep += "BLOCKSIZE" > Defaults env_keep += "COLORFGBG COLORTERM" > Defaults env_keep += "__CF_USER_TEXT_ENCODING" > Defaults env_keep += "CHARSET LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE" > Defaults env_keep += "LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME" > Defaults env_keep += "LINES COLUMNS" > Defaults env_keep += "LSCOLORS" > Defaults env_keep += "SSH_AUTH_SOCK" > Defaults env_keep += "TZ" > Defaults env_keep += "DISPLAY XAUTHORIZATION XAUTHORITY" > Defaults env_keep += "EDITOR VISUAL" > > # Added by ryand: > Defaults env_keep += "GEM_PATH GEM_HOME" So, did you gut yours, or what? what's the output from `which sudo`? > # User privilege specification > root ALL=(ALL) ALL > %admin ALL=(ALL) ALL > %iainuser ALL=(ALL) ALL you shouldn't need %iainuser either if your user is set up as an admin. > Here's a relevant portion of my zprofile, with recent additions included: > > export RUBY_PLATFORM=darwin > export PLATFORM="$RUBY_PLATFORM" > export RUBY_VERSION=1.9 > export GEM_HOME="$HOME/.gems" > export RUBYLIB="$GEM_HOME" > export GEM_PATH="$GEM_HOME" > export RUBYOPT=rubygems Here is what I have: > 501 % env | egrep "RUBY|GEM" > GEM_PATH=/Library/Ruby/Gems/1.8 Why do you have all that stuff? and why are you trying to force gems into ~/.gems if that's supported already? What are you actually trying to do?