<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>moving or copying the Macaulay2 files</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_running_sp__Macaulay2_spin_spa_spterminal_spwindow.html">next</a> | <a href="_teaching_spyour_spshell_sphow_spto_spfind_sp__M2.html">previous</a> | <a href="_running_sp__Macaulay2_spin_spa_spterminal_spwindow.html">forward</a> | <a href="_teaching_spyour_spshell_sphow_spto_spfind_sp__M2.html">backward</a> | <a href="_getting_spstarted.html">up</a> | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <div><a href="index.html" title="">Macaulay2Doc</a> > <a href="_getting_spstarted.html" title="">getting started</a> > <a href="_moving_spor_spcopying_spthe_sp__Macaulay2_spfiles.html" title="">moving or copying the Macaulay2 files</a></div> <hr/> <div><h1>moving or copying the Macaulay2 files</h1> <div>It is important, if you want to move or copy the Macaulay2 files, to move or copy the entire directory tree, so their relative locations do not change.<p/> When <tt>M2</tt> starts up, it locates the files it needs (such as <tt>setup.m2</tt>), by first locating <tt>M2</tt> and then traversing the directory tree it expects to find <tt>M2</tt> in. If you copy or move just <tt>M2</tt> (or <tt>M2.exe</tt>, under windows) to some other directory, then that traversal will not be successful.<p/> There are other ways to arrange for <tt>M2</tt> to be on your PATH: with a symbolic link, or by adding a directory name to the PATH; see <tt>teaching your shell how to find M2</tt>.</div> </div> </body> </html>