在mac os x上安装boost和PyUblas时出错

时间:2013-12-05 11:11:46

标签: c++ python macos boost

我使用macport使用以下命令安装了boost_1_55 “sudo port install boost” 没有错误。 我现在正在尝试在我的Mac上安装PyUblas但我一直收到以下错误

> src/wrapper/main.cpp:16:10: fatal error: 'boost/python.hpp' file not
> found

#include <boost/python.hpp>
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

任何人都可以帮忙吗?

1 个答案:

答案 0 :(得分:1)

从软件包(Macports,Brew等)安装boost对我来说不起作用,但是从源代码安装了。

http://sourceforge.net/projects/boost/files/boost/1.55.0/

下载来源

cd进入文件夹,然后安装:

./bootstrap.sh 
./b2
./b2 install
相关问题