Skip to content

Instantly share code, notes, and snippets.

@showyou
Created February 7, 2021 03:20
Show Gist options
  • Save showyou/90cb9cdd1dcc65d4232f4338b432e507 to your computer and use it in GitHub Desktop.
Save showyou/90cb9cdd1dcc65d4232f4338b432e507 to your computer and use it in GitHub Desktop.
M1 Mac + rustupでrust 1.49.0が入る
% rustc hello.rs -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
yuki% curl https://sh.rustup.rs -sSf | sh [~]
info: downloading installer
Welcome to Rust!
This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.
Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:
/Users/yuki/.rustup
This can be modified with the RUSTUP_HOME environment variable.
The Cargo home directory located at:
/Users/yuki/.cargo
This can be modified with the CARGO_HOME environment variable.
The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:
/Users/yuki/.cargo/bin
This path will then be added to your PATH environment variable by
modifying the profile files located at:
/Users/yuki/.profile
/Users/yuki/.bash_profile
/Users/yuki/.zshenv
You can uninstall at any time with rustup self uninstall and
these changes will be reverted.
Current installation options:
default host triple: aarch64-apple-darwin
default toolchain: stable (default)
profile: default
modify PATH variable: yes
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>1
info: profile set to 'default'
info: default host triple is aarch64-apple-darwin
info: syncing channel updates for 'stable-aarch64-apple-darwin'
info: latest update on 2020-12-31, rust version 1.49.0 (e1884a8e3 2020-12-29)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-std'
17.8 MiB / 17.8 MiB (100 %) 10.9 MiB/s in 1s ETA: 0s
info: downloading component 'rustc'
41.8 MiB / 41.8 MiB (100 %) 10.9 MiB/s in 3s ETA: 0s
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: using up to 500.0 MiB of RAM to unpack components
info: installing component 'clippy'
info: installing component 'rust-std'
info: installing component 'rustc'
41.8 MiB / 41.8 MiB (100 %) 20.2 MiB/s in 2s ETA: 0s
info: installing component 'rustfmt'
info: default toolchain set to 'stable-aarch64-apple-darwin'
stable-aarch64-apple-darwin installed - rustc 1.49.0 (e1884a8e3 2020-12-29)
Rust is installed now. Great!
To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
environment variable. Next time you log in this will be done
automatically.
To configure your current shell, run:
source $HOME/.cargo/env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment