共計 715 個字符,預計需要花費 2 分鐘才能閱讀完成。
今天丸趣 TV 小編給大家分享一下 WSL 下 rust 報錯如何處理的相關知識點,內容詳細,邏輯清晰,相信大部分人都還太了解這方面的知識,所以分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后有所收獲,下面我們一起來了解一下吧。
WSL 的安裝
參考微軟文檔
提示 error: linker cc not found
執行:
sudo apt install gcc
sudo ln -s gcc cc
提示 Could not find directory of OpenSSL installation, and this -sys crate cannot proceed without this knowledge. If OpenSSL is installed and this crate had trouble finding it, you can set the OPENSSL_DIR environment variable for the compilation process.
sudo apt-get install openssl
sudo apt-get install libssl-dev
提示 no override and no default toolchain set
執行 rustup default stable
openssl
sudo apt install openssl
sudo apt install libssl-dev
pkg-config
apt install pkg-config
以上就是“WSL 下 rust 報錯如何處理”這篇文章的所有內容,感謝各位的閱讀!相信大家閱讀完這篇文章都有很大的收獲,丸趣 TV 小編每天都會為大家更新不同的知識,如果還想學習更多的知識,請關注丸趣 TV 行業資訊頻道。