So, the setup() function in Macaulay2 (version 1.4, when I answered YES to all questions) broke my sudo. It changed something in the DYLD path/environment/library or something. I got this "dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid".
Now, I completely uninstalled Macaulay2, including removing a bunch of files in my home directory beginning with . Then I put a symbolic link to M2 in my /usr/bin. Then I put back the -e that was in the macaulay2.py files inside of Sage. Now, macaulay2(2+2) returns 4 with no error. Thank you everybody! By the way, there is a confusing discussion in Apple's support website about the dyld thing. On Saturday, November 3, 2012 10:42:17 PM UTC-4, Justin C. Walker wrote: > > > On Nov 3, 2012, at 19:24 , Peter Horn wrote: > > > And the plot thickens. > > > > I found all files called "macaulay2.py" in the application > > "Sage-5.3-OSX-64bit-10.6.app" and removed the "-e" from line 180. > > If you remove the "-e" (see my comment earlier in the thread) you may need > to remove the "stuff" that follows, since that is supposed to be a command > to the M2 program. Can't say for sure what it does, but it might cause > problems when the line is given to a shell. > > However, I don't think the "-e" is the problem. > > > I restarted my computer. Now I get the error: > > > > TypeError: Unable to start macaulay2 because the command 'M2 --no-debug > > --no-readline --silent 'ZZ#{Standard,Core#"private > > dictionary"#"InputPrompt"} = lineno -> "_EGAS_ : > > ";ZZ#{Standard,Core#"private dictionary"#"InputContinuationPrompt"} = > > lineno -> "_EGAS_ : ";printWidth = 0;lineNumber = 10^9;'' failed. > > > > > > Now I'm confused! I wonder if the other stuff (ZZ#{Standard etc) means > anything. > > It surely does; I suspect it has something to do with "3+3". > > I tried what you mentioned in your original post, and it worked (Mac OS X, > 10.6.8). Perhaps the M2 interpreter is not in your default path. I know > you can run it from the command line, but you don't say how you do that. > > Try this (assuming you don't have it set up similarly): make a symbolic > link from your M2 interpreter to /usr/bin (you may have to do this as root, > e.g., with "sudo"): > > $ ln -s /path/to/M2 /usr/bin/M2 > > and then try again. I don't think you have to restart your browser, but > if it doesn't work, do that and try again. > > HTH > > Justin > > -- > Justin C. Walker, Curmudgeon at Large > Institute for the Absorption of Federal Funds > ----------- > If it weren't for carbon-14, I wouldn't date at all. > ----------- > > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. 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. Visit this group at http://groups.google.com/group/sage-support?hl=en.