Reputation: 131
I'm attempting to install the RQuantLib package from source, having already installed the requisite quantlib via brew install quantlib
from the terminal.
After first failing to find Boost, but then following this post, I attempted:
> install.packages("RQuantLib", configure.args="--with-boost-include=/usr/local/include/ --with-boost-lib=/usr/local/lib/")
However, this ultimately fails with the following warnings/ errors:
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’
I know little about clang, but it this truly a linker file issue?
Upvotes: 2
Views: 489
Reputation: 131
Solution (thanks to clues from Dirk, the package co-author, above) came from this wiki entry he mentioned, in particular requiring the editing of a .hpp file as detailed on this github edit, which will seemingly be fixed on its own once they push quantlib v 1.9.1
Upvotes: 0
Reputation: 368639
Please this (long) thread at the repo as well as the resulting wiki entry.
As the (co-)author/maintainer I don't have an OS X machine, and for me things simply just work on Linux ... Documentation for installation on other OSs has to be user-contributed, and luckily we have some.
Upvotes: 3