本篇内容主要讲解“WSL和ubuntu20.04下rust报错的处理方法”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“WSL和ubuntu20.04下rust报错的处理方法”吧!
参考微软文档
执行:
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
执行 rustup default stable
sudo apt install openssl
sudo apt install libssl-dev
apt install pkg-config
到此,相信大家对“WSL和ubuntu20.04下rust报错的处理方法”有了更深的了解,不妨来实际操作一番吧!这里是天达云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!