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 [2020/02/06 13:31] – paffenholz | install:macos [2020/05/31 23:16] – [Install Perlbrew] paffenholz | ||
---|---|---|---|
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.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): | ||
Line 13: | Line 13: | ||
For all steps you need an open Terminal. You can find the Terminal app in the Subfolder // | For all steps you need an open Terminal. You can find the Terminal app in the Subfolder // | ||
- | === Install the Command Line Tools === | + | 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 | 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** neccessary and **not** recommended (you then need to install the command line tools on top from whithin XCode). | 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** neccessary and **not** recommended (you then need to install the command line tools on top from whithin XCode). | ||
+ | |||
+ | |||
+ | ==== Special Instructions for Mac OS 10.14 and 10.15 ==== | ||
On MacOS **10.14** you may need an additional step. Run | On MacOS **10.14** you may need an additional step. Run | ||
Line 30: | Line 35: | ||
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. | 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. | ||
- | The same problem may also occur on **10.15**. | + | 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 === | + | ==== Install Homebrew |
Installation instructions are [[https:// | 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: | + | Now add some paths to your Terminal config and reload the config. For versions prior to 10.15 do |
< | < | ||
echo " | echo " | ||
Line 46: | Line 55: | ||
echo ' | echo ' | ||
source $HOME/ | source $HOME/ | ||
+ | </ | ||
+ | and for 10.15 do | ||
+ | < | ||
+ | echo " | ||
+ | echo " | ||
+ | echo ' | ||
+ | source $HOME/ | ||
</ | </ | ||
- | === Install dependencies with Homebrew === | + | ==== Install dependencies with Homebrew |
Run the collowing lines in your terminal: | Run the collowing lines in your terminal: | ||
Line 62: | Line 78: | ||
</ | </ | ||
- | === Install dependencies with Perlbrew === | + | ==== Install dependencies with Perlbrew |
Run the following lines in your terminal: | Run the following lines in your terminal: | ||
Line 79: | Line 95: | ||
</ | </ | ||
- | === Install a python dependence === | + | ==== Install a python dependence |
< | < | ||
pip3 install jupyter --user | 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 |
You find the sources [[download: | You find the sources [[download: | ||
Line 95: | Line 112: | ||
</ | </ | ||
- | === Configure and install polymake === | + | ==== Configure and install polymake ==== |
+ | |||
+ | Essentially, | ||
< | < | ||
Line 103: | Line 122: | ||
</ | </ | ||
- | === Full script === | + | However, we recommend to install into a directory in your $HOME-folder, |
+ | < | ||
+ | mkdir $HOME/< | ||
+ | </ | ||
+ | where ''< | ||
+ | |||
+ | < | ||
+ | cd ~/ | ||
+ | ./configure --without-java --prefix=$HOME/< | ||
+ | ninja -C build/Opt -j2 install | ||
+ | </ | ||
+ | |||
+ | You can then call '' | ||
+ | < | ||
+ | $HOME/< | ||
+ | </ | ||
+ | or add '' | ||
+ | |||
+ | ==== Full script | ||
[[https:// | [[https:// |