You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Okay, so I think this is what happened to me:
1) I had brew installed on my Intel Mac
2) I got an Apple Silicon Mac
3) I setup my new Mac by copying over Intel Mac harddrive
4) I now have two brew's installed on my machine:
a) /usr/local/bin/brew (for intel macs & cross-compiling)
b) /opt/homebrew/bin/brew (for (for apple silicon)
5) The wrong brew was in my path (a)
Looking through our getting started docs, we seem to reference both /usr/local/... and opt/homebrew/...
Update the installation document to mac this and related issues more clear for new users who might run into this problem.
Changelog-None
Continue with these instructions. If you see any other result switch to Build on macOS Intel instructions.
335
337
336
-
If you need SQLite (or get a SQLite mismatch build error):
337
-
338
+
Confirm you are using Apple Silicon Homebrew
338
339
```shell
339
-
brew install sqlite
340
-
export LDFLAGS="-L/usr/local/opt/sqlite/lib"
341
-
export CPPFLAGS="-I/usr/local/opt/sqlite/include"
340
+
which brew
341
+
which pkg-config
342
+
```
343
+
If you see this result:
342
344
```
345
+
/opt/homebrew/bin/brew
346
+
/opt/homebrew/bin/pkg-config
347
+
```
348
+
You are using Apple Silicon Homebrew and can continue with the instructions, skip to "Install dependencies"
349
+
350
+
If you see this in the result: `/usr/local/bin/brew`
351
+
You are using brew in Intel compatibility mode. The simplest solution is to remove brew entirely, reinstall it, and start these instructions over.
343
352
344
-
Some library paths are different when using `homebrew` on Macs with Apple silicon, therefore the following two variables need to be set for Macs with Apple silicon:
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.
410
+
411
+
```shell
388
412
uv run make
389
413
```
390
414
@@ -406,10 +430,88 @@ To install the built binaries into your system, you'll need to run `make install
406
430
make install
407
431
```
408
432
409
-
On a Mac with Apple silicon, you may need to use this command instead:
433
+
You may need to use this command instead. Confirm the exported PATH, CPATH, and LIBRARY_PATH environment varaibles set earlier are still present.
sudo PATH="/usr/local/opt:$PATH" LIBRARY_PATH=/opt/homebrew/lib CPATH=/opt/homebrew/include make install
494
+
uv sync --all-extras --all-groups --frozen
495
+
./configure
496
+
uv run make
497
+
```
498
+
499
+
Running lightning:
500
+
501
+
> 📘
502
+
>
503
+
> Edit your `~/Library/Application\ Support/Bitcoin/bitcoin.conf`to include `rpcuser=<foo>` and `rpcpassword=<bar>` first, you may also need to include `testnet=1`.
504
+
505
+
```shell
506
+
bitcoind &
507
+
./lightningd/lightningd &
508
+
./cli/lightning-cli help
509
+
```
510
+
511
+
To install the built binaries into your system, you'll need to run `make install`:
0 commit comments