Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/364.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java GraalVm错误:libgfortran.so.3,用于在Node(Ubuntu)中运行R代码_Java_R_Node.js_Ubuntu_Graalvm - Fatal编程技术网

Java GraalVm错误:libgfortran.so.3,用于在Node(Ubuntu)中运行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

我正在使用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 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