OK, thanks. I've just added alias sage="/Applications/SageMath-8.5.app/sage"
to .bash_profile, and everything is working smoothly. Sorry that this turned out to be not a sage question but a pseudo-Unix question. On Sunday, January 20, 2019 at 12:41:55 PM UTC+3, Chris Brav wrote: > > Two related problems. > > 1) In finder, the sage icon is labeled SageMath-8.5. I thought I could > change it to just Sage, to be less awkward, but that breaks it for some > reason, causing a complaint that I'm trying to open an uninstalled tarball. > (I don't seem to have any such tarball.) > > 2) When I run 'ln -s /Applications/SageMath-8.5.app/sage > /usr/local/bin/sage', it does create a file 'sage' in /usr/local/bin. So > far so good. But then running 'sage' in the terminal returns > > FSPathMakeRef(/Applications/Sage.app/Contents/Resources/sage/sage) failed > with error -43. > > > So somehow it wants to find Sage.app, rather than SageMath-8.5.app. > > > > > > > > > On Sunday, January 20, 2019 at 12:19:54 PM UTC+3, Dima Pasechnik wrote: >> >> On Sun, Jan 20, 2019 at 9:16 AM Chris Brav <chris....@gmail.com> wrote: >> > >> > Thanks! Now it works with macaulay2. >> > >> > As for ln, I was following the directions in the install directions. >> I'll sort that out separately. >> >> How that "ln" was failing? If it's indeed a problem (MacOSX is very >> much a moving target) we should update our docs. >> >> Thanks. >> >> > >> > On Sunday, January 20, 2019 at 12:12:32 PM UTC+3, Dima Pasechnik wrote: >> >> >> >> >> >> >> >> On Sat, 19 Jan 2019 21:08 Chris Brav <chris....@gmail.com wrote: >> >>> >> >>> Unfortunately I have been unable to get sage running directly from a >> terminal on Mac. sudo ln -s /path/to/SageMath/sage /usr/local/bin/sage >> didn't work for me. >> >> >> >> >> >> Why would you need "ln"? >> >> Can't you simply start Sage in Terminal as /path/to/SageMath/sage >> >> >> >> >> >>> So I click on the icon and then have a choice to open either a >> terminal or a Jupyter notebook. Once the terminal is opened, I can use it >> to talk to Macaulay 2, but not through the Jupyter notebook. >> >>> >> >>> Sorry for being so helpless. >> >>> >> >>> On Saturday, January 19, 2019 at 9:19:16 PM UTC+3, Dima Pasechnik >> wrote: >> >>>> >> >>>> How do you start Jupyter? I believe that if you start it via >> terminal command "sage -n" then you will get exactly the same Sage >> environment in Jupyter as you get at Sage's prompt. >> >>>> >> >>>> >> >>>> On Sat, 19 Jan 2019 18:10 Chris Brav <chris....@gmail.com wrote: >> >>>>> >> >>>>> I like to use a jupyter notebook for sage, but also want to use a >> bit of macaulay2 at the same, using the sage interface. In a sage terminal, >> >>>>> >> >>>>> macaulay2('2+2') >> >>>>> >> >>>>> returns 4 as expected, but in a jupyter notebook I get an error, >> the end of which reads >> >>>>> >> >>>>> TypeError: unable to start macaulay2 because the command 'M2 >> --no-debug --no-readline --silent -e \'ZZ#{Standard,Core#"private >> dictionary"#"InputPrompt"} = lineno -> "_EGAS_ : >> ";ZZ#{Standard,Core#"private dictionary"#"InputContinuationPrompt"} = >> lineno -> "_EGAS_ : ";printWidth = 0;lineNumber = 10^9;\'' failed: The >> command was not found or was not executable: M2. >> >>>>> >> >>>>> >> >>>>> Any advice? Presumably I have to tell jupyter how see macaulay2... >> >>>>> >> >>>>> >> >>>>> >> >>>>> -- >> >>>>> You received this message because you are subscribed to the Google >> Groups "sage-support" group. >> >>>>> To unsubscribe from this group and stop receiving emails from it, >> send an email to sage-support...@googlegroups.com. >> >>>>> To post to this group, send email to sage-s...@googlegroups.com. >> >>>>> Visit this group at https://groups.google.com/group/sage-support. >> >>>>> For more options, visit https://groups.google.com/d/optout. >> >>> >> >>> -- >> >>> You received this message because you are subscribed to the Google >> Groups "sage-support" group. >> >>> To unsubscribe from this group and stop receiving emails from it, >> send an email to sage-support...@googlegroups.com. >> >>> To post to this group, send email to sage-s...@googlegroups.com. >> >>> Visit this group at https://groups.google.com/group/sage-support. >> >>> For more options, visit https://groups.google.com/d/optout. >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "sage-support" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to sage-support...@googlegroups.com. >> > To post to this group, send email to sage-s...@googlegroups.com. >> > Visit this group at https://groups.google.com/group/sage-support. >> > For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.