debian wheezy 上的 Rapache 不适用于 R 3.1.2

Rapache on debian wheezy doesn't work with R 3.1.2

我尝试在 debian 上安装 rapache 已经有很长时间了。我确实遵循了本教程:http://blog.binfalse.de/2011/05/28/r-for-the-web/ 并且我使它工作但是使用旧的 R (1.2.5) 我确实以完全相同的方式重复安装但是使用 R (3.1.2) 我有 "Internal Server Error" 当我键入 "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 中,它就可以工作。我放在这里的每个代码都给我这个 "Internal Server Error"。我已经尝试从 0 安装它两次,结果相同。希望你能帮助我:)

我终于找到了如何让它发挥作用!! 您可以在 post 上找到它: https://groups.google.com/forum/#!topic/rapache/axLb5PsS9LY 很高兴 :) 已解决