我正在尝试在Mac OS X 10.11.4中编译rstudio-server但是我收到了一些与libboost相关的编译错误。有关如何排除故障的任何指示?
注意:我之前使用brew install boost
安装了提升。
(下面的构建输出缩写)
sudo make install
给出了这个:
gwtc:
[java] Compiling module org.rstudio.studio.RStudio
[java] Compiling 4 permutations
[java] Compiling permutation 0...
[java] Process output
[java] Compiling
[java] Compiling permutation 1...
[java] Compiling
[java] Compiling permutation 2...
[java] Compiling permutation 3...
[java] Compile of permutations succeeded
[java] Compilation succeeded -- 217.782s
[java] Linking into Desktop/thingamabob/rstudio/src/gwt/www/rstudio; Writing extras to Desktop/thingamabob/rstudio/src/gwt/extras/rstudio
[java] Link succeeded
[java] Linking succeeded -- 4.739s
build:
BUILD SUCCESSFUL
Total time: 3 minutes 48 seconds
[ 19%] Built target gwt_build
[ 53%] Built target rstudio-core
[ 57%] Built target rstudio-core-hunspell
[ 58%] Built target rstudio-core-synctex
[ 59%] Built target rstudio-monitor
[ 59%] Built target rstudio-r
[ 59%] Built target rstudio-session-workers
[ 60%] Building CXX object src/cpp/session/CMakeFiles/rsession.dir/modules/SessionDependencies.cpp.o
[ 60%] Building CXX object src/cpp/session/CMakeFiles/rsession.dir/modules/SessionDiagnostics.cpp.o
[ 60%] Building CXX object src/cpp/session/CMakeFiles/rsession.dir/modules/SessionDirty.cpp.o
[ 61%] Building CXX object src/cpp/session/CMakeFiles/rsession.dir/modules/SessionErrors.cpp.o
etc...
[ 92%] Building CXX object src/cpp/session/CMakeFiles/rsession.dir/modules/SessionCrypto.cpp.o
[ 92%] Building CXX object src/cpp/session/CMakeFiles/rsession.dir/SessionModuleContext.mm.o
make[2]: *** No rule to make target `/opt/rstudio-tools/boost/boost_1_50_0/lib/libboost_date_time.a', needed by `src/cpp/session/rsession'. Stop.
make[1]: *** [src/cpp/session/CMakeFiles/rsession.dir/all] Error 2
make: *** [all] Error 2
之前的步骤
cmake .. -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=OSX
install-dependencies-osx
(在文件夹rstudio/dependencies/osx
中)修复了那些缺失的deps sudo make install
。答案 0 :(得分:1)
这些是我在OSX中启动并运行RStudio服务器时所遵循的步骤。
您可以使用brew安装它们:
brew install cmake
brew install ant
brew install openssl
项目将被克隆到名为rstudio
的目录中。这将是下面的ROOT。
git clone https://github.com/rstudio/rstudio.git
除其他外,这将在/ opt。
中安装 boost 库cd rstudio/dependencies/osx
./install-dependencies-osx
(检查上面ROOT的值)。
cd ROOT
mkdir build
cd build
(检查ROOT目录中的INSTALL文件以获取选项)。
cmake .. -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release
sudo make install
这将用于运行rstudio服务器服务。
sudo cp /usr/local/lib/rstudio-server/extras/launchd/com.rstudio.launchd.rserver.plist /Library/LaunchDaemon
注意:您可以使用lanunchctl
启动服务,但我无法找到正确的方法。解决方法是重新启动系统。
如果您无法使用您的用户登录,则可能是因为它具有用户ID< 1000(在我的情况下 - 检查shell中的用户ID类型id
并检查输出开头的uid
的值)。然后,您需要在/ etc
cd /etc
mkdir rstudio
cd rstudio
然后创建名为 rserver.conf 的文件并添加以下行,将100
更改为某个值> 100且< =您的用户ID
auth-minimum-user-id=101