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
Last revisionBoth sides next revision
install:macos [2023/02/02 15:21] casabellainstall:macos [2024/04/11 16:57] – [Install a python dependence] paffenholz
Line 36: Line 36:
 </code> </code>
  
-Now add some paths to your Terminal config and reload the config. Type the following lines in the terminal:+We have to add some variables to the shell environment. Recent macs usually use ''zsh'' as their shell. You can check this with 
 +<code> 
 +echo $SHELL 
 +</code> 
 +If you use ''bash'', you have to  
 +  * replace ''.zshrc'' with ''.bashrc'' in the terminal commands below  
 +  * add <code>if [ -f ~/.bashrc ]; then . ~/.bashrc; fi </code> at the end of the file ''$HOME/.bash_profile'' if it is not already present 
 + 
 +Now add some paths to your Terminal config and reload the config. For an Intel Mac type the following lines in the terminal:
 <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 43: Line 51:
 source $HOME/.zshrc source $HOME/.zshrc
 </code> </code>
 +and for a Silicon Mac use
 +<code>
 +echo "export PERL5LIB=$HOME/perl5/lib/perl5:$HOME/perl5${PERL5LIB+:$PERL5LIB}" >> $HOME/.zshrc
 +echo "source ~/perl5/perlbrew/etc/bashrc" >> $HOME/.zshrc
 +echo 'export ARCHFLAGS="-arch arm64"' >> $HOME/.zshrc
 +source $HOME/.zshrc
 +</code>
 +
  
 ==== Install dependencies with Homebrew ==== ==== Install dependencies with Homebrew ====
Line 58: Line 74:
 brew install ninja brew install ninja
 brew install ccache brew install ccache
 +brew install mongo-c-driver
 </code> </code>
  
Line 67: Line 84:
 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)
 cpanm SVG cpanm SVG
-cpanm Moo 
-cpanm MongoDB 
 cpanm JSON cpanm JSON
 cpanm install Net::SSLeay cpanm install Net::SSLeay
 cpanm Term::ReadLine::Gnu cpanm Term::ReadLine::Gnu
 +cpanm Term::ReadKey
 +cpanm XML::SAX
 </code> </code>
  
-==== Install a python dependence ==== 
- 
-<code> 
-pip3 install jupyter --user 
-</code> 
-This may complain about a path not being set. If so, add this to your $PATH-variable.  
  
 ==== Download polymake ==== ==== Download polymake ====
Line 88: Line 99:
 <code> <code>
 cd Downloads cd Downloads
-tar -xvfj polymake-4.9.tar.bz2+tar -xvjf polymake-4.11.tar.bz2
 </code> </code>
  
 ==== Configure and install polymake ==== ==== Configure and install polymake ====
 +
 +=== Compilation ===
  
 Essentially, polymake is compiled and installed with the following commands. This will put the polymake binary into ''/usr/local''. You may have to use ''sudo'' for installing. Essentially, polymake is compiled and installed with the following commands. This will put the polymake binary into ''/usr/local''. You may have to use ''sudo'' for installing.
  
 <code> <code>
-cd ~/Downloads/polymake-4.9+cd ~/Downloads/polymake-4.11
 ./configure --without-java ./configure --without-java
 ninja -C build/Opt -j2 install ninja -C build/Opt -j2 install
 </code> </code>
  
-However, we recommend to install into a directory in your $HOME-folder. For this, create a folder with+However, we recommend to install into a directory in your ''$HOME''-folder. For this, create a folder with
 <code> <code>
 mkdir $HOME/<polymake_install_folder> mkdir $HOME/<polymake_install_folder>
Line 108: Line 121:
  
 <code> <code>
-cd ~/Downloads/polymake-4.9+cd ~/Downloads/polymake-4.11
 ./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 118: Line 131:
 </code> </code>
 or add ''$HOME/<polymake_install_folder>/bin/'' to your path. or add ''$HOME/<polymake_install_folder>/bin/'' to your path.
 +
 +=== Configuration ===
 +
 +If you use ''Safari'' as your default browser, then you need to switch to another one for polymake. Please do
 +<code>
 +set_custom $Visual::webbrowser=open -a "Firefox"
 +</code>
 +inside the polymake shell. Replace ''Firefox'' by ''Google Chrome'' if you prefer this browser.
 +
 +
  • install/macos.txt
  • Last modified: 2024/04/11 16:57
  • by paffenholz