如何在Mac上构建libRmath.dylib

时间:2017-06-17 18:59:53

标签: r macos

我是Mac用户。我正在尝试安装来自R的独立Rmath库libRmath.dylib。我发现R默认情况下不编译libRmath。所以我尝试从源代码编译Rmath库。但我只能在CRAN上找到适用于Windows / Unix的.tar文件,以及命令" ./ configure"给了我一堆" No"和"错误" s。

checking whether C runtime needs -D__NO_MATH_INLINES... no
checking for xmkmf... no
checking whether linker supports dynamic lookup... yes
checking whether g++  supports C++98 features by default... yes
checking whether g++  supports C++11 features by default... no
checking whether g++  supports C++11 features with -std=gnu++11... yes
checking whether g++  supports C++14 features by default... no
checking whether g++  supports C++14 features with -std=gnu++14... no
checking whether g++  supports C++14 features with -std=gnu++1y... no
checking whether g++  supports C++14 features with -std=c++14... no
checking whether g++  supports C++14 features with -std=c++1y... no
configure: No compiler with C++14 support was found
checking whether   supports C++17 features by default... no
checking whether   supports C++17 features with -std=gnu++17... no
checking whether   supports C++17 features with -std=gnu++1z... no
checking whether   supports C++17 features with -std=c++17... no
checking whether   supports C++17 features with -std=c++1z... no
configure: No compiler with C++17 support was found
checking for off_t... yes
...
checking if bzip2 version >= 1.0.6... yes
checking whether bzip2 support suffices... yes
checking for lzma_version_number in -llzma... yes
checking lzma.h usability... no
checking lzma.h presence... no
checking for lzma.h... no
configure: error: "liblzma library and headers are required"

有没有办法在Mac上安装libRmath.dylib?非常感谢你!

0 个答案:

没有答案