[C++-sig] Boost V1 build on Solaris

David Abrahams dave at boost-consulting.com
Wed Oct 23 19:27:01 CEST 2002


"Paul F. Kunz" <Paul_Kunz at SLAC.Stanford.EDU> writes:

>    I'm trying to build V1 boost::python on Solaris from boost_1_28.
> 
> tersk06> $GCC_ROOT_DIRECTORY/bin/gcc -v
> Reading specs from /afs/slac/package/gcc/gcc-3/3.1.1/sun4x_58/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.1.1/specs
> Configured with: ../../src/gcc-3.1.1/configure --disable-libffi --without-libffi --prefix=/afs/slac.stanford.edu/package/gcc/gcc-3/3.1.1/sun4x_58 --srcdir=../../src/gcc-3.1.1 --enable-shared --enable-version-specific-runtime-libs
> Thread model: posix
> gcc version 3.1.1
> 
> tersk06> pwd
> /a/surrey07/g.ek.novadata/data/pfkeb/boost_1_28_0
> 
> tersk06> bjam "-sTOOLS=gcc"
> ---------------------------------------------------------------------
> skipping Boost.Python library build
> You can configure the location of your python installation, by setting:
> PYTHON_ROOT    - currently "/afs/slac/package/python/sun4x_59/2.0"
> PYTHON_VERSION - The 2-part python Major.Minor version number (e.g.
>                  "2.2", NOT "2.2.1")  - currently "2.0"
> 
> The following are automatically configured from PYTHON_ROOT if not
> otherwise set:
>     PYTHON_INCLUDES    - path to Python #include directories; currently "/afs/slac/package/python/sun4x_59/2.0/include/python2.0"
>     PYTHON_LIB_PATH    - path to Python library; currently
>                           "/afs/slac/package/python/sun4x_59/2.0/lib/python2.0/config"
>     PYTHON_STDLIB_PATH - path to Python standard library modules; currently
>                           "/afs/slac/package/python/sun4x_59/2.0/lib/python2.0"
> ---------------------------------------------------------------------
> ...found 414 targets...
> 
> So the rest of boost built but not python.   I've not had problems
> under Linux.
> 
> Any hints?

make sure there is an empty file at:

   /afs/slac/package/python/sun4x_59/2.0/lib/python2.0/test/__init__.py

If there isn't one there already, add it. This will not mess up your
python installation, and will make bjam happy.

HTH,
-- 
                    David Abrahams
dave at boost-consulting.com * http://www.boost-consulting.com

Building C/C++ Extensions for Python: Dec 9-11, Austin, TX
http://www.enthought.com/training/building_extensions.html





More information about the Cplusplus-sig mailing list