![]() |
Having Trouble Compiling From Source (3.7.2) - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Having Trouble Compiling From Source (3.7.2) (/thread-15877.html) |
Having Trouble Compiling From Source (3.7.2) - pnicolosi78 - Feb-04-2019 When it comes to building the _uuid extension I get the following: then I get this also: For UUID in the configure log I saw this: I have OpenSSL 1.0.2j that i'm using to build off of. It says in the configure this: If you've made it to the end of this, thanks! If you can offer any help, please let me know.Thanks. Paolo RE: Having Trouble Compiling From Source (3.7.2) - Larz60+ - Feb-04-2019 Is there any particular reason why you want to compile from source, rather than just install pre-built version? RE: Having Trouble Compiling From Source (3.7.2) - nilamo - Feb-04-2019 What distro are you using? How did you install openssl? If you installed it from the package manager, you might also need to install a development package, sometimes called openssl-dev , so you've got the headers you need to compile libraries that use it.
RE: Having Trouble Compiling From Source (3.7.2) - pnicolosi78 - Feb-04-2019 (Feb-04-2019, 09:28 PM)Larz60+ Wrote: Is there any particular reason why you want to compile from source, rather than just install pre-built version? we make use of system optimizations that are not enabled by default in the pre-built version. Plus this needs to be accessible from multiple servers on NFS. (Feb-04-2019, 09:50 PM)nilamo Wrote: What distro are you using? How did you install openssl? If you installed it from the package manager, you might also need to install a development package, sometimes called RHEL 6.9 (sorry thought it was CentOS 6/7) openssl was compiled from source. I have the devel libraries installed on the server where I'm building python. It even says it finds openssl/ssl.h, it can compile and link against openssl, and it found X509_VERIFY_PARAM_setl_host in libssl. when compiling ssl extensions it seems to go fine. yum list installed | grep uuidlibuuid.i686 2.17.2-12.28.el6_9.2 @rhel-enterprise-6 libuuid.x86_64 2.17.2-12.28.el6_9.2 @rhel-enterprise-6 uuid.x86_64 1.6.1-10.el6 @rhel-enterprise-6 uuid-devel.x86_64 1.6.1-10.el6 @/uuid-devel-1.6.1-10.el6.x86_64 I also saw this: openssl-devel.i686 1.0.1e-57.el6 @rhel-enterprise-6 openssl-devel.x86_64 1.0.1e-57.el6 @rhel-enterprise-6 but my configure command was this: CPPFLAGS="-I/linopt/gnu/gcc/gcc-5.4.0/include/ -I/usr/include/ -I/usr/include/gdbm/" ./configure --prefix=/linopt/python/python-3.7.2/rh64 --enable-loadable-sqlite-extensions -with-system-expat --enable-optimizations --enable-shared --with-openssl=/linopt/openssl/openssl-1.0.2j/ --with-system-ffi | tee configure.log RE: Having Trouble Compiling From Source (3.7.2) - pnicolosi78 - Feb-05-2019 was able to fix the UUID issue. I had both libuuid-devel and uuid-devel installed. referencing this I found by googling: https://bugs.python.org/issue32627 still have the SSL issue, which I"m working on solving that as well. RE: Having Trouble Compiling From Source (3.7.2) - pnicolosi78 - Feb-05-2019 all issues fixed. For SSL,DBM, and Hashlib it seems that there were multiple locations that had different version of the necessary .h files. The system was confused as to which one to use. For SSL, I needed to specify using the LD_LIBRARY_PATH variable which one to use. That solved that. For DBM, in my /usr/include there was gdbm.h and gdbm/gdbm.h. I removed the inclusion of /usr/include/gdbm from my CPPFlags in when running configure. As for Hashlib, i think this is related to fixing SSL, but i'm not entirely sure. As for now it compiles correctly and is working. RE: Having Trouble Compiling From Source (3.7.2) - nilamo - Feb-06-2019 Thanks for letting us know how you fixed it :) |