Boost logo

Boost Users :

Subject: Re: [Boost-users] error while installing boost 1.36 and 1.52
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2012-12-16 10:25:44


On Dec 15, 2012, at 9:54 PM, naveen kumar <naveenn222_at_[hidden]> wrote:

> Dear Boost user,
>
> while installing boost, i am getting many error messages as below, how to overcome these errors, please help me
>
> thanking you in advance
> Naveen
>
>
> Building the Boost C++ Libraries.
>
[snip]

>
> ...updating 824 targets...
> gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.4.6/release/threading-multi/bzip2.o
> libs/iostreams/src/bzip2.cpp:20:56: error: bzlib.h: No such file or directory
> libs/iostreams/src/bzip2.cpp:31: error: ‘BZ_OK’ was not declared in this scope
> libs/iostreams/src/bzip2.cpp:32: error: ‘BZ_RUN_OK’ was not declared in this scope

Ok - it can't find bzlib.h

http://www.boost.org/doc/libs/1_52_0/libs/iostreams/doc/classes/bzip2.html says:

        The bzip2 Filters depend on the third-party libbz2 library, which is not included in the Boost distribution. Prebuilt libbz2 binaries are available on most UNIX and UNIX-like systems, and will be found automatically by the Boost build system.

[ more snippage ]

> gcc.link.dll bin.v2/libs/program_options/build/gcc-4.4.6/release/threading-multi/libboost_program_options.so.1.52.0
> common.copy stage/lib/libboost_program_options.so.1.52.0
> ln-UNIX stage/lib/libboost_program_options.so
> common.mkdir bin.v2/libs/python
> common.mkdir bin.v2/libs/python/build
> common.mkdir bin.v2/libs/python/build/gcc-4.4.6
> common.mkdir bin.v2/libs/python/build/gcc-4.4.6/release
> common.mkdir bin.v2/libs/python/build/gcc-4.4.6/release/threading-multi
> gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4.6/release/threading-multi/numeric.o
> In file included from ./boost/python/detail/prefix.hpp:13,
> from ./boost/python/numeric.hpp:8,
> from libs/python/src/numeric.cpp:6:
> ./boost/python/detail/wrap_python.hpp:50:23: error: pyconfig.h: No such file or directory
> ./boost/python/detail/wrap_python.hpp:75:24: error: patchlevel.h: No such file or directory
> ./boost/python/detail/wrap_python.hpp:78:2: error: #error Python 2.2 or higher is required for this version of Boost.Python.
> ./boost/python/detail/wrap_python.hpp:142:21: error: Python.h: No such file or directory
> In file included from ./boost/python/object/pointer_holder.hpp:14,
> from ./boost/python/to_python_indirect.hpp:10,
> from ./boost/python/converter/arg_to_python.hpp:10,
> from ./boost/python/call.hpp:15,
> from ./boost/python/object_core.hpp:14,
> from ./boost/python/object.hpp:9,
> from ./boost/python/tuple.hpp:10,
> from ./boost/python/numeric.hpp:10,
> from libs/python/src/numeric.cpp:6:
> ./boost/python/instance_holder.hpp:34: error: ‘PyObject’ has not been declared
> ./boost/python/instance_holder.hpp:41: error: expected ‘;’ before ‘(’ token
> ./boost/python/instance_holder.hpp:45: error: ‘PyObject’ has not been declared
> In file included from ./boost/python/object/pointer_holder.hpp:21,

Here Boost.Python is complaining that it can't find a suitable version of Python installed on your system.
Check and make sure Python is installed, and that it is >= than version 2.2 (the message there is "Python 2.2 or higher is required for this version of Boost.Python" )

-- Marshall

Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net