Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | install:macos [2024/04/11 16:57] (current) – [Install dependencies with Homebrew] paffenholz | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Install polymake on Mac OS ===== | ||
+ | |||
+ | The latest release 4.9 should work on all Mac OS versions greater or equal to 11. The installation requires a couple of steps (of which you have maybe done some already for other reasons): | ||
+ | * Install the xcode command line tools | ||
+ | * install Homebrew | ||
+ | * install Perlbrew | ||
+ | * install some dependencies using Homebrew | ||
+ | * install some dependencies using Perlbrew/ | ||
+ | * install a python dependence | ||
+ | * download and install polymake | ||
+ | |||
+ | For all steps you need an open Terminal. You can find the Terminal app in the Subfolder // | ||
+ | |||
+ | If you don't want to install Homebrew, you can try to install dependencies yourself. Some instructions are [[install: | ||
+ | |||
+ | ==== Install the Command Line Tools ==== | ||
+ | |||
+ | In the terminal type | ||
+ | < | ||
+ | Either this tells you that your command line tools are installed or opens a small window that asks you whether you want to install them. Confirm. It also offers to install the full XCode IDE. This is **not** necessary and **not** recommended (you then need to install the command line tools on top from within XCode). | ||
+ | |||
+ | ==== Install Homebrew ==== | ||
+ | |||
+ | Installation instructions are [[https:// | ||
+ | |||
+ | < | ||
+ | /bin/bash -c " | ||
+ | </ | ||
+ | |||
+ | ==== Install Perlbrew ==== | ||
+ | |||
+ | Installation instructions are [[https:// | ||
+ | |||
+ | < | ||
+ | \curl -L https:// | ||
+ | </ | ||
+ | |||
+ | We have to add some variables to the shell environment. Recent macs usually use '' | ||
+ | < | ||
+ | echo $SHELL | ||
+ | </ | ||
+ | If you use '' | ||
+ | * replace '' | ||
+ | * add < | ||
+ | |||
+ | Now add some paths to your Terminal config and reload the config. For an Intel Mac type the following lines in the terminal: | ||
+ | < | ||
+ | echo " | ||
+ | echo " | ||
+ | echo ' | ||
+ | source $HOME/ | ||
+ | </ | ||
+ | and for a Silicon Mac use | ||
+ | < | ||
+ | echo " | ||
+ | echo " | ||
+ | echo ' | ||
+ | source $HOME/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Install dependencies with Homebrew ==== | ||
+ | |||
+ | Run the following lines in your terminal: | ||
+ | < | ||
+ | brew install gmp | ||
+ | brew install mpfr | ||
+ | brew install boost | ||
+ | brew install readline | ||
+ | brew install ppl | ||
+ | brew install flint | ||
+ | brew install singular | ||
+ | brew install python3 | ||
+ | brew install ninja | ||
+ | brew install ccache | ||
+ | brew install mongo-c-driver | ||
+ | brew install jupyterlab | ||
+ | </ | ||
+ | |||
+ | ==== Install dependencies with Perlbrew ==== | ||
+ | |||
+ | Run the following lines in your terminal: | ||
+ | < | ||
+ | yes N | perlbrew install-cpanm | ||
+ | cpanm --local-lib=~/ | ||
+ | cpanm SVG | ||
+ | cpanm JSON | ||
+ | cpanm install Net::SSLeay | ||
+ | cpanm Term:: | ||
+ | cpanm Term:: | ||
+ | cpanm XML::SAX | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Download polymake ==== | ||
+ | |||
+ | You find the sources [[download: | ||
+ | |||
+ | In the terminal do | ||
+ | < | ||
+ | cd Downloads | ||
+ | tar -xvjf polymake-4.11.tar.bz2 | ||
+ | </ | ||
+ | |||
+ | ==== Configure and install polymake ==== | ||
+ | |||
+ | === Compilation === | ||
+ | |||
+ | Essentially, | ||
+ | |||
+ | < | ||
+ | cd ~/ | ||
+ | ./configure --without-java | ||
+ | ninja -C build/Opt -j2 install | ||
+ | </ | ||
+ | |||
+ | However, we recommend to install into a directory in your '' | ||
+ | < | ||
+ | mkdir $HOME/< | ||
+ | </ | ||
+ | where ''< | ||
+ | |||
+ | < | ||
+ | cd ~/ | ||
+ | ./configure --without-java --prefix=$HOME/< | ||
+ | ninja -C build/Opt -j2 install | ||
+ | </ | ||
+ | |||
+ | You can then call '' | ||
+ | < | ||
+ | $HOME/< | ||
+ | </ | ||
+ | or add '' | ||
+ | |||
+ | === Configuration === | ||
+ | |||
+ | If you use '' | ||
+ | < | ||
+ | set_custom $Visual:: | ||
+ | </ | ||
+ | inside the polymake shell. Replace '' | ||
+ | |||