Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
install:macos [2021/03/24 12:50] – [Install polymake on Mac OS] paffenholz | install:macos [2023/02/02 15:21] – casabella | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Install polymake on Mac OS ===== | ===== Install polymake on Mac OS ===== | ||
- | The latest release 4.3 should work on all Mac OS versions greater or equal to 10.14. 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** |
- | On MacOS **10.14** you may need an additional step. Run | + | ==== Install Homebrew ==== |
- | < | + | |
- | If that returns a //File not found// error then run | + | Installation instructions are [[https://brew.sh/|here]]. In most cases it should |
- | < | + | |
- | This will ask for your password. You need to be an administrator of your Mac to run this command. If this fails, then run | + | |
- | <code> | + | |
- | softwareupdate -l | + | |
- | softwareupdate -i " | + | |
- | </ | + | |
- | 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=/Library/Developer/CommandLineTools/SDKs/ | + | /bin/bash -c " |
</ | </ | ||
- | 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 and 11 do | + | |
+ | Now add some paths to your Terminal config | ||
< | < | ||
echo " | echo " | ||
Line 63: | Line 46: | ||
==== Install dependencies with Homebrew ==== | ==== Install dependencies with Homebrew ==== | ||
- | Run the collowing | + | Run the following |
< | < | ||
brew install gmp | brew install gmp | ||
Line 85: | Line 68: | ||
cpanm SVG | cpanm SVG | ||
cpanm Moo | cpanm Moo | ||
- | cpanm ZEFRAM/ | ||
cpanm MongoDB | cpanm MongoDB | ||
cpanm JSON | cpanm JSON | ||
cpanm install Net::SSLeay | cpanm install Net::SSLeay | ||
- | </ | ||
- | |||
- | On **10.15** and later do | ||
- | < | ||
cpanm Term:: | cpanm Term:: | ||
</ | </ | ||
- | |||
- | On **10.14** and earlier do | ||
- | < | ||
- | brew link --force readline | ||
- | cpanm Term:: | ||
- | brew unlink readline | ||
- | </ | ||
- | |||
==== Install a python dependence ==== | ==== Install a python dependence ==== | ||
Line 109: | Line 79: | ||
pip3 install jupyter --user | pip3 install jupyter --user | ||
</ | </ | ||
- | This may complain about a path not beeing | + | This may complain about a path not being set. If so, add this to your $PATH-variable. |
==== Download polymake ==== | ==== Download polymake ==== | ||
Line 115: | Line 85: | ||
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 -xvfj polymake-4.9.tar.bz2 |
</ | </ | ||
==== Configure and install polymake ==== | ==== Configure and install polymake ==== | ||
- | Essentially, | + | Essentially, |
< | < | ||
- | cd ~/ | + | cd ~/ |
./configure --without-java | ./configure --without-java | ||
ninja -C build/Opt -j2 install | ninja -C build/Opt -j2 install | ||
</ | </ | ||
- | However, we recommend to install into a directory in your $HOME-folder, in particular for MacOS 10.15. For this, create a folder with | + | However, we recommend to install into a directory in your $HOME-folder. For this, create a folder with |
< | < | ||
mkdir $HOME/< | mkdir $HOME/< | ||
Line 138: | Line 108: | ||
< | < | ||
- | cd ~/ | + | cd ~/ |
./configure --without-java --prefix=$HOME/< | ./configure --without-java --prefix=$HOME/< | ||
ninja -C build/Opt -j2 install | ninja -C build/Opt -j2 install | ||
Line 148: | Line 118: | ||
</ | </ | ||
or add '' | or add '' | ||
- | |||
- | ==== Full script ==== | ||
- | |||
- | [[https:// |