Hi,I'm tring to install cryptography by source code on a redhat 6.6 server 
myself,  for I can not use the `pip install` commond in a local network.

Firstly, I installed  openssl-1.0.2k by source code.

```
./config  -fPIC shared --prefix=/ulic/devops/ops/softs/ssl 
--openssldir=/ulic/devops/ops/softs/ssl/openssl
```

Then I tried to install cryptography-1.7.2 by source code.

```
export PKG_CONFIG_PATH=/ulic/devops/ops/softs/ssl/lib/pkgconfig
export LD_LIBRARY_PATH=/ulic/devops/ops/softs/ssl/lib
python setup.py build
python setup.py install
```

But it seemed that it does't work and it stucked here.

```
.... 
building '_openssl' extension
gcc -pthread -fno-strict-aliasing -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -fPIC -I/home/zabbix/python3.6/include/python3.6m -c 
build/temp.linux-x86_64-3.6/_openssl.c -o 
build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/_openssl.o
build/temp.linux-x86_64-3.6/_openssl.c:485:25: error: openssl/cms.h: No such 
file or directory
build/temp.linux-x86_64-3.6/_openssl.c:680: error: function definition declared 
‘typedef’
build/temp.linux-x86_64-3.6/_openssl.c:680: warning: return type defaults to 
‘int’
build/temp.linux-x86_64-3.6/_openssl.c: In function ‘LHASH_OF’:
... 
```

The cms.h file is in /ulic/devops/ops/softs/ssl/include/openssl/cms.h.

And I think the setup.py can not find it correctly. Did anyone know how to deal 
with it. 

Thank you very much!
_______________________________________________
Cryptography-dev mailing list
Cryptography-dev@python.org
https://mail.python.org/mailman/listinfo/cryptography-dev

Reply via email to