[sage-support] compiling filename.sage generated by LaTeX on my Mac

2010-08-27 Thread Matt Boelkins
Hello,

I just installed Sage Version 4.5.2, Release Date: 2010-08-05 on my new
MacBookPro running OSX v10.6.4, as well as MacTeX.  I'm trying to use the
sagetex package.

I can compile a LaTeX file just fine, but when I run

"sage filename.sage"

from the terminal line (within the directory the file is in) I get this
error:

-bash: sage: command not found

Here is the exact code that leads to the error:

Matthew-Boelkinss-MacBook-Pro:z_sagetex_files boelkinm$ sage sagetest.sage
-bash: sage: command not found


Everything seems to have installed correctly; the only place I had any
difficulties was with the last part of #4 (from the README) file:

4) Select to run it with "Terminal":
 Choose Applications, then select "All Applications" in the
 "Enable:" drop down.  Change the "Applications" drop down
 to "Utilities".  On the left, scroll and select "Terminal".
 Click "Open", *then in the next dialog select "Update". *

No dialog box ever appeared; Sage simply opened in the terminal window.  It
is apparent that I have some sort of path issue.

Thanks in advance for any help you can provide.
Matt

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


Re: [sage-support] compiling filename.sage generated by LaTeX on my Mac

2010-08-27 Thread Mike Hansen
On Fri, Aug 27, 2010 at 8:05 AM, Matt Boelkins  wrote:
> Matthew-Boelkinss-MacBook-Pro:z_sagetex_files boelkinm$ sage sagetest.sage
> -bash: sage: command not found

Your terminal does not know where to find the "sage" command.  Suppose
Sage in installed in /Applications/sage-4.5.2, then you should add a
line in your "~/.bash_profile"

export PATH=$PATH:/Applications/sage-4.5.2

Then, when you restart the terminal, it will look in
/Applications/sage-4.5.2 when it tries to find the "sage" command.

--Mike

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