title: pip cffi package installation failed on osx
body: <p>I am installing cffi package for cryptography and Jasmin installation.</p>
  <p>I did some research before posting question, so I found following option but which is seems not working:</p>
  <h2>System</h2>
  <blockquote>
  <p>Mac OSx 10.9.5</p>
  <p>python2.7</p>
  </blockquote>
  <h2>Error</h2>
  <pre><code>c/_cffi_backend.c:13:10: fatal error: 'ffi.h' file not found
  
  #include &lt;ffi.h&gt;
  
           ^
  
  1 warning and 1 error generated.
  </code></pre>
  <p>Please guide me on following issue.</p>
  <p>Thanks</p>
  <h2>Command</h2>
  <blockquote>
  <p>env DYLD_LIBRARY_PATH=/usr/local/opt/openssl/lib/ ARCHFLAGS=&quot;-Wno-error=unused-command-line-argument-hard-error-in-future&quot; LDFLAGS=&quot;-L/usr/local/opt/openssl/lib&quot; CFLAGS=&quot;-I/usr/local/opt/openssl/include&quot; sudo -E pip install cffi</p>
  </blockquote>
  <h2>LOG</h2>
  <pre><code>bhushanvaiude$ env DYLD_LIBRARY_PATH=/usr/local/opt/openssl/lib/ ARCHFLAGS=&quot;-Wno-error=unused-command-line-argument-hard-error-in-future&quot; LDFLAGS=&quot;-L/usr/local/opt/openssl/lib&quot; CFLAGS=&quot;-I/usr/local/opt/openssl/include&quot; sudo -E pip install cffi
  Password:
  Downloading/unpacking cffi
    Downloading cffi-0.8.6.tar.gz (196kB): 196kB downloaded
    Running setup.py egg_info for package cffi
      warning: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
      1 warning generated.
      
  Downloading/unpacking pycparser (from cffi)
    Downloading pycparser-2.10.tar.gz (206kB): 206kB downloaded
    Running setup.py egg_info for package pycparser
      
  Installing collected packages: cffi, pycparser
    Running setup.py install for cffi
      warning: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
      1 warning generated.
      building '_cffi_backend' extension
      cc -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -I/usr/local/opt/openssl/include -Qunused-arguments -pipe -Wno-error=unused-command-line-argument-hard-error-in-future -DUSE__THREAD -I@@HOMEBREW_CELLAR@@/libffi/3.0.13/lib/libffi-3.0.13/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c c/_cffi_backend.c -o build/temp.macosx-10.9-intel-2.7/c/_cffi_backend.o
      warning: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
      c/_cffi_backend.c:13:10: fatal error: 'ffi.h' file not found
      #include &lt;ffi.h&gt;
               ^
      1 warning and 1 error generated.
      error: command 'cc' failed with exit status 1
      Complete output from command /Users/****project path***/bin/python -c &quot;import setuptools;__file__='/Users/****project path***/build/cffi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))&quot; install --record /var/folders/7w/8z_mn3g120n34bv0w780gnd00000gn/T/pip-e6d6Ay-record/install-record.txt --single-version-externally-managed --install-headers /Users/****project path***/include/site/python2.7:
      warning: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
  
  1 warning generated.
  
  running install
  
  running build
  
  running build_py
  
  creating build
  
  creating build/lib.macosx-10.9-intel-2.7
  
  creating build/lib.macosx-10.9-intel-2.7/cffi
  
  copying cffi/__init__.py -&gt; build/lib.macosx-10.9-intel-2.7/cffi
  
  copying cffi/api.py -&gt; build/lib.macosx-10.9-intel-2.7/cffi
  
  copying cffi/backend_ctypes.py -&gt; build/lib.macosx-10.9-intel-2.7/cffi
  
  copying cffi/commontypes.py -&gt; build/lib.macosx-10.9-intel-2.7/cffi
  
  copying cffi/cparser.py -&gt; build/lib.macosx-10.9-intel-2.7/cffi
  
  copying cffi/ffiplatform.py -&gt; build/lib.macosx-10.9-intel-2.7/cffi
  
  copying cffi/gc_weakref.py -&gt; build/lib.macosx-10.9-intel-2.7/cffi
  
  copying cffi/lock.py -&gt; build/lib.macosx-10.9-intel-2.7/cffi
  
  copying cffi/model.py -&gt; build/lib.macosx-10.9-intel-2.7/cffi
  
  copying cffi/vengine_cpy.py -&gt; build/lib.macosx-10.9-intel-2.7/cffi
  
  copying cffi/vengine_gen.py -&gt; build/lib.macosx-10.9-intel-2.7/cffi
  
  copying cffi/verifier.py -&gt; build/lib.macosx-10.9-intel-2.7/cffi
  
  running build_ext
  
  building '_cffi_backend' extension
  
  creating build/temp.macosx-10.9-intel-2.7
  
  creating build/temp.macosx-10.9-intel-2.7/c
  
  cc -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -I/usr/local/opt/openssl/include -Qunused-arguments -pipe -Wno-error=unused-command-line-argument-hard-error-in-future -DUSE__THREAD -I@@HOMEBREW_CELLAR@@/libffi/3.0.13/lib/libffi-3.0.13/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c c/_cffi_backend.c -o build/temp.macosx-10.9-intel-2.7/c/_cffi_backend.o
  
  warning: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
  
  c/_cffi_backend.c:13:10: fatal error: 'ffi.h' file not found
  
  #include &lt;ffi.h&gt;
  
           ^
  
  1 warning and 1 error generated.
  
  error: command 'cc' failed with exit status 1
  
  ----------------------------------------
  Cleaning up...
  </code></pre>