gpt4 book ai didi

java - 配置 : error: Could not detect the location of the Java shared library. 您将需要更新 java.m4 以添加对此 JVM 配置的支持

转载 作者:太空宇宙 更新时间:2023-11-04 10:42:08 27 4
gpt4 key购买 nike

我目前使用的是 Ubuntu 16.04

我正在从源代码安装 scilab,如下所述:https://wiki.scilab.org/Compilation%20of%20Scilab

我拥有所有先决条件,例如 C 编译器和 Fortran 编译器,如下所述:https://www.scilab.org/download/requirements

但是当我在终端上输入 ./configure 时,出现以下错误。

Looking for JNI libs with x86_64 as machine hardware name
Looking for /usr/lib/jvm/java-9-oracle/jre/lib/x86_64/libjava.so
Looking for /usr/lib/jvm/java-9-oracle/jre/lib/amd64/libjava.so
Looking for /usr/lib/jvm/java-9-oracle/jre/lib/i386/client/libjvm.so
Looking for /usr/lib/jvm/java-9-oracle/jre/bin/classic/libjvm.so
Looking for /usr/lib/jvm/java-9-oracle/lib/jvm.lib
Looking for /usr/lib/jvm/java-9-oracle/jre/lib/mipsel/libjava.so
configure: error: Could not detect the location of the Java
shared library. You will need to update java.m4
to add support for this JVM configuration.

enter image description here

我已经尝试按照这个答案在linux中设置环境变量LD_LIBRARY_PATH:How to set the environmental variable LD_LIBRARY_PATH in linux正如我所读到的,这可能会解决问题 (here) 。任何线索将不胜感激。

最佳答案

您需要重新安装 OpenJDK 或 OracleJDK。
这可能会有所帮助:

sudo add-apt-repository ppa:linuxuprising/java  
sudo apt update
sudo apt install oracle-java10-installer

关于java - 配置 : error: Could not detect the location of the Java shared library. 您将需要更新 java.m4 以添加对此 JVM 配置的支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48851999/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com