【问题标题】:Rapache on debian wheezy doesn't work with R 3.1.2Debian wheezy 上的 Rapache 不适用于 R 3.1.2
【发布时间】:2015-12-15 05:23:35
【问题描述】:

我尝试在 debian 上安装 rapache 已经很久了。我确实遵循了本教程:http://blog.binfalse.de/2011/05/28/r-for-the-web/ 并且我成功了,但是使用了旧的 R (1.2.5),并且我确实以完全相同的方式重复了安装,但是使用了 R (3.1.2),并且出现了“内部服务器错误”当我输入“localhost/R/myfile.R”时。但是,当我输入“localhost/RApacheInfo”时,它可以工作!这是我的文件“r.conf”

<Location /RApacheInfo>
SetHandler r-info
</Location>
<Location /R>
SetHandler r-script
RHandler sys.source
</Location>

这是我的 error.log apache 文件。因为太长,我只拍了它的结尾:

      unable to load shared object '/usr/local/lib/R/library/stats/libs/stats.so':
  libRlapack.so: cannot open shared object file: No such file or directory
During startup - Warning message:
package 'stats' in options("defaultPackages") was not found 
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/usr/local/lib/R/library/stats/libs/stats.so':
  libRlapack.so: cannot open shared object file: No such file or directory
During startup - Warning message:
package 'stats' in options("defaultPackages") was not found 
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/usr/local/lib/R/library/stats/libs/stats.so':
  libRlapack.so: cannot open shared object file: No such file or directory
During startup - Warning message:
package 'stats' in options("defaultPackages") was not found 
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/usr/local/lib/R/library/stats/libs/stats.so':
  libRlapack.so: cannot open shared object file: No such file or directory
During startup - Warning message:
package 'stats' in options("defaultPackages") was not found 
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/usr/local/lib/R/library/stats/libs/stats.so':
  libRlapack.so: cannot open shared object file: No such file or directory
During startup - Warning message:
package 'stats' in options("defaultPackages") was not found 
[Tue Dec 15 18:40:12 2015] [error] [client ::1] rApache Notice!
Error in eval(expr, envir, enclos) : could not find function "rnorm"
Traceback:
3: eval(expr, envir, enclos)
2: eval(exprs[i], envir)
1: sys.source(file = "/var/www/R/test.R", envir = .rAenv)
[Tue Dec 15 18:40:14 2015] [error] [client ::1] rApache Notice!
Error in eval(expr, envir, enclos) : could not find function "rnorm"
Traceback:
3: eval(expr, envir, enclos)
2: eval(exprs[i], envir)
1: sys.source(file = "/var/www/R/test.R", envir = .rAenv)
[Tue Dec 15 18:40:15 2015] [error] [client ::1] rApache Notice!
Error in eval(expr, envir, enclos) : could not find function "rnorm"
Traceback:
3: eval(expr, envir, enclos)
2: eval(exprs[i], envir)
1: sys.source(file = "/var/www/R/test.R", envir = .rAenv)

当我尝试放置一些 php/html 代码时,只要它不在 localhost/R 中,它就可以工作。我放在这里的每个代码都会给我这个“内部服务器错误”。我已经尝试从 0 安装它两次,结果相同。希望你能帮助我:)

【问题讨论】:

  • apache 错误日志中有任何信息吗?我的水晶正在维护中,我猜不出你的服务器会告诉你什么。

标签: php r debian rapache


【解决方案1】:

我终于找到了如何让它工作! 你可以在这篇文章中找到它: https://groups.google.com/forum/#!topic/rapache/axLb5PsS9LY 很高兴 :) 解决了

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-07-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-10
    相关资源
    最近更新 更多