OSX 上的 RQuantLib 安装无法检测 QuantLib 安装

Edw*_*son 8 r quantlib osx-yosemite

我正在尝试在具有最新版本的 R (3.2.2) 的 MAC (OSX 10.10) 上安装 RQuantLib。我了解 RQuantLib 需要 QuantLib 并已编译并安装它,显然成功了。至少当我打字时

\n\n
quantlib-config --version\n
Run Code Online (Sandbox Code Playgroud)\n\n

在命令提示符下,我回来了

\n\n
1.6.2\n
Run Code Online (Sandbox Code Playgroud)\n\n

但是,当我尝试通过 GUI(包安装程序)安装 RQuantLib 时,我得到以下信息:

\n\n
* installing *source* package \xe2\x80\x98RQuantLib\xe2\x80\x99 ...\n** package \xe2\x80\x98RQuantLib\xe2\x80\x99 successfully unpacked and MD5 sums checked\nchecking for g++... g++\nchecking whether the C++ compiler works... yes\nchecking for C++ compiler default output file name... a.out\nchecking for suffix of executables... checking whether we are cross compiling... no\nchecking for suffix of object files... o\nchecking whether we are using the GNU C++ compiler... yes\nchecking whether g++ accepts -g... yes\nchecking how to run the C++ preprocessor... g++ -E\nchecking whether we are using the GNU C++ compiler... (cached) yes\nchecking whether g++ accepts -g... (cached) yes\nchecking for R... yes\nchecking for quantlib-config... no\nconfigure: error: Please install QuantLib before trying to build RQuantLib.\nERROR: configuration failed for package \xe2\x80\x98RQuantLib\xe2\x80\x99\n\nThe downloaded source packages are in\n    \xe2\x80\x98/private/var/folders/k7/r94by_b92ydgxg817p9nt_2r0000gn/T/RtmpUjAuhq/downloaded_packages\xe2\x80\x99\n* removing \xe2\x80\x98/Users/edward/Library/R/3.2/library/RQuantLib\xe2\x80\x99\n
Run Code Online (Sandbox Code Playgroud)\n\n

看起来失败的检查位于 configure.ac 文件的第 70 行(\n https://github.com/eddelbuettel/rquantlib/blob/master/configure.ac),但我不这样做知道如何进一步进行调查。

\n\n

任何有关如何使此安装工作的建议将不胜感激。

\n\n

******** 更新 ****\n好的。我已经找到了解决这个问题的方法。\nquantlib-config 位于 /opt/local/bin 中,我在 /usr/local/bin 中为其创建了一个符号链接。

\n\n

然后继续进行 RQuantLib 编译和安装。

\n\n

不太明白这些不同的目录是如何工作的,但无论如何,我正在运行。

\n