User Tools

Site Tools


howto:compile_on_macos

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howto:compile_on_macos [2024/06/10 11:35] – GCC 14 krackhowto:compile_on_macos [2024/09/23 07:02] (current) – Update for Homebrew version krack
Line 1: Line 1:
 ====== Compile CP2K on macOS ====== ====== Compile CP2K on macOS ======
  
-This page describes how CP2K can be installed under [[https://en.wikipedia.org/wiki/MacOS|macOS]] ([[https://en.wikipedia.org/wiki/MacOS_Monterey|Monterey]], [[https://en.wikipedia.org/wiki/MacOS_Ventura|Ventura]], and [[https://en.wikipedia.org/wiki/MacOS_Sonoma|Sonoma]] +This page describes how CP2K can be installed under [[https://en.wikipedia.org/wiki/MacOS|macOS]] ([[https://en.wikipedia.org/wiki/MacOS_Monterey|Monterey]], [[https://en.wikipedia.org/wiki/MacOS_Ventura|Ventura]], [[https://en.wikipedia.org/wiki/MacOS_Sonoma|Sonoma]], and 
-). This howto has last been tested on an Apple M1 under macOS Sonoma 14.(Darwin Kernel Version 23.5.0, Homebrew 4.3.4). For further details check the corresponding Darwin-gnu-arm64 [[https://github.com/cp2k/cp2k/blob/master/arch/Darwin-gnu-arm64.psmp|arch file]] and [[https://dashboard.cp2k.org/archive/darwin-gnu-arm64-psmp/index.html|regression tester]]. This howto assumes that your default shell is ''bash''.+[[https://en.wikipedia.org/wiki/MacOS_Sequoia|Sequoia]]). This howto has last been tested on an Apple M1 under macOS Sequoia 15.(Darwin Kernel Version 24.0.0, Homebrew 4.3.23). For further details check the corresponding Darwin-gnu-arm64 [[https://github.com/cp2k/cp2k/blob/master/arch/Darwin-gnu-arm64.psmp|arch file]] and [[https://dashboard.cp2k.org/archive/darwin-gnu-arm64-psmp/index.html|regression tester]]. This howto assumes that your default shell is ''bash''.
  
 ==== 1. Install Homebrew ==== ==== 1. Install Homebrew ====
Line 10: Line 10:
 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
 </code> </code>
-which will install the latest Homebrew version. This howto was tested with Homebrew 3.6.11 as well as with newer versions up to 4.3.4.+which will install the latest Homebrew version. This howto was tested with Homebrew 3.6.11 as well as with newer versions up to 4.3.23.
  
 === a) The easy way === === a) The easy way ===
Line 44: Line 44:
 ==== 2. Obtain CP2K ==== ==== 2. Obtain CP2K ====
  
-Checkout the latest CP2K version available from the [[https://github.com/cp2k/cp2k/|CP2K GitHub repository]] using+Checkout the latest CP2K (master) version available from the [[https://github.com/cp2k/cp2k/|CP2K GitHub repository]] using
 <code> <code>
 git clone --recursive https://github.com/cp2k/cp2k.git cp2k git clone --recursive https://github.com/cp2k/cp2k.git cp2k
 +</code>
 +or the latest CP2K release version
 +<code>
 +git clone --recursive -b support/v2024.3 https://github.com/cp2k/cp2k.git cp2k
 </code> </code>
  
howto/compile_on_macos.1718019342.txt.gz · Last modified: 2024/06/10 11:35 by krack