2009-11-25 50 views
1

我试图在opensolaris 2009.6上安装shoutpy。它依赖于boost.python。我已经安装了来自blastwave的boost_devel库和链接/opt/csw/include/boost/usr/include/boost。但是,当我尝试easy_install shoutpy我得到以下输出在opensolaris上安装Shoutpy + Boost.python问题

[email protected]:/usr/include$ pfexec easy_install shoutpy 
Searching for shoutpy 
Reading http://pypi.python.org/simple/shoutpy/ 
Reading http://dingoskidneys.com/shoutpy/ 
Best match: shoutpy 1.0.0 
Downloading http://dingoskidneys.com/shoutpy/shoutpy-1.0.0.tar.gz 
Processing shoutpy-1.0.0.tar.gz 
Running shoutpy-1.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-w7XQfv/shoutpy-1.0.0/egg-dist-tmp-k11Dky 
In file included from /usr/include/boost/python/object/make_instance.hpp:9, 
       from /usr/include/boost/python/object/make_ptr_instance.hpp:8, 
       from /usr/include/boost/python/to_python_indirect.hpp:11, 
       from /usr/include/boost/python/converter/arg_to_python.hpp:10, 
       from /usr/include/boost/python/call.hpp:15, 
       from /usr/include/boost/python/object_core.hpp:12, 
       from /usr/include/boost/python/args.hpp:25, 
       from /usr/include/boost/python.hpp:11, 
       from shoutpy.cc:26: 
/usr/include/boost/python/object/instance.hpp:44: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression 
/usr/include/boost/python/object/instance.hpp:44: error: '->' cannot appear in a constant-expression 
/usr/include/boost/python/object/instance.hpp:44: error: `&' cannot appear in a constant-expression 
In file included from /usr/include/boost/python/converter/registry.hpp:9, 
       from /usr/include/boost/python/converter/registered.hpp:8, 
       from /usr/include/boost/python/object/make_instance.hpp:10, 
       from /usr/include/boost/python/object/make_ptr_instance.hpp:8, 
       from /usr/include/boost/python/to_python_indirect.hpp:11, 
       from /usr/include/boost/python/converter/arg_to_python.hpp:10, 
       from /usr/include/boost/python/call.hpp:15, 
       from /usr/include/boost/python/object_core.hpp:12, 
       from /usr/include/boost/python/args.hpp:25, 
       from /usr/include/boost/python.hpp:11, 
       from shoutpy.cc:26: 
/usr/include/boost/python/converter/rvalue_from_python_data.hpp:99: error: '->' cannot appear in a constant-expression 
/usr/include/boost/python/converter/rvalue_from_python_data.hpp:99: error: `&' cannot appear in a constant-expression 
/usr/include/boost/python/converter/rvalue_from_python_data.hpp:99: error: template argument 1 is invalid 
/usr/include/boost/python/converter/rvalue_from_python_data.hpp:99: error: `value' is not a member of `<declaration error>' 
error: Setup script exited with error: command '/usr/lib/python2.6/pycc' failed with exit status 1 

这是使用python2.6的,OpenSolaris的2009.06,提高1.35。

任何帮助将是伟大的!

干杯

马克

编辑 - 这已经跨在serverfault张贴它有点难以归类问题出在哪里域。 https://serverfault.com/questions/88724/problem-with-opensolaris-boost-python-and-shoutpy

+0

我写了那个软件。尝试向作者发送一封电子邮件询问。 – joeforker 2009-12-07 17:45:03

回答

0

不幸的是,我从来没有试图在OpenSolaris下编译shoutpy,我现在也不使用它。 Boost.python需要很多C++编译器。使用easy_install -b build_directory shoutpy,以便在失败后保留源代码,然后检查Python试图用于boost.python支持的C++编译器。

我试图编译它在我的桌面Linux上,我编辑setup.py后对libboost_python-mt而不是libboost_python链接不Ubuntu的存在,它仍然有效(有几个libboost_python*取决于Python版本等等)。

+0

感谢您的回复。你说你写了那个软件。你写了Shoutpy?至于使用gcc im的编译器,我很确定。 libboost-python-mt和libboost-python有什么区别? – 2009-12-08 04:11:21

+0

我写的很有说服力。 libboost-python-mt中的mt表示多线程,它可以与使用线程的Python代码一起使用。 – joeforker 2009-12-08 13:53:32

+0

这很方便。我想我会给你发一封电子邮件。我希望在shoutpy网站上的那个是最新的:) – 2009-12-10 07:16:55