doubi7739 2016-10-30 05:42
浏览 183

Rscript无法使用PHP exec()加载ggplot2包,但它在shell中运行良好

I have already installed ggplot2 and Rcpp package; these run well when I am using shell, but fail if using exec() PHP

here my error log:

Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/usr/lib64/R/library/Rcpp/libs/Rcpp.so': /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib64/R/library/Rcpp/libs/Rcpp.so) Error: package or namespace load failed for ‘ggplot2’ Execution halted

My server using centos 6. While I got Rstudio from here (v0.99.903-x86_64)

  • 写回答

1条回答 默认 最新

  • douying0108 2016-11-01 00:04
    关注

    My best guess -- versions of libstdc++ are getting mixed and matched; it's possible that a version of libstdc++ bundled with lampp is being used in lieu of the system libstdc++, and so R packages compiled against the system libstdc++ are now failing to load against the version bundled with lampp.

    I'm not sure what the best resolution here is -- you could try rebuilding lampp against the system version of libstdc++, or rebuild your R packages against the version of libstdc++ provided by lampp?

    评论

报告相同问题?

悬赏问题

  • ¥100 iOS开发关于快捷指令截屏后如何将截屏(或从截屏中提取出的文本)回传给本应用并打开指定页面
  • ¥15 unity连接Sqlserver
  • ¥15 图中这种约束条件lingo该怎么表示出来
  • ¥15 VSCode里的Prettier如何实现等式赋值后的对齐效果?
  • ¥15 流式socket文件传输答疑
  • ¥20 keepalive配置业务服务双机单活的方法。业务服务一定是要双机单活的方式
  • ¥50 关于多次提交POST数据后,无法获取到POST数据参数的问题
  • ¥15 win10,这种情况怎么办
  • ¥15 如何在配置使用Prettier的VSCode中通过Better Align插件来对齐等式?(相关搜索:格式化)
  • ¥100 在连接内网VPN时,如何同时保持互联网连接