]> git.sesse.net Git - bcachefs-tools-debian/blob - INSTALL
85c09a2157119ad86dde0f4712893ed4cdb59db0
[bcachefs-tools-debian] / INSTALL
1 -- Getting started --
2
3 Dependencies:
4
5  * libaio
6  * libblkid
7  * libkeyutils
8  * liblz4
9  * libscrypt
10  * libsodium
11  * liburcu
12  * libuuid
13  * libzstd
14  * pkg-config
15  * zlib1g
16  * valgrind
17
18 Debian (Bullseye or later) and Ubuntu (20.04 or later): you can install these with
19     apt install -y pkg-config libaio-dev libblkid-dev libkeyutils-dev \
20         liblz4-dev libscrypt-dev libsodium-dev liburcu-dev libzstd-dev \
21         uuid-dev zlib1g-dev valgrind libudev-dev
22
23 Fedora: install the "Development tools" group along with:
24     dnf install -y libaio-devel libsodium-devel \
25         libblkid-devel libzstd-devel zlib-devel userspace-rcu-devel \
26         lz4-devel libuuid-devel valgrind-devel keyutils-libs-devel \
27         libscrypt-devel findutils
28
29 Arch: install bcachefs-tools-git from the AUR.
30 Or to build from source, install libscrypt from the AUR along with,
31     pacman -S base-devel libaio keyutils libsodium liburcu zstd valgrind
32
33 Then, just make && make install
34
35
36 -- Experimental features --
37
38 Experimental fuse support is currently disabled by default. Fuse support is at
39 an early stage and may corrupt your filesystem, so it should only be used for
40 testing. To enable, you'll also need to add:
41
42 * libfuse3 >= 3.7
43
44 On Debian/Ubuntu (Bullseye/20.04 or later needed for libfuse >= 3.7):
45     apt install -y libfuse3-dev
46
47 On Fedora (32 or later needed for lbifuse >= 3.7):
48     dnf install -y fuse3-devel
49
50 Arch:
51     pacman -S fuse3
52
53 Then, make using the BCACHEFS_FUSE environment variable (make clean first if
54 previously built without fuse support):
55
56 BCACHEFS_FUSE=1 make && make install
57
58
59 -- Tests --
60
61 Some tests are available to validate the "bcachefs" binary.  The tests depend
62 on python3 pytest.
63
64 On debian:
65     apt install -u python3-pytest
66
67 Then, you can run the tests via:
68
69     make check
70     # or if pytest has a different name
71     make check PYTEST=pytest
72
73 Optionally, you may wish to run tests in parallel using python3-pytest-xdist:
74
75     cd tests; pytest-3 -n4