在el-capitan上编译Rstudio服务器

时间:2015-11-01 18:24:21

标签: installation rstudio rstudio-server

大约一年前,我曾经在我的mac上运行rstudio服务器。但是,我没有使用它,所以我删除了它。但是,现在我需要重新设置它。与此同时,我改为el capitan并且https://iangow.wordpress.com/2013/05/01/rstudio-server-on-mac-os-x/上的说明失败了。首先,由于OpenSSL和el capitan,我遇到了麻烦。但是,我认为这是由[Rstudio server installation el capitan处理的。现在,在sudo make install编译后,它最终会抛出一个我无法破译的错误。安耶想到这里有什么问题?

编辑1-根据建议删除建议我删除了rstudio目录并进行了全新安装。但是 - 我最终得到了同样的错误。

    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [src/cpp/session/rsession] Error 1
    make[1]: *** [src/cpp/session/CMakeFiles/rsession.dir/all] Error 2
    make: *** [all] Error 2




[ 92%] Linking CXX executable rsession
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/SessionModuleContext.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/SessionRUtil.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/SessionUserSettings.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionAuthoring.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionBreakpoints.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionCodeSearch.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionUserCommands.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionConsole.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionDependencies.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionDiagnostics.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionDirty.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionErrors.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionFiles.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionFilesQuotas.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionGit.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionHelp.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionHTMLPreview.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionLimits.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionMarkers.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionPackages.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionPackrat.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionPlots.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionRCompletions.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionRHooks.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionRParser.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionRSConnect.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionShinyViewer.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionSource.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionSpelling.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionSVN.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/SessionWorkbench.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/build/SessionBuild.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/build/SessionBuildEnvironment.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/clang/RCompilationDatabase.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/clang/SessionClang.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/data/DataViewer.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/environment/EnvironmentMonitor.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/environment/EnvironmentUtils.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/environment/SessionEnvironment.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/presentation/SessionPresentation.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/presentation/PresentationLog.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/presentation/SlideRequestHandler.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/presentation/Tutorial.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/presentation/TutorialInstaller.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/rmarkdown/SessionRMarkdown.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/shiny/SessionShiny.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/tex/SessionCompilePdf.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/tex/SessionRnwWeave.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/tex/SessionTexUtils.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/modules/viewer/SessionViewer.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/projects/SessionProjects.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    CMakeFiles/rsession.dir/projects/SessionProjectContext.cpp.o
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RExec.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RFunctionHook.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RJsonRpc.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(ROptions.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RRoutines.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RSexp.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RSourceManager.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RUtil.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RClientMetrics.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RConsoleActions.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RSearchPath.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RSessionState.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RSession.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RGraphicsDevice.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RGraphicsPlot.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RGraphicsPlotManipulator.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RGraphicsPlotManipulatorManager.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RGraphicsPlotManager.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RGraphicsUtils.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(RShadowPngGraphicsHandler.cpp.o)
duplicate symbol _R_running_as_main_program in:
    CMakeFiles/rsession.dir/SessionMain.cpp.o
    ../r/librstudio-r.a(REmbeddedPosix.cpp.o)
ld: 73 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/cpp/session/rsession] Error 1
make[1]: *** [src/cpp/session/CMakeFiles/rsession.dir/all] Error 2
make: *** [all] Error 2

1 个答案:

答案 0 :(得分:0)

在我的Mac上升级OS X后,我遇到了同样的问题。请注意,我的Macbook已经有了Homebrew。

以下是我安装RStudio Server所做的工作:

  1. 安装新版本的Xcode
  2. brew reinstall gcc
  3. brew install rstudio-server