zargony / fuse-rs

Rust library for filesystems in userspace (FUSE)
MIT License
1.07k stars 130 forks source link

How can I build with fuse3 #134

Open Dawen18 opened 5 years ago

Dawen18 commented 5 years ago

Hi, I have only fuse3 installed and not fuse. When I build, I have this message

error: failed to run custom build command for `fuse v0.3.1`

Caused by:
  process didn't exit successfully: `/code/target/debug/build/fuse-1376467231d8cdf5/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Failure { command: "\"pkg-config\" \"--libs\" \"--cflags\" \"fuse\" \"fuse >= 2.6.0\"", output: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "Package fuse was not found in the pkg-config search path.\nPerhaps you should add the directory containing `fuse.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'fuse\' found\nPackage fuse was not found in the pkg-config search path.\nPerhaps you should add the directory containing `fuse.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'fuse\' found\n" } }', src/libcore/result.rs:999:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

But I have installed Fuse from libfuse repository and pkg-config found it

root@7e49463b58f3:/usr/local/include/fuse# pkg-config --list-all | grep fuse
fuse3                 fuse3 - Filesystem in Userspace

Do I install libfuse-dev like in #54 ? If I build with Fuse2 is this compatible with Fuse3?

ahmed-masud commented 4 years ago

It's okay to build this against fuse2, you'll still get the newest ABI .. .the only thing that rust-fuse uses from fuse2 is the compatible mount / umount calls. This can be reworked so that fuse2 is completely gone ... but it's not that big a deal in grand scheme of things.