Skip to content

Commit

Permalink
add description of rustup.rs to getting-started
Browse files Browse the repository at this point in the history
  • Loading branch information
Nnwww committed Feb 20, 2017
1 parent 07bf237 commit 2067a85
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 14 deletions.
61 changes: 50 additions & 11 deletions 1.6/ja/book/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ LinuxかMacを使っているなら以下を入力するだけです
$ curl -sSf https://static.rust-lang.org/rustup.sh | sh
```

> 訳注: (Rust 1.14.0 以降)
>
> rustup のインストール方法は変更されました。代わりに以下を入力して下さい。
>
> ```bash
> curl https://sh.rustup.rs -sSf | sh
> ```
<!-- This will download a script, and stat the installation. If it all goes well, -->
<!-- you’ll see this appear: -->
このコマンドでスクリプトをダウンロードしインストールを始めます。
Expand All @@ -169,29 +177,40 @@ not want the script to run ‘sudo’ then pass it the --disable-sudo flag.
You may uninstall later by running /usr/local/lib/rustlib/uninstall.sh,
or by running this script again with the --uninstall flag.
Continue? (y/N)
Continue? (y/N)
```

> 訳注:
>
>
>
>
> ```text
> Rustへようこそ。
>
>
> このスクリプトはRustコンパイラとそのパッケージマネージャCargoをダウンロードし、/usr/local
> へとインストールします。--prefix=<path> オプションを使うことで他の場所へインストール
> 出来ます。
>
>
> インストーラは「sudo」下で走るのでパスワードを尋きます。もし'sudo'を使ってほしくないなら
> --disable-sudo フラグを渡します。
>
>
> You may uninstall later by running /usr/local/lib/rustlib/uninstall.sh,
> or by running this script again with the --uninstall flag.
>
>
> /usr/local/lib/rustlib/uninstall.shを実行するかこのスクリプトに--uninstallフラグを
> 付けて実行することで後程アンインストール出来ます。
>
> 続けますか? (y/N)
>
> 続けますか? (y/N)
> ```
>
> (Rust 1.14.0 以降)
> 全てがうまくいったなら、以下のように表示されるはずです。
>
> ```text
> Rust is installed now. Great!
> ```
>
> ```text
> Rust はたった今インストールされました。すばらしい!
> ```
<!-- From here, press `y` for ‘yes’, and then follow the rest of the prompts. -->
Expand All @@ -201,8 +220,20 @@ Continue? (y/N)
## Windowsでのインストール

<!-- If you're on Windows, please download the appropriate [installer][install-page]. -->
Windowsを使っているなら適切な[インストーラ][install-page]をダウンロードして下さい。

Windowsを使っているなら適切な [インストーラ][install-page] をダウンロードして下さい。

> 訳注: (Rust 1.14.0 以降)
>
> <!-- Installing on Windows is nearly as easy: download and run -->
> <!-- [rustup-init.exe]. It will start the installation in a console and -->
> <!-- present the above message on success. -->
> Windows にインストールするのは同じくらい簡単です。 [rustup-init.exe] をダウンロードし実行して下さい。コンソールにてインストールが始まり、成功すれば前述のメッセージが出ているでしょう。
>
> <!-- For other installation options and information, visit the [install] -->
> <!-- page of the Rust website. -->
> 他のインストールオプションや情報については、Rust のウェブサイトの [インストール][install-page] ページにアクセスして下さい。
[rustup-init.exe]: https://win.rustup.rs
[install-page]: https://www.rust-lang.org/install.html

<!-- ## Uninstalling -->
Expand All @@ -221,6 +252,14 @@ $ sudo /usr/local/lib/rustlib/uninstall.sh
<!-- an uninstall option. -->
Windowsのインストーラを使ったなら `.msi` をもう一度実行すればアンインストールのオプションが出てきます。

> 訳注: (Rust 1.14.0 以降)
>
> Rust のアンインストール方法も変更されています。以下のコマンドを入力して下さい。
>
> ```bash
> rustup self uninstall
> ```
<!-- ## Troubleshooting -->
## トラブルシューティング

Expand Down
44 changes: 41 additions & 3 deletions 1.9/ja/book/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,21 +158,39 @@ LinuxかMacを使っているなら、ターミナルを開いて、以下のよ
$ curl -sSf https://static.rust-lang.org/rustup.sh | sh
```

> 訳注: (Rust 1.14.0 以降)
>
> rustup のインストール方法は変更されました。代わりに以下を入力して下さい。
>
> ```bash
> curl https://sh.rustup.rs -sSf | sh
> ```
<!-- This will download a script, and start the installation. If it all goes well, -->
<!-- you’ll see this appear: -->
このコマンドでスクリプトをダウンロードしインストールを始めます。
全てが上手くいったら、以下のように表示されるはずです。
全てが上手くいったなら、以下のように表示されるはずです。

```text
Rust is ready to roll.
```

> 訳注:
>
>
> ```text
> Rustを使う準備ができました。
> ```
>
> (Rust 1.14.0 以降)
> 全てがうまくいったなら、以下のように表示されるはずです。
>
> ```text
> Rust is installed now. Great!
> ```
>
> ```text
> Rust はたった今インストールされました。すばらしい!
> ```
<!-- From here, press `y` for ‘yes’, and then follow the rest of the prompts. -->
ここで「はい」の意味で `y` を押しましょう。そして以後の画面の指示に従ってください。
Expand All @@ -181,8 +199,20 @@ Rust is ready to roll.
## Windowsでのインストール

<!-- If you're on Windows, please download the appropriate [installer][install-page]. -->
Windowsを使っているなら適切な[インストーラ][install-page]をダウンロードしてください。
Windowsを使っているなら適切な [インストーラ][install-page] をダウンロードしてください。

> 訳注: (Rust 1.14.0 以降)
>
> <!-- Installing on Windows is nearly as easy: download and run -->
> <!-- [rustup-init.exe]. It will start the installation in a console and -->
> <!-- present the above message on success. -->
> Windows にインストールするのは同じくらい簡単です。 [rustup-init.exe] をダウンロードし実行して下さい。コンソールにてインストールが始まり、成功すれば前述のメッセージが出ているでしょう。
>
> <!-- For other installation options and information, visit the [install] -->
> <!-- page of the Rust website. -->
> 他のインストールオプションや情報については、Rust のウェブサイトの [インストール][install-page] ページにアクセスして下さい。
[rustup-init.exe]: https://win.rustup.rs
[install-page]: https://www.rust-lang.org/install.html

<!-- ## Uninstalling -->
Expand All @@ -201,6 +231,14 @@ $ sudo /usr/local/lib/rustlib/uninstall.sh
<!-- an uninstall option. -->
Windowsのインストーラを使ったなら `.msi` をもう一度実行すれば、アンインストールのオプションが出てきます。

> 訳注: (Rust 1.14.0 以降)
>
> Rust のアンインストール方法も変更されています。以下のコマンドを入力して下さい。
>
> ```bash
> rustup self uninstall
> ```
<!-- ## Troubleshooting -->
## トラブルシューティング

Expand Down

0 comments on commit 2067a85

Please sign in to comment.