![]() ![]() If using a own built python or bzip2, then link the boost include with it. It means you need to install python dev package and bzip2 dev package. ![]() ![]() b2 install link=static threading=multi runtime-link=static bootstrap.sh -with-libraries=all -prefix= $HOME /boost /1.53.0 -with-toolset=intel-linux link=static threading=multi runtime-link=static. This last step can be long.To build boost fully static, you need to add arguments (the argument threading is not dedicated to static building, but it is here to make sure boost build parallel libraries): bootstrap.sh -with-libraries=all -prefix= /soft /boost-1.48.0 -with-toolset=intel-linux bootstrap.sh -with-libraries=all -prefix= /soft /boost-1.46.1 'C:\\Python25\\lib\\site-packages\\Pythonwin']Īnd here, to add c:\testdir to PATH, we used :Įxport PYTHONPATH=c:\testdir:$PYTHONPATH google perfTools (gperftool)įor MPI boost, add 'using mpi ' (without the comma) anywhere in tools/build/v2/user-config.jam. To display all modules loaded by python, use : The “Failed to find the necessary bits to build these modules: _ssl” is wrong.Now you can install.ĭon't forget to add your new python into PATH and LD_LIBRARY_PATH. You can see that the lib incorporate the ssl support. Just bypass it using make -k.If you compile with gcc, no errors anywhere.However, we wanted ssl support, and we get :įailed to find the necessary bits to build these modules: I also got an error at make install with intel because of already installed python on the cluster. You just need to add #include with the other includes in Modules/_ctypes/libffi/src/x86/ffi64.c See in the error section of this website. INSTALL /Python-2.7.5 /Modules /_ctypes /libffi /src /x86 /ffi64.c ( 56 ): error: identifier "_m128" is undefinedĬompilation aborted for INSTALL /Python-2.7.5 /Modules /_ctypes /libffi /src /x86 /ffi64.c (code 2 ).Failed to build these modules: Even if you use Intel to compile numpy or scipy, I strongly recommand to compiler Python using only gcc.If you use Intel, you may encounter this error : Important : when compiling with Intel Compiler, I got errors during the test, and I got none using gcc. configure -prefix= /soft /system /python /2.7.5 DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \Īnd copy Modules/Setup.dist to Modules/Setup SSL=/opt/cluster/softs/intel-13.x-soft/system/openssl/1.0.1e # socket line above, and possibly edit the SSL variable: # Socket module helper for SSL support you must comment out the other Then, edit Modules/Setup.dist, and uncomment these lines, and set the SSL variable to match your openssl installation directory. Ssl_libs = find_library_file(piler, 'ssl',lib_dirs, Ssl_incs = find_file('openssl/ssl.h', inc_dirs, # Detect SSL support for the socket module (via _ssl) Find these lines, and edit them to match your openssl directory installation : Installation with ssl support (important for further packages installation), using openssl.Untar, and edit setup.py.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |