Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 4373

Macaulay2-1.3.1-8.fc15.i686.rpm

<?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>finding 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="_teaching_sp__M2_sphow_spto_spfind_spits_spshared_splibraries.html">next</a> | <a href="_checking_spyour_sp__Macaulay2_spinstallation.html">previous</a> | <a href="_teaching_sp__M2_sphow_spto_spfind_spits_spshared_splibraries.html">forward</a> | <a href="_checking_spyour_sp__Macaulay2_spinstallation.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="_finding_spthe_sp__Macaulay2_spfiles.html" title="">finding the Macaulay2 files</a></div>
<hr/>
<div><h1>finding the Macaulay2 files</h1>
<div>Often you will know where the Macaulay2 files are, because you have installed them yourself.  But it can happen that Macaulay2 was installed by your system administrator so you can run M2, but you don't know where its files are.  In that case, there are a couple of ways to locate the files.<p/>
One way, under Unix, is to use the following shell command.<pre>     type M2</pre>
The response will be of the following form.<pre>     M2 is /foo/bar/bin/M2</pre>
The Macaulay2 files come in a directory tree that mimics the directory tree found on unix systems in the directory /usr.  In particular, its top-level directory has subdirectories called <tt>bin</tt>, <tt>info</tt>, <tt>lib</tt>, and <tt>share</tt>, so now we know, from the output above, that the Macaulay 2 files have been installed with a prefix <tt>/foo/bar</tt> as the name of its root directory.  It will follow, for example, that the M2 emacs init file is located at <tt>/foo/bar/share/emacs/site-lisp/M2-init.el</tt>.<p/>
Another way to locate the files of Macaulay2 is to ask M2, assuming you can run it.  Start M2 and type the following expression.<pre>     prefixDirectory</pre>
The response will be of the following form, and will also tell you the prefix for the paths to the Macaulay2 files.<pre>     i1 : prefixDirectory

     o1 = /foo/bar/ </pre>
If you are running M2 and emacs under cygwin on a Windows computer, then that can prevent special difficulties: see <a href="_finding_spyour_spfiles_spunder_spcygwin.html" title="">finding your files under cygwin</a>.</div>
</div>
</body>
</html>