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
> If your build fails because of your Rust version, you might want to check out [rustup](https://rustup.rs/) to install a newer version
129
129
130
130
@@ -133,20 +133,20 @@ There are two ways to build core lightning, and this depends on how you want use
133
133
To build CLN for production:
134
134
135
135
```shell
136
-
uv sync --all-extras --all-groups
136
+
uv sync --all-extras --all-groups --frozen
137
137
./configure
138
138
RUST_PROFILE=release uv run make
139
139
sudo RUST_PROFILE=release make install
140
140
```
141
141
142
-
> 📘
143
-
>
142
+
> 📘
143
+
>
144
144
> If you want to disable Rust because you don’t need it or its plugins (cln-grpc, clnrest, cln-bip353 or wss-proxy), you can use `./configure --disable-rust`.
145
145
146
146
To build CLN for development:
147
147
148
148
```shell
149
-
uv sync --all-extras --all-groups
149
+
uv sync --all-extras --all-groups --frozen
150
150
./configure
151
151
uv run make
152
152
uv run make check VALGRIND=0
@@ -256,15 +256,15 @@ If you want to compile locally and fiddle with compile time options:
256
256
257
257
See `/usr/ports/net-p2p/c-lightning/Makefile` for instructions on how to build from an arbitrary git commit, instead of the latest release tag.
258
258
259
-
> 📘
260
-
>
259
+
> 📘
260
+
>
261
261
> Make sure you've set an utf-8 locale, e.g. `export LC_CTYPE=en_US.UTF-8`, otherwise manpage installation may fail.
262
262
263
263
Running lightning:
264
264
265
265
Configure bitcoind, if not already: add `rpcuser=<foo>` and `rpcpassword=<bar>` to `/usr/local/etc/bitcoin.conf`, maybe also `testnet=1`.
266
266
267
-
Configure lightningd: copy `/usr/local/etc/lightningd-bitcoin.conf.sample` to
267
+
Configure lightningd: copy `/usr/local/etc/lightningd-bitcoin.conf.sample` to
268
268
`/usr/local/etc/lightningd-bitcoin.conf` and edit according to your needs.
269
269
270
270
```shell
@@ -379,15 +379,15 @@ git checkout v24.05
379
379
Build lightning:
380
380
381
381
```shell
382
-
uv sync --all-extras --all-groups
382
+
uv sync --all-extras --all-groups --frozen
383
383
./configure
384
384
uv run make
385
385
```
386
386
387
387
Running lightning:
388
388
389
-
> 📘
390
-
>
389
+
> 📘
390
+
>
391
391
> Edit your `~/Library/Application\ Support/Bitcoin/bitcoin.conf`to include `rpcuser=<foo>` and `rpcpassword=<bar>` first, you may also need to include `testnet=1`.
392
392
393
393
```shell
@@ -440,7 +440,7 @@ Launch Core Lightning:
440
440
441
441
## To cross-compile for Android
442
442
443
-
Make a standalone toolchain as per <https://developer.android.com/ndk/guides/standalone_toolchain.html>.
443
+
Make a standalone toolchain as per <https://developer.android.com/ndk/guides/standalone_toolchain.html>.
444
444
For Core Lightning you must target an API level of 24 or higher.
445
445
446
446
Depending on your toolchain location and target arch, source env variables such as:
@@ -465,8 +465,8 @@ make clean -C ccan/ccan/cdump/tools \
465
465
&& make CC=clang -C ccan/ccan/cdump/tools
466
466
```
467
467
468
-
Install the `qemu-user` package.
469
-
This will allow you to properly configure the build for the target device environment.
468
+
Install the `qemu-user` package.
469
+
This will allow you to properly configure the build for the target device environment.
470
470
Build with:
471
471
472
472
```shell
@@ -493,8 +493,8 @@ export LD=$target_host-ld
493
493
export STRIP=$target_host-strip
494
494
```
495
495
496
-
Install the `qemu-user` package. This will allow you to properly configure the
497
-
build for the target device environment.
496
+
Install the `qemu-user` package. This will allow you to properly configure the
497
+
build for the target device environment.
498
498
Config the arm elf interpreter prefix:
499
499
500
500
```shell
@@ -538,7 +538,7 @@ For all the other Pi devices out there, consider using [Armbian](https://www.arm
538
538
539
539
You can compile in `customize-image.sh` using the instructions for Ubuntu.
540
540
541
-
A working example that compiles both bitcoind and Core Lightning for Armbian can
541
+
A working example that compiles both bitcoind and Core Lightning for Armbian can
542
542
be found [here](https://github.com/Sjors/armbian-bitcoin-core).
Python plugins will be installed with the `poetry install` step mentioned above fron development setup.
585
+
Python plugins will be installed with the `poetry install` step mentioned above fron development setup.
586
586
587
587
Other users will need some Python packages if python plugins are used. Unfortunately there are some Python packages which are not packaged in Ubuntu, and so force installation will be needed (Flag `--user` is recommended which will install them in user's own .local directory, so at least the risk of breaking Python globally can be avoided!).
0 commit comments