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

build problem #25

Open
mond77 opened this issue Mar 18, 2023 · 3 comments
Open

build problem #25

mond77 opened this issue Mar 18, 2023 · 3 comments

Comments

@mond77
Copy link

mond77 commented Mar 18, 2023

[acb8du9j30@login03 ibv]$ cargo build
   Compiling rdma-sys v0.3.0
error: failed to run custom build command for `rdma-sys v0.3.0`

Caused by:
  process didn't exit successfully: `/work/home/acb8du9j30/rdma_test/ibv/target/debug/build/rdma-sys-9b0811c26487ede9/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=LIBIBVERBS_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=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 'please install libibverbs-dev 1.8.28)', /work/home/acb8du9j30/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rdma-sys-0.3.0/build.rs:10:41
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[acb8du9j30@login03 ibv]$ pkg-config --modversion libibverbs
1.10.30.0

Does it have to be version 1.8.28?

@pwang7
Copy link
Contributor

pwang7 commented Mar 18, 2023

newer version should be fine

@dhzzy88
Copy link

dhzzy88 commented Sep 21, 2023

OS only suport debian ?

`# yum install libibverbs
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • epel: mirrors.tuna.tsinghua.edu.cn
    Package libibverbs-22.4-6.el7_9.x86_64 already installed and latest version
    Nothing to do

cargo build --release

Compiling rdma-sys v0.3.0 (/root/rdma-sys)
error: failed to run custom build command for rdma-sys v0.3.0 (/root/rdma-sys)

Caused by:
process didn't exit successfully: /root/rdma-sys/target/release/build/rdma-sys-46b594d936f92173/build-script-build (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=LIBIBVERBS_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=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 'please install libibverbs-dev 1.8.28)', build.rs:10:41
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace`

@GTwhy
Copy link
Collaborator

GTwhy commented Sep 22, 2023

Hi, @dhzzy88
Maybe you can install the lib on redhat by running

sudo yum install libibverbs-devel

The "libibverbs-dev" is the package name on debian, and it named "libibverbs-devel" on redhat.
I think the build script will find the lib with the lib name "libibvers".
We can add more tips in the code if you try it successfully.

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

4 participants