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 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
You can’t perform that action at this time.
0 commit comments