Java GraalVm错误:libgfortran.so.3,用于在Node(Ubuntu)中运行R代码
我正在使用GraalVM运行一个节点应用程序。我的节点代码包含R和Java互操作代码 我使用GraalVM更新程序安装了R:Java GraalVm错误:libgfortran.so.3,用于在Node(Ubuntu)中运行R代码,java,r,node.js,ubuntu,graalvm,Java,R,Node.js,Ubuntu,Graalvm,我正在使用GraalVM运行一个节点应用程序。我的节点代码包含R和Java互操作代码 我使用GraalVM更新程序安装了R: gu安装r 节点程序: const express = require('express') const app = express() const BigInteger = Java.type('java.math.BigInteger') app.get('/', function (req, res) { var text = 'Hello World f
gu安装r
节点程序:
const express = require('express')
const app = express()
const BigInteger = Java.type('java.math.BigInteger')
app.get('/', function (req, res) {
var text = 'Hello World from Graal.js!<br> '
// Using Java standard library classes
text += BigInteger.valueOf(10).pow(100)
.add(BigInteger.valueOf(43)).toString() + '<br>'
// Using R methods to return arrays
text += Polyglot.eval('R',
'ifelse(1 > 2, "no", paste(1:42, c="|"))') + '<br>'
// Using R interoperability to create graphs
text += Polyglot.eval('R',
`svg();
require(lattice);
x <- 1:100
y <- sin(x/10)
z <- cos(x^1.3/(runif(1)*5+10))
print(cloud(x~y*z, main="cloud plot"))
grDevices:::svg.off()
`);
res.send(text)
})
app.listen(3000, function () {
console.log('Example app listening on port 3000!')
})
我还按照GraalVm编译器的建议安装了build essential、gfortran、libxml2和libc++-dev
GraaLVM或UbuntuFastr软件包安装是否存在问题?请使用最新版本的GraaLVM重试。20.1.0已经有几个月的历史了;如果您再次尝试使用20.3.0,您应该可以修复更新版本中包含的许多错误 另外,请注意,错误消息甚至会告诉您在shell上运行特定命令,
/home/.sdkman/candidates/java/20.1.0.r11 grl/languages/R/bin/configure\u fastr
。是你干的吗?那有用吗?结果是什么,有错误吗
谢谢,
Christian这是在运行什么版本的graalvm?
Example app listening on port 3000!
FastR unexpected failure: error loading libR from: /.sdkman/candidates/java/20.1.0.r11-grl/languages/R/lib/libR.so.
Message: libgfortran.so.3: cannot open shared object file: No such file or directory
Troubleshooting:
* Please run /home/.sdkman/candidates/java/20.1.0.r11-grl/languages/R/bin/configure_fastr. It will check that your system has the necessary dependencies and if not it will suggest how to install them.
* If this does not help, please open an issue on https://github.com/oracle/fastr/ or reach us on https://graalvm.slack.com.
/home/server.js:19
text += Polyglot.eval('R',
... other logs