File tree Expand file tree Collapse file tree 1 file changed +26
-11
lines changed Expand file tree Collapse file tree 1 file changed +26
-11
lines changed Original file line number Diff line number Diff line change 25
25
26
26
### 準備:cargo-generateのインストール
27
27
28
- cargo-generateをインストールしましょう。以下のライブラリとツールが必要です。
29
-
30
- - openssl
31
- - pkg-config
32
-
28
+ 以下のコマンドでcargo-generateをインストールします。
33
29
34
30
#### Linux (Ubuntu 18.04)
35
31
36
32
``` console
37
33
$ sudo apt install libssl-dev pkg-config
34
+ $ cargo install cargo-generate
38
35
```
39
36
40
- #### macOS
37
+ #### macOS Mojave 10.14
41
38
42
- ** TODO** opensslとpkg-configのインストール方法を書く(Homebrew)
39
+ cargo-generateが依存しているopenss-sysクレートは、macOSに元から入っているOpenSSLライブラリのバージョンに対応していません。
40
+ (OpenSSLのバージョンが低すぎる)
41
+ そのOpenSSLライブラリを使おうとすると以下のようなエラーになります。
43
42
43
+ ``` console
44
+ error failed to run custom build command for `openssl-sys v0.9.47`
45
+ ...
44
46
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.
46
49
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
+ ```
48
53
54
+ エラーメッセージのおすすめにしたがって、[ Homebrew] [ homebrew ] で新しいバージョンのOpenSSLライブラリをインストールします。
49
55
50
- #### インストール
56
+ ``` console
57
+ $ brew install openssl
58
+ ```
51
59
52
- 以下のコマンドを実行します 。
60
+ cargo-generateをインストールします 。
53
61
54
62
```
55
63
$ cargo install cargo-generate
56
64
```
57
65
66
+ [ homebrew ] : https://brew.sh/
67
+
68
+
69
+ #### Windows 10 MSVC
70
+
71
+ ** TODO** openssl(?)とcmakeのインストール方法を書く
72
+
58
73
59
74
### パッケージの生成
60
75
You can’t perform that action at this time.
0 commit comments