0x676e67 / reqwest-impersonate

An easy and powerful Rust HTTP / WebSocket Client

Home Page:https://github.com/seanmonstar/reqwest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compiling error

malsvn opened this issue · comments

commented
    crypto.vcxproj -> C:\Users\Administrator\Desktop\Scripts\Discord\Freelance\rust-claimer\target\debug\build\boring-sys-imp-f95bce9fa3443951\out\build\Debug\crypto.lib
  cargo:root=C:\Users\Administrator\Desktop\Scripts\Discord\Freelance\rust-claimer\target\debug\build\boring-sys-imp-f95bce9fa3443951\out
  cargo:rustc-link-search=native=C:\Users\Administrator\Desktop\Scripts\Discord\Freelance\rust-claimer\target\debug\build\boring-sys-imp-f95bce9fa3443951\out/build/Debug
  cargo:rustc-link-lib=static=crypto
  cargo:rustc-link-lib=static=ssl
  cargo:rerun-if-env-changed=BORING_BSSL_INCLUDE_PATH

  --- stderr
  thread 'main' panicked at C:\Users\Administrator\.cargo\registry\src\index.crates.io-6f17d22bba15001f\bindgen-0.69.4\lib.rs:622:31:
  Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
commented

?

Also encounter similar error. ChatGPT 4.0 helped me solve this problem.
OS: Mac Monterey Ver 12.7.5
CPU: Intel

you should add c header files to PATH。You can add the following line to bash or shell profile, the source it。

export CPATH=$(xcrun --show-sdk-path)/usr/include

source THE_PATH_TO_PROFILE

You need to install the compilation environment of boringssl related platforms, please refer to: https://github.com/google/boringssl/blob/master/BUILDING.md