2009-11-25 6 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를 얻을, 오픈 솔라리스 2009.06, 1.35을 향상.

도움이 될 것입니다.

건배

마크

편집 - 문제의 도메인이 곳의 조금 하드 분류로이 교차 저기 serverfault에 게시되었습니다. https://serverfault.com/questions/88724/problem-with-opensolaris-boost-python-and-shoutpy

+0

나는 그 소프트웨어를 썼다. 저자에게 그것에 대해 묻는 이메일을 보내보십시오. – joeforker

답변

0

불행히도 OpenSolaris에서 shoutpy을 컴파일하려 한 적이 없으며 요즘은 사용하지 않습니다. Boost.python은 C++ 컴파일러에서 많이 필요합니다. easy_install -b build_directory shoutpy을 사용하여 실패한 후에도 소스 코드를 유지하고, C++ 컴파일러 Python이 boost.python에서 지원하는 것을 사용하려고하는지 확인하십시오.

내가 내 데스크톱 리눅스에 컴파일 시도하고 나는 우분투에 존재하지 않는 libboost_python-mt 대신 libboost_python에 대한 링크 setup.py을 편집 한 후 여전히 작동 (등 파이썬 버전에 따라 libboost_python* 몇 가지가있다).

+0

답장을 보내 주셔서 감사합니다. 당신은 당신이 그 소프트웨어를 썼다고 말합니다. 당신은 외설을 썼다 고요? 컴파일러 메신저 꽤 gcc를 사용하여 메신저. libboost-python-mt와 libboost-python의 차이점은 무엇입니까? –

+0

나는 비웃음을 썼다. libboost-python-mt의 mt는 멀티 쓰레딩을 의미합니다. 쓰레드를 사용하는 파이썬 코드와 함께 사용할 수 있습니다. – joeforker

+0

잘 그게 편리합니다. 나는 너에게 이메일을 보낼 것 같아. 나는 shoutpy 웹 사이트에 하나가 최대 희망입니다 :) –

관련 문제