Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c3c4fa

Browse files
committed
Update README; write instructions to install cargo-generate to
Linux and macOS
1 parent 696cfae commit 9c3c4fa

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

README.md

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,36 +25,51 @@
2525

2626
### 準備:cargo-generateのインストール
2727

28-
cargo-generateをインストールしましょう。以下のライブラリとツールが必要です。
29-
30-
- openssl
31-
- pkg-config
32-
28+
以下のコマンドでcargo-generateをインストールします。
3329

3430
#### Linux (Ubuntu 18.04)
3531

3632
```console
3733
$ sudo apt install libssl-dev pkg-config
34+
$ cargo install cargo-generate
3835
```
3936

40-
#### macOS
37+
#### macOS Mojave 10.14
4138

42-
**TODO** opensslとpkg-configのインストール方法を書く(Homebrew)
39+
cargo-generateが依存しているopenss-sysクレートは、macOSに元から入っているOpenSSLライブラリのバージョンに対応していません。
40+
(OpenSSLのバージョンが低すぎる) 
41+
そのOpenSSLライブラリを使おうとすると以下のようなエラーになります。
4342

43+
```console
44+
error failed to run custom build command for `openssl-sys v0.9.47`
45+
...
4446

45-
#### Windows MSVC
47+
It looks like you're compiling on macOS, where the system contains a version of
48+
OpenSSL 0.9.8. This crate no longer supports OpenSSL 0.9.8.
4649

47-
**TODO** openssl(?)とcmakeのインストール方法を書く
50+
As a consumer of this crate, you can fix this error by using Homebrew to
51+
install the `openssl` package, ...
52+
```
4853

54+
エラーメッセージのおすすめにしたがって、[Homebrew][homebrew]で新しいバージョンのOpenSSLライブラリをインストールします。
4955

50-
#### インストール
56+
```console
57+
$ brew install openssl
58+
```
5159

52-
以下のコマンドを実行します
60+
cargo-generateをインストールします
5361

5462
```
5563
$ cargo install cargo-generate
5664
```
5765

66+
[homebrew]: https://brew.sh/
67+
68+
69+
#### Windows 10 MSVC
70+
71+
**TODO** openssl(?)とcmakeのインストール方法を書く
72+
5873

5974
### パッケージの生成
6075

0 commit comments

Comments
 (0)