如何从Linux环境交叉编译MacOS的R软件包? [英] How do I cross compile R packages for MacOS from a Linux environment?
问题描述
我正在运行Linux,并尝试编译R软件包以在Mac上使用.我只能找到Linux-> Windows和MacOS-> Windows交叉编译说明.有人知道我应该怎么做才能为R编译MacOS二进制软件包吗?
I'm running Linux and trying to compile an R package for use on a Mac. I could only find Linux->Windows and MacOS->Windows cross-compiling instructions. Does anybody know what I should do to compile a MacOS binary package for R?
或者,我会为我建立服务器而定.再次,有一个用于R软件包的Windows构建服务器,但是有人知道MacOS构建服务器吗?
Or, I'll settle for I build server. Again, there's a Windows build-server for R packages, but does anybody know of a MacOS build-server?
推荐答案
首先构建一个gcc交叉编译器-参见其文档.
By first building a gcc crosscompiler -- see its documentation.
但是,可用的库可能是一个限制因素.您必须从要链接的OS X重建所有内容.
Available libraries may be a limiting factor, though. You'd have to rebuild everything from OS X you'd like to link against.
这篇关于如何从Linux环境交叉编译MacOS的R软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!