使用cargo build--target=aarch64-unknown-linux-gnu即可生成aarch64版本程序。使用cargo build还是生成x86_64平台程序。
$ ./2g Hello, It's 2DayGeek.com - Best Linux Practical Blog! 好了!正常工作了。 将Rust 更新到最新版本。 $ rustup update info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu' info: checking for self-updates stable-x86_64-unknown-linux-gnu unchanged - rustc 1.31.0 (abe...
Hello, It's 2DayGeek.com - Best Linux Practical Blog! 好了!正常工作了。 将Rust 更新到最新版本。 $ rustup update info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu' info: checking for self-updates stable-x86_64-unknown-linux-gnu unchanged - rustc 1.31.0 (abe02cefd 2018...
Current installation options: default host triple: x86_64-unknown-linux-gnu default toolchain: stable modify PATH variable: yes 1) Proceed with installation (default) 2) Customize installation 3) Cancel installation >1 info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu' info: late...
-->/home/dureuill/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:502:10|502|pubenumResult{ | ^^^ = note: required because it appears within thetype`(&str,Result)` = note: requiredfor`Sender<(&'staticstr,Result)>` to implement...
stable-x86_64-unknown-linux-gnu unchanged - rustc 1.64.0 (a55dd71d5 2022-09-19) info: cleaning up downloads & tmp directories ## 卸载 Rust ➜ ~ rustup self uninstall 更多rustup相关的使用可查其帮助文档。 0.2 Cargo Cargo是Rust 内置的包管理和构建系统 ,在安装Rust时已经安装好,查看 cargo...
4.用rustup添加toolchain和target,命令为:rustup toolchain install stable-x86_64-unknown-linux-gnu,然后添加target,命令为:rustup target add x86_64-unknown-linux-gnu 然后我们将这些文件拷贝,1是.cargo里的bin目录(只剩下rustc和rustup,其实添加rustup.exe即可[同时放.cargo和安装目录两处],因为rustc.exe...
stable-x86_64-unknown-linux-gnu installed - rustc 1.52.1 (9bc8c42bb 2021-05-09) Rust is installed now. Great! To get started you may need to restart your current shell. This would reload your PATH environment variable to include
$ rustc +stable-x86_64-unknown-linux-musl --version Error loading shared library libgcc_s.so.1: No such file or directory (needed by /home/fenhl/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/librustc_driver-a19ffab541701154.so) Error loading shared library libgcc_s.so.1: ...
在Linux中安装Rust >1 info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu' 320.9 KiB / 320.9 KiB (100 %) 254.7 KiB/s ETA: 0 s info: latest update on 2019-02-28, rust version 1.33.0 (2aa4c46cf 2019-02-28)