Rstudio服务器安装el capitan

时间:2015-10-27 21:49:29

标签: installation rstudio rstudio-server

大约一年前,我曾经在我的mac上运行rstudio服务器。但是,我没有使用它,所以我删除了它。但是,现在我需要重新设置它。与此同时,我改为el capitan并且https://iangow.wordpress.com/2013/05/01/rstudio-server-on-mac-os-x/上的说明失败了。知道这里出了什么问题吗?安装的输出如下:

admins-macbook-pro-2:rstudio admin$ mkdir build
mkdir: build: File exists
admins-macbook-pro-2:rstudio admin$ cd build
admins-macbook-pro-2:build admin$ cmake -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release ..
-- Mac OS X version: 10.11
-- Boost version: 1.50.0
-- Found R: /Library/Frameworks/R.framework/Resources
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/admin/rstudio/build
admins-macbook-pro-2:build admin$ sudo launchctl unload /Library/LaunchDaemons/org.rstudio.launchd.rserver.plist
admins-macbook-pro-2:build admin$ sudo make install
Buildfile: /Users/admin/rstudio/src/gwt/build.xml

ext:
   [jscomp] None of the files changed. Compilation skipped.

javac:
    [javac] Compiling 1 source file to /Users/admin/rstudio/src/gwt/bin

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 -- 329.680s
     [java] Linking into /Users/admin/rstudio/src/gwt/www/rstudio; Writing extras to /Users/admin/rstudio/src/gwt/extras/rstudio
     [java]    Link succeeded
     [java]    Linking succeeded -- 7.419s

build:

BUILD SUCCESSFUL
Total time: 5 minutes 46 seconds
[  0%] Built target gwt_build
[  1%] Building CXX object src/cpp/core/CMakeFiles/rstudio-core.dir/http/SocketProxy.cpp.o
In file included from /Users/admin/rstudio/src/cpp/core/http/SocketProxy.cpp:22:
In file included from /Users/admin/rstudio/src/cpp/core/include/core/http/BoostAsioSsl.hpp:24:
In file included from /opt/rstudio-tools/boost/boost_1_50_0/include/boost/asio/ssl/context.hpp:26:
In file included from /opt/rstudio-tools/boost/boost_1_50_0/include/boost/asio/ssl/context_base.hpp:20:
/opt/rstudio-tools/boost/boost_1_50_0/include/boost/asio/ssl/detail/openssl_types.hpp:19:10: fatal error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
1 error generated.
make[2]: *** [src/cpp/core/CMakeFiles/rstudio-core.dir/http/SocketProxy.cpp.o] Error 1
make[1]: *** [src/cpp/core/CMakeFiles/rstudio-core.dir/all] Error 2
make: *** [all] Error 2

1 个答案:

答案 0 :(得分:3)

使用El Capitan,OS X已将系统OpenSSL标头移开,因此RStudio不再自动发现它们。

目前通过在这里寻找OpenSSL来解决这个问题:https://github.com/rstudio/rstudio/blob/cc562d2c0c4ceac1cf3131e27097d1d1249ba889/src/cpp/core/CMakeLists.txt#L190-L205

要利用这一点,您需要自己安装OpenSSL到/usr/local/opt/openssl;如果你使用的是Homebrew,那么就是一个简单的

brew install openssl

将自动为您执行此操作。 (进行此更改后,您可能需要再次运行cmake,以确保更新所有编译配置。)