2009-11-25 46 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