install:macos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
install:macos [2021/03/23 16:40] – [Install dependencies with Homebrew] paffenholzinstall:macos [2021/03/25 10:24] – [Full script] paffenholz
Line 1: Line 1:
 ===== Install polymake on Mac OS ===== ===== Install polymake on Mac OS =====
  
-The latest release 4.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.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):
   * Install the xcode command line tools   * Install the xcode command line tools
   * (for some versions) install SDK headers   * (for some versions) install SDK headers
Line 20: Line 20:
 <code>xcode-select --install</code> <code>xcode-select --install</code>
 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 56: Line 53:
 source $HOME/.bash_profile source $HOME/.bash_profile
 </code> </code>
-and for 10.15 do +and for 10.15 and 11 do 
 <code> <code>
 echo "export PERL5LIB=$HOME/perl5/lib/perl5:$HOME/perl5${PERL5LIB+:$PERL5LIB}" >> $HOME/.zshrc echo "export PERL5LIB=$HOME/perl5/lib/perl5:$HOME/perl5${PERL5LIB+:$PERL5LIB}" >> $HOME/.zshrc
Line 86: Line 83:
 yes N | perlbrew install-cpanm yes N | perlbrew install-cpanm
 cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
-brew link --force readline 
-cpanm Term::ReadLine::Gnu 
-brew unlink readline 
 cpanm SVG cpanm SVG
 cpanm Moo cpanm Moo
Line 96: Line 90:
 cpanm install Net::SSLeay cpanm install Net::SSLeay
 </code> </code>
 +
 +On **10.15** and later do
 +<code>
 +cpanm Term::ReadLine::Gnu
 +</code>
 +
 +On **10.14** and earlier do
 +<code>
 +brew link --force readline
 +cpanm Term::ReadLine::Gnu
 +brew unlink readline
 +</code>
 +
  
 ==== Install a python dependence ==== ==== Install a python dependence ====
Line 111: Line 118:
 <code> <code>
 cd Downloads cd Downloads
-tar -tvfj polymake-4.0.tar.bz2+tar -xvfj polymake-4.3.tar.bz2
 </code> </code>
  
Line 119: Line 126:
  
 <code> <code>
-cd ~/Downloads/polymake-4.0+cd ~/Downloads/polymake-4.3
 ./configure --without-java ./configure --without-java
 ninja -C build/Opt -j2 install ninja -C build/Opt -j2 install
Line 131: Line 138:
  
 <code> <code>
-cd ~/Downloads/polymake-4.0+cd ~/Downloads/polymake-4.3
 ./configure --without-java --prefix=$HOME/<polymake_install_folder> ./configure --without-java --prefix=$HOME/<polymake_install_folder>
 ninja -C build/Opt -j2 install ninja -C build/Opt -j2 install
Line 144: Line 151:
 ==== Full script ==== ==== Full script ====
  
-[[https://gist.github.com/apaffenholz/a406c3d862f18345c56eddc21907808f|Here]] is also a script that does almost all these steps and allows some configuration.+[[https://gist.github.com/apaffenholz/a406c3d862f18345c56eddc21907808f|Here]] is also a script for **10.15** and **11.1** that does almost all these steps and allows some configuration.
  • install/macos.txt
  • Last modified: 2024/04/11 16:57
  • by paffenholz