syncer icon indicating copy to clipboard operation
syncer copied to clipboard

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

Open happybeing opened this issue 5 years ago • 2 comments

I'm not a Rustc or Cargo native, so not sure how easy this is to fix but will look into it.

Building a new clone of master on Ubuntu 19.04 using Rustc v1.44.0, Cargo v1.44.0:

cargo update && cargo build

Fails at this point:

   [snip]
   Compiling fuse v0.3.1
   Compiling libsqlite3-sys v0.9.3
error: failed to run custom build command for `fuse v0.3.1`

Caused by:
  process didn't exit successfully: `/home/mrh/src/fuse/syncer/target/debug/build/fuse-e19dbd79cd2cb2b4/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" } }', /home/mrh/.cargo/registry/src/github.com-1ecc6299db9ec823/fuse-0.3.1/build.rs:10:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

happybeing avatar Jun 27 '20 13:06 happybeing

SOLVED: I forgot I had a clean OS install recently so I needed:

sudo apt install libfuse-dev libsqlite3-dev

happybeing avatar Jun 27 '20 13:06 happybeing

Be worth adding in a pre-requites section of the README. Happy to do this if you'll accept a PR?

happybeing avatar Jun 27 '20 13:06 happybeing