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

friendly error message when missing pcsc-lite-devel #51

Open
ktdreyer opened this issue Apr 18, 2024 · 0 comments
Open

friendly error message when missing pcsc-lite-devel #51

ktdreyer opened this issue Apr 18, 2024 · 0 comments

Comments

@ktdreyer
Copy link

ktdreyer commented Apr 18, 2024

I was building pysequoia recently on Fedora. I found that nettle-sys prints a friendly error message when nettle-devel is not installed:

  Building nettle-sys failed.
  Because: 
  pkg-config exited with status code 1
  > PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags nettle

  The system library `nettle` required by crate `nettle-sys` was not found.
  The file `nettle.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
  The PKG_CONFIG_PATH environment variable is not set.

  HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `nettle.pc`.


  Please make sure the necessary build dependencies are installed.

  If you are using Debian (or a derivative), try:

      $ sudo apt install clang llvm pkg-config nettle-dev

  If you are using Arch (or a derivative), try:

      $ sudo pacman -S clang pkg-config nettle --needed

  If you are using Fedora (or a derivative), try:

      $ sudo dnf install clang pkg-config nettle-devel

  See https://gitlab.com/sequoia-pgp/nettle-sys#building for more information.

  Error: "Building nettle-sys failed."
warning: build failed, waiting for other jobs to finish...
💥 maturin failed

Could we do something like that for this project when pcsc-lite-devel is missing?

(I originally reported this at wiktor-k/pysequoia#26 and the maintainer directed me here)

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