boost / geometry.hpp:没有这样的文件或目录

问题描述 投票:1回答:2

我正在尝试为ruby编译一个c-extension。它需要boost库。

我运行sudo apt-get install libboost-all-dev(据说可以安装boost库),但是当我尝试在扩展库上运行make时,我得到了boost/geometry.hpp: No such file or directory。在我的MacBook pro上,我能够使用自制软件和brew install boost

我正在运行Ubuntu 12.04。

我需要将标头暴露给我的c-extension吗?

ubuntu boost compilation ubuntu-12.04 boost-geometry
2个回答
0
投票

您可能需要在安装boost之后重新配置,以便在make中包含正确的包含。尝试:

$ ./configure
$ make

0
投票

看来libboost-all-dev由于某种原因不包括标题。一旦我从源代码编译并安装了boost,我的工具就可以了。

© www.soinside.com 2019 - 2024. All rights reserved.