Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error at install with cargo on Linux #19

Open
oleole39 opened this issue Aug 6, 2024 · 0 comments
Open

Error at install with cargo on Linux #19

oleole39 opened this issue Aug 6, 2024 · 0 comments

Comments

@oleole39
Copy link

oleole39 commented Aug 6, 2024

Hello,

Using Linux Mint 21 (Ubuntu 22.04-based) on an x64 platform, the following error prevents asak from being installed with cargo:

user@computer:~$ cargo install asak 
    Updating crates.io index
  Installing asak v0.3.3
    Updating crates.io index
     Locking 199 packages to latest compatible versions
      Adding bitflags v1.3.2 (latest: v2.6.0)
      Adding compact_str v0.7.1 (latest: v0.8.0)
      Adding coreaudio-rs v0.11.3 (latest: v0.12.0)
      Adding crossterm v0.25.0 (latest: v0.28.1)
      Adding crossterm v0.27.0 (latest: v0.28.1)
      Adding itertools v0.12.1 (latest: v0.13.0)
      Adding jni-sys v0.3.0 (latest: v0.4.0)
      Adding libloading v0.7.4 (latest: v0.8.5)
      Adding mio v0.8.11 (latest: v1.0.1)
      Adding ndk v0.8.0 (latest: v0.9.0)
      Adding ndk-sys v0.5.0+25.2.9519653 (latest: v0.6.0+11769913)
      Adding ratatui v0.26.3 (latest: v0.27.0)
      Adding rustc-hash v1.1.0 (latest: v2.0.0)
      Adding toml_edit v0.21.1 (latest: v0.22.20)
      Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.1+wasi-0.2.0)
      Adding windows v0.54.0 (latest: v0.58.0)
      Adding windows-core v0.52.0 (latest: v0.58.0)
      Adding windows-core v0.54.0 (latest: v0.58.0)
      Adding windows-result v0.1.2 (latest: v0.2.0)
      Adding windows-sys v0.45.0 (latest: v0.59.0)
      Adding windows-sys v0.48.0 (latest: v0.59.0)
      Adding windows-sys v0.52.0 (latest: v0.59.0)
      Adding windows-targets v0.42.2 (latest: v0.52.6)
      Adding windows-targets v0.48.5 (latest: v0.52.6)
      Adding windows_aarch64_gnullvm v0.42.2 (latest: v0.52.6)
      Adding windows_aarch64_gnullvm v0.48.5 (latest: v0.52.6)
      Adding windows_aarch64_msvc v0.42.2 (latest: v0.52.6)
      Adding windows_aarch64_msvc v0.48.5 (latest: v0.52.6)
      Adding windows_i686_gnu v0.42.2 (latest: v0.52.6)
      Adding windows_i686_gnu v0.48.5 (latest: v0.52.6)
      Adding windows_i686_msvc v0.42.2 (latest: v0.52.6)
      Adding windows_i686_msvc v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_gnu v0.42.2 (latest: v0.52.6)
      Adding windows_x86_64_gnu v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_gnullvm v0.42.2 (latest: v0.52.6)
      Adding windows_x86_64_gnullvm v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_msvc v0.42.2 (latest: v0.52.6)
      Adding windows_x86_64_msvc v0.48.5 (latest: v0.52.6)
      Adding winnow v0.5.40 (latest: v0.6.18)
   Compiling libc v0.2.155
   Compiling cfg-if v1.0.0
   Compiling proc-macro2 v1.0.86
   Compiling unicode-ident v1.0.12
   Compiling autocfg v1.3.0
   Compiling byteorder v1.5.0
   Compiling pkg-config v0.3.30
   Compiling log v0.4.22
   Compiling dasp_sample v0.11.0
   Compiling crossbeam-utils v0.8.20
   Compiling signal-hook v0.3.17
   Compiling parking_lot_core v0.9.10
   Compiling once_cell v1.19.0
   Compiling lock_api v0.4.12
   Compiling rustversion v1.0.17
   Compiling scopeguard v1.2.0
   Compiling bitflags v1.3.2
   Compiling version_check v0.9.5
   Compiling smallvec v1.13.2
   Compiling jack-sys v0.5.1
   Compiling dasp_frame v0.11.0
   Compiling ahash v0.8.11
   Compiling bitflags v2.6.0
   Compiling quote v1.0.36
   Compiling signal-hook-registry v1.4.2
   Compiling mio v0.8.11
   Compiling syn v2.0.72
   Compiling heck v0.5.0
   Compiling parking_lot v0.12.3
   Compiling signal-hook-mio v0.2.4
error: failed to run custom build command for `jack-sys v0.5.1`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installzGuGsL/release/build/jack-sys-d8a23dfa92841928/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=JACK_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=JACK_STATIC
  cargo:rerun-if-env-changed=JACK_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/jack-sys-0.5.1/build.rs:13:23:
  called `Result::unwrap()` on an `Err` value: "\npkg-config exited with status code 1\n> PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags jack\n\nThe system library `jack` required by crate `jack-sys` was not found.\nThe file `jack.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.\nThe PKG_CONFIG_PATH environment variable is not set.\n\nHINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `jack.pc`.\n"
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `asak v0.3.3`, intermediate artifacts can be found at `/tmp/cargo-installzGuGsL`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant