X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=INSTALL.md;h=7197d2fc52843c01caec62edc20caa40f4490ef5;hb=HEAD;hp=ec5d67bb8e8ac101a22984d0cafa4976d135822d;hpb=ea8adaf1ccca332cb26c390a1f58e431d067a339;p=bcachefs-tools-debian diff --git a/INSTALL.md b/INSTALL.md index ec5d67b..7197d2f 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -5,6 +5,7 @@ Build dependencies: * libaio * libblkid + * libclang * libkeyutils * liblz4 * libsodium @@ -16,7 +17,7 @@ Build dependencies: * zlib1g In addition a recent Rust toolchain is required (rustc, cargo), either by using -[rustup](https://rustup.rs/) or make sure to use a distribution where rustc (>=1.64) +[rustup](https://rustup.rs/) or make sure to use a distribution where rustc (>=1.65) is available. Debian (Bullseye or later) and Ubuntu (20.04 or later): you can install these with @@ -24,8 +25,8 @@ Debian (Bullseye or later) and Ubuntu (20.04 or later): you can install these wi ``` shell apt install -y pkg-config libaio-dev libblkid-dev libkeyutils-dev \ liblz4-dev libsodium-dev liburcu-dev libzstd-dev \ - uuid-dev zlib1g-dev valgrind libudev-dev git build-essential \ - python3 python3-docutils + uuid-dev zlib1g-dev valgrind libudev-dev udev git build-essential \ + python3 python3-docutils libclang-dev ``` Fedora: install the "Development tools" group along with: @@ -33,13 +34,13 @@ Fedora: install the "Development tools" group along with: dnf install -y libaio-devel libsodium-devel \ libblkid-devel libzstd-devel zlib-devel userspace-rcu-devel \ lz4-devel libuuid-devel valgrind-devel keyutils-libs-devel \ - findutils + findutils udev systemd-devel llvm-devel ``` Arch: install bcachefs-tools-git from the AUR. Or to build from source, install build dependencies with ```shell -pacman -S base-devel libaio keyutils libsodium liburcu zstd valgrind +pacman -S base-devel libaio keyutils libsodium liburcu zstd valgrind llvm ``` Then, just `make && make install` @@ -59,7 +60,7 @@ On Debian/Ubuntu (Bullseye/20.04 or later needed for libfuse >= 3.7): apt install -y libfuse3-dev ``` -On Fedora (32 or later needed for lbifuse >= 3.7): +On Fedora (32 or later needed for libfuse >= 3.7): ```shell dnf install -y fuse3-devel ``` @@ -75,27 +76,3 @@ previously built without fuse support): ```shell BCACHEFS_FUSE=1 make && make install ``` - -Tests ------ -Some tests are available to validate the `bcachefs` binary. The tests depend -on python3 pytest. - -On debian: -```shell -apt install -u python3-pytest -``` - -Then, you can run the tests via: - -```shell -make check -# or if pytest has a different name -make check PYTEST=pytest -``` - -Optionally, you may wish to run tests in parallel using python3-pytest-xdist: - -```shell -cd tests; pytest-3 -n4 -``` \ No newline at end of file