将Quantlib更新到版本1.8.1后,我无法重新安装RQuantlib。安装将停止,并显示以下错误消息:
installing to /Users/kliszt/Library/R/3.3/library/RQuantLib/libs
** R
** data
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Users/kliszt/Library/R/3.3/library/RQuantLib/libs/RQuantLib.so':
dlopen(/Users/kliszt/Library/R/3.3/library/RQuantLib/libs/RQuantLib.so, 6): Symbol not found: __ZN8QuantLib13FixedRateBondC1EjdRKNS_8ScheduleERKNSt3__16vectorIdNS4_9allocatorIdEEEERKNS_10DayCounterENS_21BusinessDayConventionEdRKNS_4DateERKNS_8CalendarERKNS_6PeriodESK_SE_b
Referenced from: /Users/kliszt/Library/R/3.3/library/RQuantLib/libs/RQuantLib.so
Expected in: flat namespace
in /Users/kliszt/Library/R/3.3/library/RQuantLib/libs/RQuantLib.so
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Users/kliszt/Library/R/3.3/library/RQuantLib’
Warning in install.packages :
installation of package ‘RQuantLib’ had non-zero exit status
我尝试在R Studio中安装RQuantlib,但也在命令行中通过
安装sudo R CMD INSTALL RQuantLib_0.4.3.tar.gz
但这也会失败并导致相同的错误消息。我尝试更新R本身,但这也没有帮助。 Quantlib本身可以工作,我可以通过Python使用它,在命令行上它返回正确的版本。
quantlib-config --version
1.8.1
有什么想法吗?
为了完整性,这是我的会话信息:
sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.12.1 (Sierra)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] rsconnect_0.4.3 tools_3.3.1
第一个控制台输出:
* 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... yes
checking for minimal Boost version... yes
configure: creating ./config.status
config.status: creating src/Makevars
Completed configuration and ready to build.
...