我尝试在RHEL服务器上安装Cargo:
curl https://sh.rustup.rs -sSf | sh
但在完成后,我收到了回复:
cargo
-bash: cargo: command not found
有不同的安装方式吗?
rhel-7-variant-devtools-rpms
存储库
subscription-manager repos --enable rhel-7-varient-devtools-rpms
将variant
替换为Red Hat Enterprise Linux系统变体(server
或workstation
)rhel-variant-rhscl-7-rpms
存储库:
subscription-manager repos --enable rhel-variant-rhscl-7-rpms
cd /etc/pki/rpm-gpg
wget -O RPM-GPG-KEY-redhat-devel https://www.redhat.com/security/data/a5787476.txt
rpm --import RPM-GPG-KEY-redhat-devel
订阅附加到系统并启用存储库后,您可以安装Red Hat Rust Toolsetrust-toolset-7
yum install rust-toolset-7
货物由rust-toolset-7-cargo
包提供,并自动安装rust-toolset-7
包。