我已经安装了干净的 Ubuntu MATE 18.10 并从这里的存储库安装了 Scilab
sudo apt-get update
sudo apt-get install scilab
安装后,我尝试从 GUI 启动它(应用程序 → 其他 → Scilab) - 它没有启动。
然后我尝试使用scilab
命令从终端启动它。终端输出如下:
$ 科学实验室
拿起_JAVA_OPTIONS:-Djava.class.path=/usr/share/java/flexdock.jar:/usr/share/java/skinlf.jar:/usr/share/java/looks.jar:/usr/share/java /commons-logging.jar:/usr/share/java/jhall.jar:/usr/share/java/lucene-core-4.10.4.jar:/usr/share/java/lucene-analyzers-common-4.10。 4.jar:/usr/share/java/lucene-queryparser-4.10.4.jar:/usr/share/maven-repo/org/freehep/freehep-util/debian/freehep-util-debian.jar:/usr /share/maven-repo/org/freehep/freehep-io/debian/freehep-io-debian.jar:/usr/share/maven-repo/org/freehep/freehep-graphicsio/debian/freehep-graphicsio-debian。 jar:/usr/share/java/freehep-graphicsio-emf-2.1.jar:/usr/share/java/freehep-graphics2d-2.1.1.jar:/usr/share/java/jrosetta-API.jar:/ usr/share/java/jrosetta-engine-1.0.4.jar:/usr/share/java/jgraphx.jar:/usr/share/java/jogl2.jar:/usr/share/java/gluegen2-rt.jar :/usr/share/java/jeuclid-core.jar:/usr/share/java/jlatexmath-fop-1.0.7.jar:/usr/share/java/fop.jar:/usr/share/java/saxon.jar:/usr/share/java/batik.jar: /usr/share/java/xml-apis-ext.jar:/usr/share/java/commons-io.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/avalon- framework.jar:/usr/share/java/jlatexmath-1.0.7.jar:/usr/share/java/ecj.jar:/usr/share/scilab/modules/helptools/jar/org.scilab.modules.helptools .jar:/usr/share/scilab/modules/helptools/jar/scilab_ru_RU_help.jar:/usr/share/scilab/modules/helptools/jar/scilab_images.jar:/usr/share/scilab/modules/helptools/jar/ scilab_en_US_help.jar:/usr/share/scilab/modules/graphic_objects/jar/org.scilab.modules.graphic_objects.jar:/usr/share/scilab/modules/renderer/jar/org.scilab.modules.renderer.jar: /usr/share/scilab/modules/scinotes/jar/org.scilab.modules.scinotes.jar:/usr/share/scilab/modules/localization/jar/org.scilab。modules.localization.jar:/usr/share/scilab/modules/graph/jar/org.scilab.modules.graph.jar:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm。 jar:/usr/share/scilab/modules/preferences/jar/org.scilab.modules.preferences.jar:/usr/share/scilab/modules/scilaber/jar/scilab/modules /gui/jar/org.scilab.modules.gui.jar:/usr/share/scilab/modules/graphic_export/jar/org.scilab.modules.graphic_export.jar:/usr/share/scilab/modules/action_binding/jar /org.scilab.modules.action_binding.jar:/usr/share/scilab/modules/xcos/jar/org.scilab.modules.xcos.jar:/usr/share/scilab/modules/ui_data/jar/org.scilab .modules.ui_data.jar:/usr/share/scilab/modules/types/jar/org.scilab.modules.types.jar:/usr/share/scilab/modules/history_manager/jar/org.scilab.modules.history_manager .jar:/usr/share/scilab/modules/external_objects_java/jar/org.scilab。modules.external_objects_java.jar:/usr/share/scilab/modules/console/jar/org.scilab.modules.console.jar:/usr/share/scilab/modules/history_browser/jar/org.scilab.modules.history_browser。 jar:/usr/share/scilab/modules/javasci/jar/org.scilab.modules.javasci.jar:/usr/share/scilab/modules/completion/jar/org.scilab.modules.completion.jar:/usr /share/scilab/modules/commons/jar/org.scilab.modules.commons.jar:/usr/share/scilab/modules/core/jar/org.scilab.modules.core.jar:--add-modules= java.activation,java.xml.bind/usr/share/scilab/modules/commons/jar/org.scilab.modules.commons.jar:/usr/share/scilab/modules/core/jar/org.scilab.modules.core.jar:--add-模块=java.activation,java.xml.bind/usr/share/scilab/modules/commons/jar/org.scilab.modules.commons.jar:/usr/share/scilab/modules/core/jar/org.scilab.modules.core.jar:--add-模块=java.activation,java.xml.bind
启动层初始化时出错
java.lang.module.FindException: Module java.xml.bind not found
所以我向 LaunchPad 报告了错误 1798661。
看来我需要java.xml.bind
从某个包中获取。
根据在 packages.ubuntu.com 上的搜索,我需要安装openjdk-11-jdk-headless
包,但它在 Ubuntu 18.10 Cosmic 中没有需要的文件。
注意:我不想从 Scilab 网站下载和提取二进制存档(但这是一种解决方法)。我需要使用 APT 的 deb-packages 解决方案。
我还应该尝试什么?
现在 Scilab 被移植到 OpenJDK 11。所以我们必须安装它(如果之前没有安装):
所以我们可以像往常一样从 GUI 使用最新的 scilab 包 6.0.1-7ubuntu1~18.10,但是
scilab-cli
现在scilab-adv-cli
已经坏了(它是新的bug 1825037)。注意 1:Scilab 颜色主题与深色 Gtk 主题不兼容,因此用户应设置浅色(这是错误 1547561),例如Radiance或Radiant-MATE。
注意 2:由于 HDF5 的问题,Scilab ATOMS 系统也被破坏了(参见bug 1765503 )。
为防止出现此错误,我们需要安装我对 Ubuntu 18.04 LTS的回答中所写的二进制版本。