Skip to content

Commit 66baaef

Browse files
authored
Merge pull request #248 from Nnwww/fix_getting_started_for_rustup_rs
getting-startedにrustup.rsのインストール方法を追記
2 parents 07bf237 + 34e8bf0 commit 66baaef

File tree

2 files changed

+94
-14
lines changed

2 files changed

+94
-14
lines changed

1.6/ja/book/getting-started.md

Lines changed: 52 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,18 @@ LinuxかMacを使っているなら以下を入力するだけです
151151
$ curl -sSf https://static.rust-lang.org/rustup.sh | sh
152152
```
153153

154+
> 訳注: (Rust 1.14.0 以降)
155+
>
156+
> rustup のインストール方法は変更されました。代わりに以下を入力して下さい。
157+
>
158+
> ```bash
159+
> curl https://sh.rustup.rs -sSf | sh
160+
> ```
161+
154162
<!-- This will download a script, and stat the installation. If it all goes well, -->
155163
<!-- you’ll see this appear: -->
156164
このコマンドでスクリプトをダウンロードしインストールを始めます。
157-
全て上手くいったら以下が表示される筈です
165+
全て上手くいったなら以下が表示される筈です
158166
159167
```text
160168
Welcome to Rust.
@@ -169,29 +177,41 @@ not want the script to run ‘sudo’ then pass it the --disable-sudo flag.
169177
You may uninstall later by running /usr/local/lib/rustlib/uninstall.sh,
170178
or by running this script again with the --uninstall flag.
171179
172-
Continue? (y/N)
180+
Continue? (y/N)
173181
```
174182
175183
> 訳注:
176-
>
177-
>
184+
>
185+
>
178186
> ```text
179187
> Rustへようこそ。
180-
>
188+
>
181189
> このスクリプトはRustコンパイラとそのパッケージマネージャCargoをダウンロードし、/usr/local
182190
> へとインストールします。--prefix=<path> オプションを使うことで他の場所へインストール
183191
> 出来ます。
184-
>
192+
>
185193
> インストーラは「sudo」下で走るのでパスワードを尋きます。もし'sudo'を使ってほしくないなら
186194
> --disable-sudo フラグを渡します。
187-
>
195+
>
188196
> You may uninstall later by running /usr/local/lib/rustlib/uninstall.sh,
189197
> or by running this script again with the --uninstall flag.
190-
>
198+
>
191199
> /usr/local/lib/rustlib/uninstall.shを実行するかこのスクリプトに--uninstallフラグを
192200
> 付けて実行することで後程アンインストール出来ます。
193-
>
194-
> 続けますか? (y/N)
201+
>
202+
> 続けますか? (y/N)
203+
> ```
204+
>
205+
> (Rust 1.14.0 以降)
206+
>
207+
> 全てがうまくいったなら、以下のように表示されるはずです。
208+
>
209+
> ```text
210+
> Rust is installed now. Great!
211+
> ```
212+
>
213+
> ```text
214+
> Rust はたった今インストールされました。すばらしい!
195215
> ```
196216
197217
<!-- From here, press `y` for ‘yes’, and then follow the rest of the prompts. -->
@@ -201,8 +221,20 @@ Continue? (y/N)
201221
## Windowsでのインストール
202222
203223
<!-- If you're on Windows, please download the appropriate [installer][install-page]. -->
204-
Windowsを使っているなら適切な[インストーラ][install-page]をダウンロードして下さい。
205-
224+
Windowsを使っているなら適切な [インストーラ][install-page] をダウンロードして下さい。
225+
226+
> 訳注: (Rust 1.14.0 以降)
227+
>
228+
> <!-- Installing on Windows is nearly as easy: download and run -->
229+
> <!-- [rustup-init.exe]. It will start the installation in a console and -->
230+
> <!-- present the above message on success. -->
231+
> Windows にインストールするのは同じくらい簡単です。 [rustup-init.exe] をダウンロードし実行して下さい。コンソールにてインストールが始まり、成功すれば前述のメッセージが出ているでしょう。
232+
>
233+
> <!-- For other installation options and information, visit the [install] -->
234+
> <!-- page of the Rust website. -->
235+
> 他のインストールオプションや情報については、Rust のウェブサイトの [インストール][install-page] ページにアクセスして下さい。
236+
237+
[rustup-init.exe]: https://win.rustup.rs
206238
[install-page]: https://www.rust-lang.org/install.html
207239
208240
<!-- ## Uninstalling -->
@@ -221,6 +253,14 @@ $ sudo /usr/local/lib/rustlib/uninstall.sh
221253
<!-- an uninstall option. -->
222254
Windowsのインストーラを使ったなら `.msi` をもう一度実行すればアンインストールのオプションが出てきます。
223255

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

1.9/ja/book/getting-started.md

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,18 @@ LinuxかMacを使っているなら、ターミナルを開いて、以下のよ
158158
$ curl -sSf https://static.rust-lang.org/rustup.sh | sh
159159
```
160160

