首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在opensolaris上安装Shoutpy + Boost.python时出现问题

在opensolaris上安装Shoutpy + Boost.python时出现问题
EN

Stack Overflow用户
提问于 2009-11-25 22:04:38
回答 1查看 522关注 0票数 1

我正在尝试在opensolaris 2009.6上安装shoutpy。它依赖于boost.python。我已经从blastwave安装了boost_devel库,并将/opt/csw/include/boost链接到/usr/include/boost。但是,当我尝试easy_install shoutpy时,我得到了以下输出

代码语言:javascript
复制
munderwo@opensolaris-test1:/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,Boost1.35。

任何帮助都是最好的!

干杯

标记

编辑-这已经在serverfault上交叉发布了,因为它有点难以分类问题域在哪里。https://serverfault.com/questions/88724/problem-with-opensolaris-boost-python-and-shoutpy

EN

回答 1

Stack Overflow用户

发布于 2009-12-08 01:47:52

不幸的是,我从来没有尝试过在OpenSolaris下编译shoutpy,这些天我也不用它了。Boost.python对其C++编译器的要求很高。使用easy_install -b build_directory shoutpy以便在失败后保留源代码,然后根据boost.python支持的编译器检查Python尝试使用的C++编译器。

我试着在我的桌面Linux上编译它,在我编辑setup.py链接到libboost_python-mt而不是Ubuntu中不存在的libboost_python之后,它仍然可以工作(有几个libboost_python*,取决于Python版本等等)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1797110

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档