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/brew
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
+
Build lightning:
412
+
413
+
```shell
388
414
uv run make
389
415
```
390
416
@@ -406,10 +432,88 @@ To install the built binaries into your system, you'll need to run `make install
406
432
make install
407
433
```
408
434
409
-
On a Mac with Apple silicon, you may need to use this command instead:
435
+
You may need to use this command instead. Confirm the exported PATH, CPATH, and LIBRARY_PATH environment varaibles set earlier are still present.
> Edit your `~/Library/Application\ Support/Bitcoin/bitcoin.conf`to include `rpcuser=<foo>` and `rpcpassword=<bar>` first, you may also need to include `testnet=1`.
506
+
507
+
```shell
508
+
bitcoind &
509
+
./lightningd/lightningd &
510
+
./cli/lightning-cli help
511
+
```
512
+
513
+
To install the built binaries into your system, you'll need to run `make install`:
0 commit comments