On 2/22/11 3:10 PM, Justin C. Walker wrote:

On Feb 22, 2011, at 11:44 , Jason Grout wrote:

On OSX, the path_helper command is always executed when starting a new shell.  
Unfortunately, the path_helper command prepends standard system values to the 
PATH variable, which means that the Sage-specific values come at the end of the 
PATH variable.  This causes all sorts of breakage when trying to use sage -sh 
to do something.

I'm on OSX 10.6.6.  Can people try the following commands:

Me too...

bash-3.2$ sage -sh
Detected SAGE64 flag
Building Sage on OS X in 64-bit mode

Starting subshell with Sage environment variables set.
Be sure to exit when you are done and do not do anything
with other copies of Sage!

Bypassing shell configuration files ...

SAGE_ROOT=/Users/grout/sage
(sage subshell) tiny:~/sage/local/bin grout$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin:/Users/grout/sage/local/Frameworks/Python.framework/Versions/2.5/bin:/Users/grout/sage:/Users/grout/sage/local/bin:.

Here's what I see (I put an extra \n between lines, for readability):

<justin@zippo:sage-4.6.2.rc0>  ./sage -sh

Starting subshell with Sage environment variables set.

Be sure to exit when you are done and do not do anything

with other copies of Sage!

Bypassing shell configuration files ...

SAGE_ROOT=/Users/Sage/sage-4.6.2.rc0

(sage subshell) zippo:sage-4.6.2.rc0 justin$ echo $PATH

/Users/Sage/sage-4.6.2.rc0/local/Frameworks/Python.framework/Versions/2.5/bin:/Users/Sage/sage-4.6.2.rc0:/Users/Sage/sage-4.6.2.rc0/local/bin:.:/Users/justin/bin:/usr/texbin:/usr/bin:/bin:/usr/sbin:/sbin

SAGE_ROOT=/Users/Sage/sage-4.6.2.rc0

(sage subshell) zippo:sage-4.6.2.rc0 justin$


I don't see what you see; perhaps one of us has sufficiently strange setup in 
our startup files to either mask or cause the problems.


Can you try the other simpler test?

bash-3.2$ PATH='.';export PATH
bash-3.2$ /usr/libexec/path_helper -s
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin:."; export PATH;

Thanks,

Jason

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to