2015-10-27 107 views
2

我曾經在大約一年前在我的mac上運行rstudio服務器。但是,我沒有使用它,所以我刪除了它。但是,現在我需要重新設置它。在此期間,我已更換爲el capitan,並且https://iangow.wordpress.com/2013/05/01/rstudio-server-on-mac-os-x/上的說明失敗。任何想法在這裏出了什麼問題?從安裝的輸出如下:Rstudio服務器安裝el capitan

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 

回答

3

隨着埃爾卡皮坦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,以確保所有編譯配置都已更新。)

+0

是否意味着運行1)brew install openssl(忽略彈出的/ usr/local變量添加的內容) 2)從cmake的-DRSTUDIO_TARGET =服務器-DCMAKE_BUILD_TYPE =釋放..和最後3)須藤繼續使安裝 – Misha

+0

似乎做的伎倆...... – Misha

+1

實際上有在自制一個公式來安裝rstudio服務器。 –