Build CLN on Apple Silicon Mac
Log of build CLN on apple silicon mac The document states methods only for M1 Macs. However, most of these are already applied to the configure script or Makefile. Therefore, you don't need to explicitly execute these steps.
Need python3, jq
There are many caveats to build CLN on Apple silicon mac, so be careful.
$ brew install autoconf automake libtool gnu-sed gettext libsodium
$ python -m pip install --upgrade pip
$ python -m pip install poetry
$ python -m poetry install
code:shell
export CPATH=/opt/homebrew/include
export LIBRARY_PATH=/opt/homebrew/lib
$ ./configure --prefix="$HOME/cln-bin/v24.05"
$ python -m poetry run make
$ sudo PATH="/usr/local/opt:$PATH" LIBRARY_PATH=/opt/homebrew/lib CPATH=/opt/homebrew/include python -m poetry run make install