2017-08-15 10 views
1

私はhereというプロキシ再暗号化方式のPython実装をインストールしようとしています。 $ sudo python setup.py installを実行している場合openssl/aes.h 'ファイルがMacに見つかりません

は、私の周りの答えの(thisまたはthis(ないMac用))が、どれもが私の問題を修正していない。このようないくつかの質問がありますが、エラー

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

に取り戻します。

私は(すべては私が見つけた答えから取られた)試してみた:

  1. env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptographyを実行して、再度試みます。
  2. brew install opensslもう一度試してください。
  3. brew reinstall pythonそしてもう一度試してください。

オプション1は、私はOSX 10.12.6を実行している

Requirement already satisfied: cryptography in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages 
Requirement already satisfied: six>=1.4.1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography) 
Requirement already satisfied: setuptools>=11.3 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography) 
Requirement already satisfied: cffi>=1.4.1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography) 
Requirement already satisfied: pyasn1>=0.1.8 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography) 
Requirement already satisfied: enum34 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography) 
Requirement already satisfied: ipaddress in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography) 
Requirement already satisfied: idna>=2.0 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography) 
Requirement already satisfied: pycparser in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cffi>=1.4.1->cryptography) 

を返しました。

アイデア?

+1

'で

$ cd /usr/local/include $ ln -s ../opt/openssl/include/openssl . 

ルックを試すことができます。 '-e'や' -E'(IIRC)のようなオプションを使わない限り、 'env LDFLAGS = ...'のようなものは消えます。特権のないアカウントの下に物を構築し、rootを使ってインストールします。 – jww

答えて

関連する問題