I have some trouble compiling ledger from git with python support on
debian squeeze:
What I do is this:
$ git clone git://github.com/jwiegley/ledger.git
$ cd ledger
$ ./acprep pull
$ ./acprep config -- --prefix=/opt/ledger
$ make
$ make install
which gives me working a ledger, but
$ ledger python
fails
Looking in the config.log I see:
* --enable-python is already used (seems to be the default),
so no need to actually use
./acprep config -- --prefix=/opt/ledger --enable-python
* however lot's of boost python problems - see details below
I do have libboost-python-dev installed:
r...@atom(~)# dpkg -l "*boost*" | grep py
un libboost-mpi-python1.40-dev <keine> (keine
Beschreibung vorhanden)
ii libboost-python-dev 1.40.0.1
Boost.Python Library development files (default version)
un libboost-python1.35-dev <keine> (keine
Beschreibung vorhanden)
un libboost-python1.36-dev <keine> (keine
Beschreibung vorhanden)
un libboost-python1.37-dev <keine> (keine
Beschreibung vorhanden)
un libboost-python1.38-dev <keine> (keine
Beschreibung vorhanden)
un libboost-python1.39-dev <keine> (keine
Beschreibung vorhanden)
ii libboost-python1.40-dev 1.40.0-4
Boost.Python Library development files
ii libboost-python1.40.0 1.40.0-4
Boost.Python Library
r...@atom(~)# aptitude search boost | grep py
p boostpythongenerator - Binding source code generator for
Boost::P
p libboost-mpi-python1.40-dev - C++ interface to the Message Passing
Inter
p libboost-mpi-python1.40.0 - C++ interface to the Message Passing
Inter
i libboost-python-dev - Boost.Python Library development files
(de
p libboost-python1.39-dev - Boost.Python Library development files
p libboost-python1.39.0 - Boost.Python Library
i A libboost-python1.40-dev - Boost.Python Library development files
i A libboost-python1.40.0 - Boost.Python Library
r...@atom(~)#
(Besides all the other boost pkgs I have installed:
libboost-regex-dev, libboost-date-time-dev, libboost-filesystem-dev
libboost-iostreams-dev etc - they are all recognized and used, only
libboost-python-dev makes trouble)
My configure Skript seems to not recognize my libboost-python-dev:
During my ./acprep config... I can read:
checking if boost_regex is available... true
checking if boost_regex w/ICU is available... true
checking if boost_date_time is available... true
checking if boost_filesystem is available... true
checking if boost_iostreams is available... true
checking if boost_serialization is available... true
checking for a Python interpreter with version >= 2.4... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.5/site-packages
checking for python extension module directory...
${exec_prefix}/lib/python2.5/site-packages
checking if boost_python is available... false
And in my config.log I find lots of error messages related to
boost/python (the error messages really go on forever so I am cutting
them here, but I am happy to send the complete config.log file if
requested):
configure:20737: g++ -o conftest -fpch-deps -Wconversion -pthread -g -pipe
-isystem /usr/local/include -isystem /usr/include/boost -g -L/usr/local/lib
-L/usr/lib conftest.cpp -lboost_python-mt -lpython2.5 -lboost_serialization-mt
-lboost_iostreams-mt -lboost_system-mt -lboost_filesystem-mt -lboost_system-mt
-lboost_date_time-mt -licuuc -lboost_regex-mt -lmpfr -lgmp >&5
In file included from /usr/include/boost/python/detail/prefix.hpp:13,
from /usr/include/boost/python/args.hpp:8,
from /usr/include/boost/python.hpp:11,
from conftest.cpp:101:
/usr/include/boost/python/detail/wrap_python.hpp:50:23: error: pyconfig.h: No
such file or directory
/usr/include/boost/python/detail/wrap_python.hpp:75:24: error: patchlevel.h:
No such file or directory
/usr/include/boost/python/detail/wrap_python.hpp:78:2: error: #error Python
2.2 or higher is required for this version of Boost.Python.
/usr/include/boost/python/detail/wrap_python.hpp:142:21: error: Python.h: No
such file or directory
In file included from /usr/include/boost/python/cast.hpp:13,
from /usr/include/boost/python/handle.hpp:10,
from /usr/include/boost/python/args_fwd.hpp:10,
from /usr/include/boost/python/args.hpp:10,
from /usr/include/boost/python.hpp:11,
from conftest.cpp:101:
/usr/include/boost/python/base_type_traits.hpp:24: error: 'PyObject' was not
declared in this scope
/usr/include/boost/python/base_type_traits.hpp:24: error: template argument 1
is invalid
/usr/include/boost/python/base_type_traits.hpp:30: error: 'PyTypeObject' was
not declared in this scope
/usr/include/boost/python/base_type_traits.hpp:30: error: template argument 1
is invalid
/usr/include/boost/python/base_type_traits.hpp:36: error: 'PyMethodObject'
was not declared in this scope
/usr/include/boost/python/base_type_traits.hpp:36: error: template argument 1
is invalid
In file included from /usr/include/boost/python/handle.hpp:11,
from /usr/include/boost/python/args_fwd.hpp:10,
...
Maybe I am missing some general python pkg? I do however have python-dev
installed:
r...@atom(~)# aptitude search python-dev
i libboost-python-dev - Boost.Python Library
development files (default version)
i A python-dev - Header files and a
static library for Python (default)
r...@atom(~)#
Any help is appreciated.
-Andreas