Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
install:macos [2020/02/06 13:28] – paffenholz | install:macos [2024/04/11 16:57] – [Install a python dependence] 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.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 13: | Line 12: | ||
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** | + | 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 ==== | ||
+ | |||
+ | 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 passoword. 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. | ||
- | === Install | + | ==== Install |
- | Installation instructions are [[https://brew.sh/|here]]. In most cases it should be sufficient to copy and execute the first code line on that page into your terminal. Make sure you copy the whole line! | + | Installation instructions are [[https://perlbrew.pl/|here]]. In most cases it should be sufficient to copy and execute the first code line on that page into your terminal, that is: |
- | === Install Perlbrew === | + | < |
+ | \curl -L https:// | ||
+ | </ | ||
- | Installation instructions are [[https://perlbrew.pl/|here]]. In most cases it should be sufficient to copy and execute the first code line on that page into your terminal. Make sure you copy the whole line! | + | 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: | + | 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 " | + | echo " |
- | echo ' | + | echo ' |
- | source $HOME/.bash_profile | + | source $HOME/.zshrc |
</ | </ | ||
- | === Install dependencies with Homebrew === | ||
- | Run the collowing | + | ==== Install dependencies with Homebrew ==== |
+ | |||
+ | Run the following | ||
< | < | ||
brew install gmp | brew install gmp | ||
Line 55: | Line 69: | ||
brew install readline | brew install readline | ||
brew install ppl | brew install ppl | ||
+ | brew install flint | ||
+ | brew install singular | ||
brew install python3 | brew install python3 | ||
brew install ninja | brew install ninja | ||
brew install ccache | brew install ccache | ||
+ | brew install mongo-c-driver | ||
</ | </ | ||
- | === Install dependencies with Perlbrew === | + | ==== Install dependencies with Perlbrew |
Run the following lines in your terminal: | Run the following lines in your terminal: | ||
Line 66: | Line 83: | ||
yes N | perlbrew install-cpanm | yes N | perlbrew install-cpanm | ||
cpanm --local-lib=~/ | cpanm --local-lib=~/ | ||
- | brew link --force readline | ||
- | cpanm Term:: | ||
- | brew unlink readline | ||
cpanm SVG | cpanm SVG | ||
- | cpanm Moo | ||
- | cpanm ZEFRAM/ | ||
- | cpanm MongoDB | ||
cpanm JSON | cpanm JSON | ||
cpanm install Net::SSLeay | cpanm install Net::SSLeay | ||
+ | cpanm Term:: | ||
+ | cpanm Term:: | ||
+ | cpanm XML::SAX | ||
</ | </ | ||
- | === Install a python dependence === | ||
- | < | + | ==== Download polymake |
- | pip3 install jupyter --user | + | |
- | </ | + | |
- | + | ||
- | === Download polymake === | + | |
You find the sources [[download: | You find the sources [[download: | ||
- | in the terminal do | + | In the terminal do |
< | < | ||
cd Downloads | cd Downloads | ||
- | tar -tvfj polymake-4.0.tar.bz2 | + | tar -xvjf polymake-4.11.tar.bz2 |
</ | </ | ||
- | === Configure and install polymake === | + | ==== Configure and install polymake ==== |
+ | |||
+ | === Compilation === | ||
+ | |||
+ | 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 '' | ||
+ | < | ||
+ | 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 '' | ||
+ | |||
+ |