简体   繁体   English

Rust 工具链位置 - Fedora 35

[英]Rust Toolchain location - Fedora 35

I'm using Fedora 35, and no matter what location I've tried for the Rust Toolchain in IntelliJ IDEA I get "Invalid toolchain location: can't find Cargo in..." I've tried /bin and many, many other locations.我正在使用 Fedora 35,无论我在 IntelliJ IDEA 中为 Rust 工具链尝试了哪个位置,我都会收到“无效的工具链位置:在...中找不到货物”我已经尝试过 /bin 和很多很多其他位置。 I prefer not to use rustup and would like to do this with the standard Fedora Rust installation.我不喜欢使用 rustup 并且希望使用标准的 Fedora Rust 安装来做到这一点。

It seems like it has to do with the sandbox effect of Flatpaks.这似乎与 Flatpaks 的沙盒效应有关。 I reinstalled IDEA from Fedora's Copr instead of the Flatpak and everything was read automatically.我从 Fedora 的 Copr 而不是 Flatpak 重新安装了 IDEA,一切都被自动读取了。

I had to install我不得不安装

sudo dnf install rust-src

Then set the path in IntelliJ to:然后将 IntelliJ 中的路径设置为:

/usr/lib/rustlib/src/rust

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM