CloudScale-Project / Distributed-Jmeter

Distributed JMeter application is a load generator application which was developed for CloudScale project, but it can be used independently
Eclipse Public License 1.0
2 stars 1 forks source link

error when installing paramiko openssl #3

Open Ivansek opened 8 years ago

Ivansek commented 8 years ago

When installing paramiko with pip I get the following error:

build/temp.macosx-10.10-x86_64-2.7/_openssl.c:423:10: fatal error: 'openssl/opensslv.h' file not found

#include <openssl/opensslv.h>

         ^

1 error generated.

error: command 'clang' failed with exit status 1

OS: MacOSX 10.11.2 Python version: 2.7 pip version: 1.4.1

Ivansek commented 8 years ago

I installed openssl with $ brew install openssl. This installed openssl-1.0.2g.

Since OSX 10.11 Apple provides own libraries for ssl and you need to set some environment variables before reinstalling paramiko to tell system to use OpenSSL:

$ export LDFLAGS=-L/usr/local/opt/openssl/lib
$ export CPPFLAGS=-I/usr/local/opt/openssl/include
$ pip install paramiko

OSX version: 10.11.2 Python version: 2.7 Pip version: 1.4.1