On Mar 15, 2012, at 00:58, Phil Dobbin wrote:

> The thing I find perplexing is that rvm doesn't use sudo (I'm using a
> single-user install with all relevant files in $HOME) so rvm, whatever
> its shortcomings may be, does not manipulate the $PATH when sudo is
> called. It seems that Mac Ports clobbers the $PATH when sudo is
> invoked leaving it in an indeterminate state from where it found it.
> 
> rvm is the only part of the shell environment that gets affected by
> this however (perlbrew which serves a similar purpose for Perl is
> quite unaffected in $HOME). In fact after invoking sudo, perlbrew
> comes to the front of the $PATH followed by Mac Ports (see gist).
> 
> So in summation, calling sudo with Mac Ports is going to clobber rvm
> in the present terminal & to get back to the normal state of things
> it's either close all terminal windows (with six tabs open they all
> get clobbered) & start a new session or either uninstall
> /opt/local/bin's Ruby or rvm.

I continue to be unaware of any code in MacPorts that could be responsible for 
this behavior, and believe you need to look elsewhere for the solution.


_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to