161+
> 訳注: (Rust 1.14.0 以降)
162+
>
163+
> rustup のインストール方法は変更されました。代わりに以下を入力して下さい。
164+
>
165+
> ```bash
166+
> curl https://sh.rustup.rs -sSf | sh
167+
> ```
168+
161169
<!-- This will download a script, and start the installation. If it all goes well, -->
162170
<!-- you’ll see this appear: -->
163171
このコマンドでスクリプトをダウンロードしインストールを始めます。
164-
全てが上手くいったら、以下のように表示されるはずです。
172+
全てが上手くいったなら、以下のように表示されるはずです。
165173
166174
```text
167175
Rust is ready to roll.
@@ -173,6 +181,18 @@ Rust is ready to roll.
173181
> ```text
174182
> Rustを使う準備ができました。
175183
> ```
184+
>
185+
> (Rust 1.14.0 以降)
186+
>
187+
> 全てがうまくいったなら、以下のように表示されるはずです。
188+
>
189+
> ```text
190+
> Rust is installed now. Great!
191+
> ```
192+
>
193+
> ```text
194+
> Rust はたった今インストールされました。すばらしい!
195+
> ```
176196
177197
<!-- From here, press `y` for ‘yes’, and then follow the rest of the prompts. -->
178198
ここで「はい」の意味で `y` を押しましょう。そして以後の画面の指示に従ってください。
@@ -181,8 +201,20 @@ Rust is ready to roll.
181201
## Windowsでのインストール
182202
183203
<!-- If you're on Windows, please download the appropriate [installer][install-page]. -->
184-
Windowsを使っているなら適切な[インストーラ][install-page]をダウンロードしてください。
204+
Windowsを使っているなら適切な [インストーラ][install-page] をダウンロードしてください。
205+
206+
> 訳注: (Rust 1.14.0 以降)
207+
>
208+
> <!-- Installing on Windows is nearly as easy: download and run -->
209+
> <!-- [rustup-init.exe]. It will start the installation in a console and -->
210+
> <!-- present the above message on success. -->
211+
> Windows にインストールするのは同じくらい簡単です。 [rustup-init.exe] をダウンロードし実行して下さい。コンソールにてインストールが始まり、成功すれば前述のメッセージが出ているでしょう。
212+
>
213+
> <!-- For other installation options and information, visit the [install] -->
214+
> <!-- page of the Rust website. -->
215+
> 他のインストールオプションや情報については、Rust のウェブサイトの [インストール][install-page] ページにアクセスして下さい。
185216
217+
[rustup-init.exe]: https://win.rustup.rs
186218
[install-page]: https://www.rust-lang.org/install.html
187219
188220
<!-- ## Uninstalling -->
@@ -201,6 +233,14 @@ $ sudo /usr/local/lib/rustlib/uninstall.sh
201233
<!-- an uninstall option. -->
202234
Windowsのインストーラを使ったなら `.msi` をもう一度実行すれば、アンインストールのオプションが出てきます。
203235

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

0 commit comments

Comments
 (0)