rust的编译安装

okgoes 2023-05-09 13:07:15
Categories: Tags:

在linux下编译安装

gcc4.8以上

gcc的更新

1
yum install gcc -y

cmake的更新

参考cmake的编译安装:http://blog.okgoes.com/index/blog/detail/uuid/10300003/type/16/t/1500444926/bid/72.html

下载rust的源码包:https://static.rust-lang.org/dist/rustc-1.18.0-src.tar.gz

1
2
3
4
5
wget 
tar -zxvf  rustc-1.18.0-src.tar.gz
cd rustc-1.18.0
./configure
make && make install