3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Mac]Rustのクレートhyperを使うためにしたこと

Posted at

MacでRustでhyper使ってHTMLを扱ってみたの記事のコードをビルドしようとしてうまくいかなかった。

エラーの内容は、 ```cargo:warning=src/c_helpers.c:1:10: fatal error: 'openssl/ssl.h' file not found

どうやら、opensslのヘッダーファイルをうまく見つけられていないようだ。

以下の対処でなんとかビルドできるようになった。

```bash
$ brew link --force openssl
$ export OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include

参考:
Faild build On OSX 10.11(Elp)

3
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?