Skip to content

Running polymake on a Mac

madelinebrandt edited this page Jun 13, 2016 · 8 revisions

The current PolymakeInterface package assumes that you can run a command of the form polymake [script_file] in the terminal to run a polymake script. If you have a Mac and downloaded the polymake.app bundle, you may need to do the following steps:

  1. Duplicate the file /Applications/polymake.app/Contents/MacOS/polymake.start into /Applications/polymake.app/Contents/MacOS/polymake.start2.
  2. Open the new file polymake.start2 with a text editor. Delete line 3, which says
    echo -ne "\033]0;polymake\007" (If you do not have permission to save the edited file, you can give the edited one a new name, and use that file name in the subsequent steps)
  3. Still inside polymake.start2, add "$@" (with the quotation marks) to the end of the last line of the file. So the last line is now
    $ResourcesDir/polymake/bin/polymake "$@".
  4. Create a new file named polymake in the directory /usr/local/bin/, type the following:
    /Applications/polymake.app/Contents/MacOS/polymake.start2 "$@"
  5. Open a terminal and type the following: chmod +x /usr/local/bin/polymake