Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| install:macos [2021/03/24 10:56] – [Download polymake] paffenholz | install:macos [2026/09/17 12:17] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Install polymake on Mac OS ===== | ===== Install polymake on Mac OS ===== | ||
| - | The latest release 4.0 should work on all Mac OS versions greater or equal to 10.11. The installation requires a couple of steps (of which you have maybe done some already for other reasons): | + | 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 the xcode command line tools | ||
| - | * (for some versions) install SDK headers | ||
| * install Homebrew | * install Homebrew | ||
| * install Perlbrew | * install Perlbrew | ||
| Line 19: | Line 18: | ||
| In the terminal type | 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** | + | 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** |
| + | ==== Install Homebrew ==== | ||
| - | ==== Special Instructions for Mac OS 10.14 and 10.15 ==== | + | Installation instructions are [[https:// |
| - | On MacOS **10.14** you may need an additional step. Run | ||
| - | < | ||
| - | If that returns a //File not found// error then run | ||
| - | < | ||
| - | This will ask for your password. You need to be an administrator of your Mac to run this command. If this fails, then run | ||
| < | < | ||
| - | softwareupdate | + | / |
| - | softwareupdate -i "Command Line Tools (macOS Mojave version 10.14) for Xcode-10.3" | + | |
| </ | </ | ||
| - | where you may need to replace the string in the second command to the one that looks similar in the return of the first command. Then repeat the previous installer command. It should now succeed. | ||
| - | |||
| - | On **10.15**, you should do | ||
| - | < | ||
| - | export CPATH=/ | ||
| - | </ | ||
| - | and do all following steps in this terminal (or repeat the export command, if you open a new one). | ||
| - | |||
| - | ==== Install Homebrew ==== | ||
| - | |||
| - | Installation instructions are [[https:// | ||
| ==== Install Perlbrew ==== | ==== Install Perlbrew ==== | ||
| - | Installation instructions are [[https:// | + | Installation instructions are [[https:// |
| - | Now add some paths to your Terminal config and reload the config. For versions prior to 10.15 do | ||
| < | < | ||
| - | echo " | + | \curl -L https://install.perlbrew.pl | bash |
| - | echo " | + | |
| - | echo ' | + | |
| - | source $HOME/.bash_profile | + | |
| </ | </ | ||
| - | and for 10.15 do | + | |
| + | 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 | ||
| < | < | ||
| echo " | echo " | ||
| echo " | echo " | ||
| echo ' | echo ' | ||
| + | source $HOME/ | ||
| + | </ | ||
| + | and for a Silicon Mac use | ||
| + | < | ||
| + | echo " | ||
| + | echo " | ||
| + | echo ' | ||
| source $HOME/ | source $HOME/ | ||
| </ | </ | ||
| + | |||
| ==== Install dependencies with Homebrew ==== | ==== Install dependencies with Homebrew ==== | ||
| - | Run the collowing | + | Run the following |
| < | < | ||
| brew install gmp | brew install gmp | ||
| Line 78: | Line 74: | ||
| brew install ninja | brew install ninja | ||
| brew install ccache | brew install ccache | ||
| + | brew install mongo-c-driver | ||
| + | brew install jupyterlab | ||
| </ | </ | ||
| Line 87: | Line 85: | ||
| cpanm --local-lib=~/ | cpanm --local-lib=~/ | ||
| cpanm SVG | cpanm SVG | ||
| - | cpanm Moo | ||
| - | cpanm ZEFRAM/ | ||
| - | cpanm MongoDB | ||
| cpanm JSON | cpanm JSON | ||
| cpanm install Net::SSLeay | cpanm install Net::SSLeay | ||
| - | </ | ||
| - | |||
| - | On **10.15** and later do | ||
| - | < | ||
| cpanm Term:: | cpanm Term:: | ||
| + | cpanm Term:: | ||
| + | cpanm XML::SAX | ||
| </ | </ | ||
| - | On **10.14** and earlier do | ||
| - | < | ||
| - | brew link --force readline | ||
| - | cpanm Term:: | ||
| - | brew unlink readline | ||
| - | </ | ||
| - | |||
| - | |||
| - | ==== Install a python dependence ==== | ||
| - | |||
| - | < | ||
| - | pip3 install jupyter --user | ||
| - | </ | ||
| - | This may complain about a path not beeing set. If so, add this to your $PATH-variable. | ||
| ==== Download polymake ==== | ==== Download polymake ==== | ||
| Line 118: | Line 97: | ||
| You find the sources [[download: | You find the sources [[download: | ||
| - | in the terminal do | + | In the terminal do |
| < | < | ||
| cd Downloads | cd Downloads | ||
| - | tar -xvfj polymake-4.3.tar.bz2 | + | tar -xvjf polymake-4.13.tar.bz2 |
| </ | </ | ||
| ==== Configure and install polymake ==== | ==== Configure and install polymake ==== | ||
| - | Essentially, | + | === Compilation === |
| + | Finally, we can compile and install polymake. This requires one more choice on your side. | ||
| + | - You may opt to install polymake into the standard installation location for additional software on your computer. This will place the compiled version of polymake into the directory ''/ | ||
| + | - You may also provide a separate directory in your home folder for the compiled version of polymake. | ||
| + | |||
| + | For the first option you will need administrator permissions for your computer and probably prefix the commands below with '' | ||
| + | |||
| + | Advantage of the second option is, that you do not need administrator permissions for the installation, | ||
| + | |||
| + | If you opt to install into a subfolder of your home folder, then please create one before proceeding. For this, create a folder with | ||
| < | < | ||
| - | cd ~/Downloads/ | + | mkdir $HOME/< |
| - | ./configure --without-java | + | |
| - | ninja -C build/Opt -j2 install | + | |
| </ | </ | ||
| + | where ''< | ||
| - | However, we recommend | + | In the command below, you will also need to replace all occurences of ''< |
| + | * ''/ | ||
| + | * ''/ | ||
| + | * with the directory you installed brew into, if you chose a nonstandard location | ||
| + | |||
| + | Finally, we can compile polymake. If you chose option 1. above, then compile | ||
| < | < | ||
| - | mkdir $HOME/<polymake_install_folder> | + | cd ~/Downloads/ |
| + | ./configure --without-java --with-brew=<brew-install-location> | ||
| + | ninja -C build/Opt -j2 install | ||
| </ | </ | ||
| - | where ''< | ||
| + | If you chose option 2., then compile with | ||
| < | < | ||
| - | cd ~/ | + | cd ~/ |
| - | ./configure --without-java --prefix=$HOME/< | + | ./configure --without-java |
| ninja -C build/Opt -j2 install | ninja -C build/Opt -j2 install | ||
| </ | </ | ||
| Line 150: | Line 144: | ||
| $HOME/< | $HOME/< | ||
| </ | </ | ||
| - | or add '' | + | or just |
| + | < | ||
| + | polymake | ||
| + | </ | ||
| + | if you chose option 1.. For option 2., if you first do | ||
| + | < | ||
| + | export PATH=$PATH:'' | ||
| + | </ | ||
| + | in a terminal, then you can also start polymake by just typing '' | ||
| + | |||
| + | |||
| + | === Configuration === | ||
| + | |||
| + | If you use '' | ||
| + | < | ||
| + | set_custom $Visual:: | ||
| + | </ | ||
| + | inside the polymake shell. Replace '' | ||
| - | ==== Full script ==== | ||
| - | [[https:// | ||