【问题标题】:./configure--with-boost no such file or directory./configure--with-boost 没有这样的文件或目录
【发布时间】:2014-12-21 19:24:20
【问题描述】:

当我使用 ./configure 时终端返回:

检查 Boost 标头版本 >= 1.41.0...没有配置:错误: 找不到 Boost 标头版本 >= 1.41.0

所以我也使用了命令“./configure-with-boost=/usr/include”,但它只返回

没有这样的文件或目录

我已将最新版本的 Boost 标头提取到 /usr/include

【问题讨论】:

  • 我正在尝试配置 LHAPDF-6.1.4
  • 您的意思是configure --with-boost=/usr/include?注意--之前的空格。
  • 是的对不起我的错。我已经添加了空格,但现在它只是说 检查 Boost headers version >= 1.41.0... no configure: error: cannot find Boost headers version >= 1.41.0
  • 你能确认文件/usr/include/boost/version.h存在吗?

标签: linux boost compiler-construction configure construction


【解决方案1】:

--with-boost=... 是一个命令行选项,必须用至少一个空格与可执行文件的名称和其余参数分开,即

./configure --with-boost=/usr/include

【讨论】:

  • 我认为你只是假设指向安装前缀,而不是安装前缀中的包含目录,例如./configure --with-boost=/usr 或更可能类似于 ./configure --with-boost=/opt/whatever
【解决方案2】:

我已经解决了这个问题,它只是缺少一些开发库,而是给出了 boost 错误来解决这个问题。

【讨论】:

  • 缺少什么软件?请包括为解决问题而必须安装的所有软件包,
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-01-04
  • 2023-03-06
  • 1970-01-01
  • 1970-01-01
  • 2018-06-23
相关资源
最近更新 更多