Installer problem?


#1

On a (stable) Debian Linux system, I previously installed 1.19 using the curl/rustup method given by the website. I just attempted to install 1.20, which did not appear to work, as evidenced by checking the compiler version after the install. I then removed the ~/.rustup directory and tried again. Now all is well. This appears to be an installer problem, unless I’ve missed or misinterpreted something. Complete log of what I did follows:

dca@giovanni:~ rustc --version rustc 1.19.0 (0ade33941 2017-07-17) dca@giovanni:~ 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:

/home/dca/.cargo/bin

This path will then be added to your PATH environment variable by modifying the
profile files located at:

/home/dca/.profile
/home/dca/.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-unknown-linux-gnu
default toolchain: stable
modify PATH variable: yes

  1. Proceed with installation (default)
  2. Customize installation
  3. Cancel installation
    1

info: updating existing rustup installation

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 dca@giovanni:~ rustc --version
rustc 1.19.0 (0ade33941 2017-07-17)
dca@giovanni:~ rm -rf .rustup/ dca@giovanni:~ 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:

/home/dca/.cargo/bin

This path will then be added to your PATH environment variable by modifying the
profile files located at:

/home/dca/.profile
/home/dca/.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-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: latest update on 2017-08-31, rust version 1.20.0 (f3d6973f4 2017-08-27)
info: downloading component 'rustc’
38.3 MiB / 38.3 MiB (100 %) 3.3 MiB/s ETA: 0 s
info: downloading component 'rust-std’
57.9 MiB / 57.9 MiB (100 %) 3.2 MiB/s ETA: 0 s
info: downloading component 'cargo’
3.6 MiB / 3.6 MiB (100 %) 3.1 MiB/s ETA: 0 s
info: downloading component 'rust-docs’
3.6 MiB / 3.6 MiB (100 %) 3.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.20.0 (f3d6973f4 2017-08-27)

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 dca@giovanni:~ rustc --version
rustc 1.20.0 (f3d6973f4 2017-08-27)
dca@giovanni:~$


#2

If you had previously installed 1.19 through rustup, updating would be

rustup update stable

No need to install rustup again. it should have seen that you had an existing rustup install and refused, this does seem like a bug.


#3

The first thing you see on https://www.rust-lang.org/en-US/install.html is

“To install Rust, run the following in your terminal, then follow the onscreen instructions.” And then it gives the curl command and to the right, it says “Rust 1.20.0”. This leads you to run the curl command again. It doesn’t say, “To install Rust for the first time, do …, else do …”. So I followed the instructions and it seemed happy, as you see in the record of the session: “Rust is installed now. Great!”. Except it did nothing, which wasn’t so great.

This is two bugs, in my opinion: the failure to report that rustup was already installed and if I wanted to update, I needed to do “x”, and the instructions on the installation page not saying explicitly “If you are installing rustup for the first time, run the command below. If rustup is already installed and you want to update to the latest version of Rust, do this: …”.