Skip to content

MacOS: cannot find libfuse.dylib #450

@mouse07410

Description

@mouse07410

MacOS Tahoe 26.2, Xcode-16.4, Rust-1.92.0.

EncFS package uses fuser as dependency. The build fails, because fuser cannot locate /usr/local/lib/libfuse.dylib (or /usr/local/lib/libfuse2.dylib or /usr/local/lib/libfuse3.dylib):

.  .  .
error: failed to run custom build command for `fuser v0.16.0`

Caused by:
  process didn't exit successfully: `/Users/ur20980/src/encfs/target/debug/build/fuser-558f07295367fe6e/build-script-build` (exit status: 101)
  --- stdout
  cargo:rustc-check-cfg=cfg(fuser_mount_impl, values("pure-rust", "libfuse2", "libfuse3"))

  --- stderr

  thread 'main' (15300415) panicked at /Users/ur20980/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/fuser-0.16.0/build.rs:9:5:
  not implemented: Building without libfuse is only supported on Linux
  stack backtrace:
     0: __rustc::rust_begin_unwind
               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/panicking.rs:698:5
     1: core::panicking::panic_fmt
               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/panicking.rs:80:14
     2: build_script_build::main
               at ./build.rs:9:5
     3: core::ops::function::FnOnce::call_once
               at /Users/ur20980/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
warning: build failed, waiting for other jobs to finish...
$ ll /usr/local/lib/libfuse*
-rwxr-xr-x  1 root  wheel  595744 Dec 23 19:15 /usr/local/lib/libfuse.2.dylib*
lrwxr-xr-x  1 root  wheel      15 Jan 12 22:07 /usr/local/lib/libfuse.dylib@ -> libfuse.2.dylib
-rwxr-xr-x  1 root  wheel     981 Dec 23 19:15 /usr/local/lib/libfuse.la*
-rwxr-xr-x  1 root  wheel  663312 Dec 23 19:15 /usr/local/lib/libfuse3.4.dylib*
lrwxr-xr-x  1 root  wheel      16 Jan 12 22:07 /usr/local/lib/libfuse3.dylib@ -> libfuse3.4.dylib
$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions