久しぶりにRustをインストールした [プログラミング]
面白そうな言語だと思う。以前にインストールしていたことを忘れていた。まず
$ sudo /usr/local/lib/rustlib/uninstall.sh
としなければならなかった。
$ sudo 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.
It will add the cargo, rustc, rustup and other commands to Cargo's bin
directory, located at:
/Users/---略---/.cargo/bin
This path will then be added to your PATH environment variable by modifying the
profile files located at:
/Users/---略---/.profile
/Users/---略---/.bash_profile
You can uninstall at any time with rustup self uninstall and these changes will
be reverted.
Current installation options:
default host triple: x86_64-apple-darwin
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-apple-darwin'
info: latest update on 2018-05-10, rust version 1.26.0 (a77568041 2018-05-07)
info: downloading component 'rustc'
57.3 MiB / 57.3 MiB (100 %) 1.4 MiB/s ETA: 0 s
info: downloading component 'rust-std'
45.7 MiB / 45.7 MiB (100 %) 1.4 MiB/s ETA: 0 s
info: downloading component 'cargo'
3.0 MiB / 3.0 MiB (100 %) 1.4 MiB/s ETA: 0 s
info: downloading component 'rust-docs'
6.8 MiB / 6.8 MiB (100 %) 1.4 MiB/s ETA: 0 s
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
info: default toolchain set to 'stable'
stable installed - rustc 1.26.0 (a77568041 2018-05-07)
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
$
バージョンは
$
Last login: Fri May 18 14:45:40 on ttys000
$ cargo --version
cargo 1.26.0 (0e7c5a931 2018-04-06)
$ rustc --version
rustc 1.26.0 (a77568041 2018-05-07)
$ rustdoc --version
rustdoc 1.26.0 (a77568041 2018-05-07)
$
だ。アップデートは
$ rustup update
とするようだ。
$ sudo /usr/local/lib/rustlib/uninstall.sh
としなければならなかった。
$ sudo 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.
It will add the cargo, rustc, rustup and other commands to Cargo's bin
directory, located at:
/Users/---略---/.cargo/bin
This path will then be added to your PATH environment variable by modifying the
profile files located at:
/Users/---略---/.profile
/Users/---略---/.bash_profile
You can uninstall at any time with rustup self uninstall and these changes will
be reverted.
Current installation options:
default host triple: x86_64-apple-darwin
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-apple-darwin'
info: latest update on 2018-05-10, rust version 1.26.0 (a77568041 2018-05-07)
info: downloading component 'rustc'
57.3 MiB / 57.3 MiB (100 %) 1.4 MiB/s ETA: 0 s
info: downloading component 'rust-std'
45.7 MiB / 45.7 MiB (100 %) 1.4 MiB/s ETA: 0 s
info: downloading component 'cargo'
3.0 MiB / 3.0 MiB (100 %) 1.4 MiB/s ETA: 0 s
info: downloading component 'rust-docs'
6.8 MiB / 6.8 MiB (100 %) 1.4 MiB/s ETA: 0 s
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
info: default toolchain set to 'stable'
stable installed - rustc 1.26.0 (a77568041 2018-05-07)
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
$
バージョンは
$
Last login: Fri May 18 14:45:40 on ttys000
$ cargo --version
cargo 1.26.0 (0e7c5a931 2018-04-06)
$ rustc --version
rustc 1.26.0 (a77568041 2018-05-07)
$ rustdoc --version
rustdoc 1.26.0 (a77568041 2018-05-07)
$
だ。アップデートは
$ rustup update
とするようだ。
The Rust Programming Language (Manga Guide)
- 作者: Steve Klabnik
- 出版社/メーカー: No Starch Press
- 発売日: 2018/06/19
- メディア: ペーパーバック
Programming Rust: Fast, Safe Systems Development
- 作者: Jim Blandy
- 出版社/メーカー: Oreilly & Associates Inc
- 発売日: 2017/12/21
- メディア: ペーパーバック