7
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.

fatal error: 'openssl/aes.h' file not found

Last updated at Posted at 2017-10-13

https://github.com/AugurProject/augur-core/ をMacでビルドしようとしたところ scrypt のコンパイルでコケた。

$ pip install scrypt # 失敗
...
    scrypt-1.2.0/libcperciva/crypto/crypto_aes.c:6:10: fatal error: 'openssl/aes.h' file not found
    #include <openssl/aes.h>
             ^~~~~~~~~~~~~~~
    1 error generated.
    error: command 'clang' failed with exit status 1
$ mdfind -name aes.h -onlyin /usr/local/Cellar/openssl/
...
/usr/local/Cellar/openssl/1.0.2h_1/include/openssl/aes.h
/usr/local/Cellar/openssl/1.0.2i/include/openssl/aes.h
/usr/local/Cellar/openssl/1.0.2j/include/openssl/aes.h
/usr/local/Cellar/openssl/1.0.2k/include/openssl/aes.h
/usr/local/Cellar/openssl/1.0.2l/include/openssl/aes.h

aes.h は brew で入れた openssl ディレクトリに存在した

Solution

環境変数でリンカにオプションを渡したらうまくいった(よくある解決法だった)

env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install scrypt
7
2
0

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
7
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?