gpt4 book ai didi

installation - Rstudio 服务器安装 el capitan

转载 作者:行者123 更新时间:2023-12-04 02:16:35 27 4
gpt4 key购买 nike

大约一年前,我曾经在我的 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

最佳答案

对于 El Capitan,OS X 已将系统 OpenSSL header 移开,因此 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,以确保更新所有编译配置。)

关于installation - Rstudio 服务器安装 el capitan,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33379115/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com