【问题标题】:Can't get RQuantLib working with brew installed quantlib under osx 10.9.4无法让 RQuantLib 在 osx 10.9.4 下与 brew 安装的 quantlib 一起使用
【发布时间】:2014-10-07 20:23:07
【问题描述】:

我一直在尝试通过安装 RQuantLib 包

install.packages("RQuantLib")

它一直给我以下错误

* installing *source* package ‘RQuantLib’ ...
** package ‘RQuantLib’ successfully unpacked and MD5 sums checked
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for R... yes
checking for quantlib-config... yes
checking for Boost development files... no
configure: error: Boost development files not found
ERROR: configuration failed for package ‘RQuantLib’
* removing ‘/usr/local/Cellar/r/3.1.1/R.framework/Versions/3.1/Resources/library/RQuantLib’

我已经完成了

brew install boost
brew install quantlib

我已经检查了两者的符号链接,这应该没问题(对两者都进行了取消链接/链接)。


解决方案:

根据edd的回答使用下面的命令,为我工作

install.packages("RQuantLib", configure.args="--with-boost-include=/usr/local/include/ --with-boost-lib=/usr/local/lib/")

【问题讨论】:

    标签: r macos boost quantlib


    【解决方案1】:

    尝试在基于 *.tar.gz 文件的 shell 中使用这些

    edd@max:~/git/rquantlib(master)$ ./configure --help|grep boost
      --with-boost-include=INCLUDE_PATH
      --with-boost-lib=LIB_PATH
    edd@max:~/git/rquantlib(master)$ 
    

    或查看install.packages() 的帮助,您也可以在其中将参数传递给configure——我发现第一种方法更容易。

    本质上,我们似乎需要帮助配置查找您的 Boost 标头(然后可能还有库)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-02-14
      • 2015-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-06
      相关资源
      最近更新 更多