RStudio Server在构建时没有为Macports R到库(RStudio Server doesn't find libraries for Macports R when building)
我正在构建最新的rstudio版本的rstudio-server以在OSX Yosemite上运行,但是在安装时无法到它来到macports R库。
我遇到了“未到最小R版本(2.11.1)”。 我跑的时候出错了 cmake -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release .. 但是当我传递-DRSTUDIOVERIFYR_VERSIO=0 ,我成功配置并在构建失败之前使其达到约44%:
Rogers-iMac:build roger$ sudo make install Password: Scanning dependencies of target gwt_build Buildfile: /Users/roger/projects/rstudio/src/gwt/build.xml [...] Scanning dependencies of target rstudio-r [ 44%] Building CXX object src/cpp/r/CMakeFiles/rstudio-r.dir/ [ 44%] Building CXX object src/cpp/r/CMakeFiles/rstudio-r.dir/ In file included from /Users/roger/projects/rstudio/src/cpp/r/:17: In file included from /Users/roger/projects/rstudio/src/cpp/r/include/r/RExec.hpp:0: In file included from /Users/roger/projects/rstudio/src/cpp/r/include/r/RSexp.hpp:: /Users/roger/projects/rstudio/src/cpp/r/include/r/RInternal.hpp:4:10: fatal error: 'Rinternals.h' file not found #include <Rinternals.h> ^ 1 error generated.我能够在Rinternals.h中到Rinternals.h ( 编辑:也在 /opt/local/Library/Frameworks/R.framework/Versi/.1/Resources/include/Rinternals.h ),但是如何将构建配置指向此位置?
编辑 :此外,我遇到了另一个问题,其中构建失败大约70%的错误 /opt/local/lib/libR.dylib/Resources/R: not a directory make[2]: *** [src/cpp/r/R/packages/library/manipulate/DESCRIPTIO] Error 126经过进一步调查,/ /opt/local/lib/libR.dylib/Resources/R make[2]: *** [src/cpp/r/R/packages/library/manipulate/DESCRIPTIO] Error 126不存在,因为/opt/local/lib/libR.dylib实际上是一个文件。
I'm building the latest github version of rstudio-server to run on OSX Yosemite, but can't get it to find the macports R libraries when installing.
I run into a "Minimum R version (2.11.1) not found." error when I run cmake -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release .. but when I pass -DRSTUDIOVERIFYR_VERSIO=0 as well, I configure successfully and make it to about 44% before the build fails:
Rogers-iMac:build roger$ sudo make install Password: Scanning dependencies of target gwt_build Buildfile: /Users/roger/projects/rstudio/src/gwt/build.xml [...] Scanning dependencies of target rstudio-r [ 44%] Building CXX object src/cpp/r/CMakeFiles/rstudio-r.dir/ [ 44%] Building CXX object src/cpp/r/CMakeFiles/rstudio-r.dir/ In file included from /Users/roger/projects/rstudio/src/cpp/r/:17: In file included from /Users/roger/projects/rstudio/src/cpp/r/include/r/RExec.hpp:0: In file included from /Users/roger/projects/rstudio/src/cpp/r/include/r/RSexp.hpp:: /Users/roger/projects/rstudio/src/cpp/r/include/r/RInternal.hpp:4:10: fatal error: 'Rinternals.h' file not found #include <Rinternals.h> ^ 1 error generated.I was able to find Rinternals.h in /opt/local/Library/Frameworks/R.framework/Versi/.1/PrivateHeaders/Rinternals.h (EDIT: also in /opt/local/Library/Frameworks/R.framework/Versi/.1/Resources/include/Rinternals.h), but how do I point the build configuration to this location?
EDIT: Additionally, I experienced another problem where the build failed at about 70% with the error /opt/local/lib/libR.dylib/Resources/R: not a directory make[2]: *** [src/cpp/r/R/packages/library/manipulate/DESCRIPTIO] Error 126 Upon further investigation, /opt/local/lib/libR.dylib/Resources/R does not exist, because /opt/local/lib/libR.dylib is actually a file.
最满意答案
不确定cmake的具体细节,但你可以试试
$ export CPATH=$CPATH:/opt/local/Library/Frameworks/R.framework/Versi/.1/PrivateHeaders/ $ sudo make install告诉编译器在到它们的位置查头文件。
This appears to be a problem with the RStudio cmake script not properly detecting a MacPorts R installation. To fix these problems:
Point cmake to the correct location of your R executable using export RSTUDIO_WHICH_R=/opt/local/bin/R (or whatever the location is for you), as described in this RStudio Knowledge Base Article. This solves the problem with cmake failing to generate a configuration. To solve the problems with Rinternals.h not being found, go into build/ and change the path of LIBR_ICLUDE_DIRS to reflect Rinternals.h's actual location, as described in this RStudio Support Forum Question. Ensure that LIBR_EXECUTABLE, LIBR_HOME, and LIBR_DOC_DIR all point to the correct location. You can get the correct locati by doing R.home(component="home") (or component="doc") in an R interactive prompt, as described on this webpage. This will solve the build error at 44%, and the additional error I had at 70-ish%.#感谢您对电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格的认可,转载请说明来源于"电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格
推荐阅读
留言与评论(共有 13 条评论) |
本站网友 vs2005下载 | 22分钟前 发表 |
This appears to be a problem with the RStudio cmake script not properly detecting a MacPorts R installation. To fix these problems | |
本站网友 盐田房屋出租 | 18分钟前 发表 |
I experienced another problem where the build failed at about 70% with the error /opt/local/lib/libR.dylib/Resources/R | |
本站网友 光明高钙牛奶 | 17分钟前 发表 |
I configure successfully and make it to about 44% before the build fails | |
本站网友 约翰逊 | 28分钟前 发表 |
17 | |
本站网友 艾司唑仑 | 20分钟前 发表 |
4 | |
本站网友 黄金菊 | 17分钟前 发表 |
/opt/local/Library/Frameworks/R.framework/Versi/.1/PrivateHeaders/ $ sudo make install 告诉编译器在到它们的位置查头文件 | |
本站网友 陈平福 | 22分钟前 发表 |
/Users/roger/projects/rstudio/src/cpp/r/include/r/RInternal.hpp | |
本站网友 三国演义中的凤雏是谁 | 29分钟前 发表 |
我遇到了另一个问题 | |
本站网友 喝什么泡水降血压最好 | 8分钟前 发表 |
17 | |
本站网友 小猴子表情 | 8分钟前 发表 |
17 | |
本站网友 21世纪国际公寓 | 19分钟前 发表 |
not a directory make[2] | |
本站网友 戊二醛 | 3分钟前 发表 |
我跑的时候出错了 cmake -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release .. 但是当我传递-DRSTUDIOVERIFYR_VERSIO=0 |