You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, apologies if this is the wrong place to post a crate build issue but I haven't found this mentioned anywhere else yet.
I am using the direct Bazel dependency method through Bzlmod following the example here.
When I build Thrussh, I get the following error:
thread 'main' panicked at external/rules_rust~~crate~crates__libsodium-sys-0.0.10/build.rs:18:47:
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 libsodium\n\nThe system library `libsodium` required by crate `libsodium-sys` was not found.\nThe file `libsodium.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 `libsodium.pc`.\n"
Hello, apologies if this is the wrong place to post a crate build issue but I haven't found this mentioned anywhere else yet.
I am using the direct Bazel dependency method through Bzlmod following the example here.
When I build Thrussh, I get the following error:
Full error here:
build_error.txt
Does
rules_rust
set up thisPKG_CONFIG_PATH
correctly? What can I do to debug further and possibly patch this build error?MODULE.bazel
Command:
bazel build @crates//:thrussh
Platform: Ubuntu 22.04 x86_64
The text was updated successfully, but these errors were encountered: