2022年05月03日 00:12 0 人评论 6 人阅读
使用 cargo build 编译rust项目时报错:
error: failed to run custom build command for `openssl-sys v0.9.72`
安装 libssl-dev:
$ sudo apt install libssl-dev
安装 pkg-config:
$ sudo apt install pkg-config
重新编译即可。
error: linking with `cc` failed: exit status: 1
|
=...
= note: /usr/bin/ld: cannot find -lmysqlclient
sudo apt install libmysqlclient-dev
error: linking with `cc` failed: exit status: 1
|
=...
= note: /usr/bin/ld: cannot find -lpq
sudo apt install libpq-dev
发表评论 已发布 0 条