第一種方法:
下面一句話就搞定。但特殊情況下(對rust版本有要求的時候)需要使用第2種方法
apt install rustc cargo -y
第2種方法:
不想用apt
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
運行后,會讓你選擇方式,選擇1,安裝。?
文章來源:http://www.zghlxwxcb.cn/news/detail-720984.html
How to Install Rust and Cargo on Ubuntu & Other Linux文章來源地址http://www.zghlxwxcb.cn/news/detail-720984.html
到了這里,關于ubuntu上安裝rust和cargo的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!