在Mac 10.12.1上安装RQuantlib软件包

时间:2016-12-20 23:08:12

标签: r macos clang quantlib

我尝试从源代码安装RQuantLib软件包,已经从终端通过brew install quantlib安装了必需的quantlib。

首先找不到Boost,然后following this post,我尝试了:

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

但是,最终会因以下警告/错误而失败:

ld: 180 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [RQuantLib.so] Error 1
ERROR: compilation failed for package ‘RQuantLib’

我对clang知之甚少,但这真的是一个链接器文件问题吗?

2 个答案:

答案 0 :(得分:2)

this (long) thread at the repo以及由此产生的wiki entry

作为(合作)作者/维护者我没有OS X机器,对我来说,只需要在Linux上工作......在其他操作系统上安装的文档必须由用户提供,幸运的是我们有一些。

答案 1 :(得分:0)

解决方案(感谢Dirk提供的线索,上面的包合着者)来自this wiki entry he mentioned,特别需要编辑this github edit上详述的.hpp文件,这似乎是一旦推出quantlib v 1.9.1

就自行修复