您的位置:首页 > 编程语言 > Python开发

Solaris下编译Boost.Python

2009-01-14 09:44 330 查看
1. 下载、解压boost_1_35_0.zip
2. 编译bjam.参见本人之前的《Boost编译》一文
3. 下载安装python2.6
4. 在Boost.Build的安装目录找到user-config.jam。我的目录为:/export/home/ocs/zhangyj/boost_1_35_0/tools/build/v2
5. 编辑user-config.jam文件,加入下面几行:
# Required for Boost.Python: ##############################################

# Python configuration
using python : 2.6 : /export/home/ocs/zhangyj/python26 ;

#####################################################################

6. 编译Python:
bjam --toolset=gcc -d2 address-model=64 architecture=sparc instruction-set=v9 --with-python --build-type=complete stage
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: