Macaulay2 on Windows

来源:互联网 发布:mac qq讨论组怎么删人 编辑:程序博客网 时间:2024/05/24 02:13

点击打开链接

想使用Macaulay2的时候有两种选项,一个是在线版本,一个是线下;

线下安装在非windows操作系统都比较简单(主要是我又不用其它操作系统,就算复杂,反正我是打酱油的,关我X事偷笑),windows下建议参考这里的方式

Hi, 
commalg.org has given a very easy and quick way to install Macaulay2 
in windows (They talk about 95, 2000, XP and Vista, but it works for 
windows 7 as well).  Only thing is that you should go to 
http://www.commalg.org/m2win/ and just follow instructions. In 5 
minutes I had Macaulay2 up and running in Windows 7. 
Before that I followed instructions given in Macaulay2 website (http:// 
www.math.uiuc.edu/Macaulay2/Downloads/Microsoft-Windows/Cygwin/index.html) 
for windows users but that process took 7 hours for me and finally it 
didnt work. 
This must be a good news for windows users. 
Thanks to commalg.org! 
Cheers, 
Chandana


点击打开链接

Below are instructions for installing Macaulay 2 in a Windows environment (95, 2000, XP, even Vista!), with the preferred emacs interface. This has worked for at least thirteen people since 2002 – please email us with questions.

Caveats

This installation includes Macaulay2 version 0.92, which is not the most recent version. (As of July 2009, version 1.2 is the current one.) We’re not planning to update the installation, so if it is important to you to have the current version, please see the Macaulay2 home page for information about installation.

The version of emacs included in this file is also not current: it’s version 21.2, whereas the latest version (as of July 2009) is 22.3.

Rex Dieter has packaged Macaulay2 in Windows Installer format. (See the instructions in that directory.) That’s another option for Windows users looking to install M2. It’s still version 0.92, though.

The installation

  1. download the file “mac2.zip” here (right-click and save it to your C:\ directory). Note: the file is 23 Mb.
  2. Unzip the file to your C:\ directory. You can do this with one of the free unzip utilities widely available, like 7-zip. (You may already have one of these installed – try just double-clicking on mac2.zip and see what happens.)
  3. The unzipped file willl be automatically extracted to C:\Macaulay2-0.9.2. Note: this location is important, since several of the files in the distribution depend on M2 being located here, rather than in some subdirectory.
  4. Find the file C:\Macaulay2-0.9.2\_emacs. Depending on how you have set up your machine, it may be hidden. If so, change your preferences under the View menu.
  5. Copy the file C:\Macaulay2-0.9.2\_emacs to the C:\ directory (at the top level).
  6. Run the emacs program file in a window, by double-clicking C:\Macaulay2-0.9.2\emacs-21.2\bin\emacs.exe. (You can also do this from an MS-DOS prompt, but if you know enough to do that, you’re probably ok at this point.)
  7. When emacs starts, press the F12 key to start M2.

You’re up and running!

Troubleshooting

Some people, mostly users of Windows 95 and 98, get an error when they open emacs and press F12: the emacs buffer says, “Out of environment space,Out of environment space, Bad command or file name”. That’s no fun. It’s happening because you do not have enough memory available for the MS-DOS environment. The best solution is to follow the directions on this Microsoft webpage. This doesn’t always work, but does more often than not.

If you are comfortable editing Windows batch files, you might try the following solution, due to Jesús Gago Vargas: add the variables M2HOME and M2WINH to your autoexec.bat file. For example, you might add:

rem The slashes in the next line should be /
set M2HOME=c:/Macaulay2-0.9.2/lib/Macaulay2-0.9.2
rem The slashes in the next line should be \ 
set M2WINH=c:\Macaulay2-0.9.2\lib\Macaulay2-0.9.2

(changing the path according to your machine, of course). Editing autoexec.bat is risky business, so please be careful!

Credits

Thanks to Sunsook Noh for providing the zipped file, and Amelia Taylor for letting us know!


0 0