Skip to content

Commit 4ab17e1

Browse files
committed
wolfSSH: fix the custom install directory example in chapter 2
The example used --libdir and --includedir to point at wolfSSL. Those set wolfSSH's own install paths, not where wolfSSL is found. - Use --with-wolfssl instead - Note what --libdir and --includedir actually do - Update the English and Japanese manuals
1 parent 1a4a32d commit 4ab17e1

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

wolfSSH/src-ja/chapter02.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,12 @@ $ ./configure --prefix=~/wolfSSL
143143
$ make
144144
$ make install
145145
```
146-
これにより、ライブラリは ~/wolfSSL/lib に、インクルードは ~/wolfSSL/include に配置されます。wolfSSH のカスタムインストールディレクトリを設定し、カスタムの wolfSSL ライブラリおよびインクルードディレクトリを指定するには、次のようにします:
146+
これにより、ライブラリは ~/wolfSSL/lib に、インクルードは ~/wolfSSL/include に配置されます。wolfSSH のカスタムインストールディレクトリを設定し、その wolfSSL のインストール先を参照させるには、次のようにします:
147147
```
148-
$ ./configure --prefix=~/wolfssh --libdir=~/wolfSSL/lib --includedir=~/wolfSSL/include
148+
$ ./configure --prefix=~/wolfssh --with-wolfssl=~/wolfSSL
149149
$ make
150150
$ make install
151151
```
152+
--with-wolfssl オプションには wolfSSL のインストール先プレフィックスを指定します。その配下に lib/ と include/ があることが前提です。wolfSSH に wolfSSL の場所を伝えるのはこのオプションです。--libdir および --includedir オプションは wolfSSH 自身のライブラリとヘッダーのインストール先を設定するものであり、wolfSSL の検索先には影響しません。
153+
152154
上記のパスが実際の場所と一致していることを確認してください。

wolfSSH/src/chapter02.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,13 @@ $ ./configure --prefix=~/wolfSSL
150150
$ make
151151
$ make install
152152
```
153-
This will place the library in ~/wolfSSL/lib and the includes in ~/wolfSSL/include. To set up a custom install directory for wolfSSH and specify the custom wolfSSL library and include directories use the following:
153+
This will place the library in ~/wolfSSL/lib and the includes in ~/wolfSSL/include. To set up a custom install directory for wolfSSH and point it at that wolfSSL install use the following:
154154
```
155-
$ ./configure --prefix=~/wolfssh --libdir=~/wolfSSL/lib --includedir=~/wolfSSL/include
155+
$ ./configure --prefix=~/wolfssh --with-wolfssl=~/wolfSSL
156156
$ make
157157
$ make install
158158
```
159+
The --with-wolfssl option takes the wolfSSL install prefix and expects to find lib/ and include/ under it. It is what tells wolfSSH where to find wolfSSL. The --libdir and --includedir options set where wolfSSH's own library and headers are installed, they do not affect where wolfSSL is found.
160+
159161
Make sure the paths above match your actual locations.
160162

0 commit comments

Comments
 (0)