-
Notifications
You must be signed in to change notification settings - Fork 3
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:
- Duplicate the file
/Applications/polymake.app/Contents/MacOS/polymake.start
into/Applications/polymake.app/Contents/MacOS/polymake.start2
. - 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) - 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 "$@"
. - Create a new file named polymake in the directory
/usr/local/bin/
, type the following:
/Applications/polymake.app/Contents/MacOS/polymake.start2 "$@"
- Open a terminal and type the following:
chmod +x /usr/local/bin/polymake