Skip to content

Commit 4c10cb7

Browse files
ddustinrustyrussell
authored andcommitted
Docs: Update mac instructions to gmake
Apple bundles a rather old version of GNU Make: 3.81. Our Makefiles use the &: feature which requires version 4.3. Apparently Apple isn’t updating GNU Make anymore due to a licensing issue. Switching the instructions over to using gmake installed from the brew package manager, which currently installs 4.4.1 Changelog-None
1 parent cc227ed commit 4c10cb7

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎doc/getting-started/getting-started/installation.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ You are using brew in Intel compatibility mode. The simplest solution is to remo
351351

352352
Install dependencies:
353353
```shell
354-
brew install autoconf automake libtool python3 gnu-sed gettext libsodium protobuf lowdown pkgconf openssl
354+
brew install autoconf automake libtool python3 gnu-sed gettext libsodium protobuf lowdown pkgconf openssl make
355355
export PATH="/opt/homebrew/opt/:$PATH"
356356
export CPATH=/opt/homebrew/include
357357
export LIBRARY_PATH=/opt/homebrew/lib
@@ -398,7 +398,7 @@ uv sync --all-extras --all-groups --frozen
398398

399399
If you see `/usr/local` in the log, an Intel compatability dependency has been picked up. The simplest solution is to remove brew entirely, reinstall it, and start these instructions over.
400400
```shell
401-
uv run make
401+
uv run gmake
402402
```
403403

404404
Running lightning:
@@ -412,14 +412,14 @@ bitcoind &
412412
./cli/lightning-cli help
413413
```
414414

415-
To install the built binaries into your system, you'll need to run `make install`:
415+
To install the built binaries into your system, you'll need to run `gmake install`:
416416
```shell
417-
make install
417+
gmake install
418418
```
419419

420420
You may need to use this command instead. Confirm the exported PATH, CPATH, and LIBRARY_PATH environment variables set earlier are still present.
421421
```shell
422-
sudo make install
422+
sudo gmake install
423423
```
424424

425425
## To Build on macOS Intel
@@ -428,7 +428,7 @@ Assuming you have Xcode and Homebrew installed.
428428

429429
Install dependencies:
430430
```shell
431-
brew install autoconf automake libtool python3 gnu-sed gettext libsodium protobuf lowdown pkgconf openssl
431+
brew install autoconf automake libtool python3 gnu-sed gettext libsodium protobuf lowdown pkgconf openssl make
432432
export PATH="/usr/local/opt/:$PATH"
433433
export CPATH=/usr/local/include
434434
export LIBRARY_PATH=/usr/local/lib
@@ -471,7 +471,7 @@ Build lightning:
471471
```shell
472472
uv sync --all-extras --all-groups --frozen
473473
./configure
474-
uv run make
474+
uv run gmake
475475
```
476476

477477
Running lightning:
@@ -485,9 +485,9 @@ bitcoind &
485485
./cli/lightning-cli help
486486
```
487487

488-
To install the built binaries into your system, you'll need to run `make install`:
488+
To install the built binaries into your system, you'll need to run `gmake install`:
489489
```shell
490-
make install
490+
gmake install
491491
```
492492

493493
## To Build on Arch Linux

0 commit comments

Comments
 (0)