成功 命令 2:rutstup target install thumbv7m-none-eabi --> 成功 命令 3:car-6ren">
gpt4 book ai didi

rust - 安装 cargo-flash 时如何修复 "could not find system library libudev"?

转载 作者:行者123 更新时间:2023-12-02 18:04:09 28 4
gpt4 key购买 nike

操作系统:Ubuntu

  • 命令 1:rustup update --> 成功
  • 命令 2:rutstup target install thumbv7m-none-eabi --> 成功
  • 命令 3:cargo install cargo-flash
error: failed to run custom build command for `hidapi v1.4.2`
process didn't exit successfully: `/tmp/cargo-installgobLzf/release/build/hidapi-aad2646622c847a4/build-script-build` (exit status: 101)
error: could not find system library 'libudev' required by the 'hidapi' crate
error: failed to compile `cargo-flash v0.13.0`, intermediate artifacts can be found at `/tmp/cargo-installgobLzf`

最佳答案

首先安装依赖,然后安装cargo-flash:

sudo apt install -y pkg-config libusb-1.0-0-dev libftdi1-dev
sudo apt-get install libudev-dev
cargo install cargo-flash

详情请访问the cargo-flash crate .

关于rust - 安装 cargo-flash 时如何修复 "could not find system library libudev"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73693257/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com