You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Flores, Paul A." <PA...@SAIC.COM> on 2016/02/29 18:46:07 UTC

QPID Proton 12 Issue - can anyone help?

I am attempting to build QPID Proton 12 and seeing the following errors:



Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
ImportError: No module named site
make[2]: *** [proton-c/src/protocol.h] Error 1
ImportError: No module named site
make[2]: *** [proton-c/src/encodings.h] Error 1
make[2]: Target `proton-c/CMakeFiles/qpid-proton.dir/depend' not remade because of errors.
make[1]: *** [proton-c/CMakeFiles/qpid-proton.dir/all] Error 2
make[1]: Target `all' not remade because of errors.
make: *** [all] Error 2
make: Target `default_target' not remade because of errors.





Environm1nt: RHEL 7

GCC: 4.8.5

Python: 2.7

cmake: 2.8.11



(WHY

 -- Found PythonInterp: /usr/bin/python (found version "1.4")
....
-- Could NOT find PythonLibs (missing:  PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "1.4")

)


Re: QPID Proton 12 Issue - can anyone help?

Posted by Andrew Stitcher <as...@redhat.com>.
On Mon, 2016-02-29 at 17:46 +0000, Flores, Paul A. wrote:
> I am attempting to build QPID Proton 12 and seeing the following
> errors:
> 
> 
> 
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> ImportError: No module named site
> make[2]: *** [proton-c/src/protocol.h] Error 1
> ImportError: No module named site
> make[2]: *** [proton-c/src/encodings.h] Error 1

This error is happening because the version of python that cmake has
found is wrong and so it can't run python to generate these files.

> ...
> (WHY
> 
>  -- Found PythonInterp: /usr/bin/python (found version "1.4")
> ....
> -- Could NOT find PythonLibs (missing:  PYTHON_LIBRARIES
> PYTHON_INCLUDE_DIRS) (Required is exact version "1.4")
> 
> )

You appear to have a python 1.4 version installed so that cmake found
it in preference to a more useful version of python.

Try setting your path so that it isn't found before you run cmake.

(1.4 seems odd though as it is so old)

Andrew