我正在构建最新的 github 版本的 rstudio-server 以在 OSX Yosemite 上运行,但在安装时无法找到 macports R 库。
我遇到了“找不到最低 R 版本 (2.11.1)”。运行时出错,
cmake -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release ..
但当我也通过时-DRSTUDIOVERIFYR_VERSION=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/RErrorCategory.cpp.o
[ 44%] Building CXX object src/cpp/r/CMakeFiles/rstudio-r.dir/RExec.cpp.o
In file included from /Users/roger/projects/rstudio/src/cpp/r/RExec.cpp:17:
In file included from /Users/roger/projects/rstudio/src/cpp/r/include/r/RExec.hpp:30:
In file included from /Users/roger/projects/rstudio/src/cpp/r/include/r/RSexp.hpp:33:
/Users/roger/projects/rstudio/src/cpp/r/include/r/RInternal.hpp:43:10: fatal error: 'Rinternals.h' file not found
#include <Rinternals.h>
^
1 error generated.
我能够Rinternals.h
在/opt/local/Library/Frameworks/R.framework/Versions/3.1/PrivateHeaders/Rinternals.h
(编辑:也在 /opt/local/Library/Frameworks/R.framework/Versions/3.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/DESCRIPTION] Error 126
经过进一步调查,/opt/local/lib/libR.dylib/Resources/R
不存在,因为/opt/local/lib/libR.dylib
实际上是一个文件。