我尝试在 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
Replace variant
与 Red Hat Enterprise Linux 系统变体 (server
or workstation
)
-
启用rhel-variant-rhscl-7-rpms
存储库:
subscription-manager repos --enable rhel-variant-rhscl-7-rpms
-
将 Red Hat Developer Tools 密钥添加到您的系统:
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 Toolset
-
然后安装rust-toolset-7
yum install rust-toolset-7
货物由rust-toolset-7-cargo
包并自动安装rust-toolset-7
包裹。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)