我正在使用带有 4 Gb RAM 的 Raspberry Pi 4,并安装了 Ubuntu MATE 20.10 arm64。
有趣的是 64 位 ARM 的 Scilab 包不包含 modelica 编译器。虽然 32 位软件包有它。
是否有可能获得 arm64 的 modelica 编译器?
我已经安装了干净的 Ubuntu MATE 20.04 LTS 并从这里的存储库安装了 Scilab
sudo apt-get update
sudo apt-get install scilab
安装后,我尝试从 GUI 启动它(应用程序 → 其他 → Scilab) - 它没有启动。
然后我尝试使用scilab
命令从终端启动它。终端输出如下:
$ scilab
...
Scilab cannot create Scilab Java Main-Class (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available).
所以它再也找不到Java了。我报告了关于这个问题的错误 1870813 。但像往常一样,包维护者没有反应。
我应该怎么做才能让 Scilab 6.1.0 在 Ubuntu 20.04 LTS 上运行?
我刚刚结束了 Ubuntu 16.04 LTS 的全新安装。我在这里从官方存储库安装了 Scilab,就像sudo apt-get install scilab
.
然后我尝试从 GUI 启动它,但它没有启动。从终端运行scilab
会得到以下输出:
$ scilab
Could not access to the Main Scilab Class:
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.scilab.modules.localization.Messages.gettext(Unknown Source)
at org.scilab.modules.commons.xml.XConfiguration.<clinit>(Unknown Source)
at org.scilab.modules.core.Scilab.<clinit>(Unknown Source)
Caused by: java.lang.NullPointerException
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1847)
at java.lang.Runtime.loadLibrary0(Runtime.java:871)
at java.lang.System.loadLibrary(System.java:1124)
at org.scilab.modules.localization.MessagesJNI.<clinit>(Unknown Source)
... 3 more
Scilab cannot create Scilab Java Main-Class (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available).
所以它与 Java 和 OpenJDK 有问题。我的系统中只有一个 Java:
$ update-java-alternatives -l
java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64
如何解决 Scilab start 的问题?
我已经安装了干净的 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 6 在 Ubuntu 18.04 上似乎有一些错误,所以我想尝试运行 5.5.2。我从 Scilab 网站下载了二进制文件。当我尝试./scilab
在bin
文件夹中运行时,它给出了一个名为libEGL
许可证的身份验证问题:
$ ./scilab
libEGL warning: DRI2: failed to authenticate
Segmentation fault (core dumped)
有什么解决办法吗?
我已经安装了干净的 Ubuntu MATE 18.04 LTS 并从这里的存储库安装了 Scilab
sudo apt-get update
sudo apt-get install scilab
安装后,我尝试从 GUI 启动它(应用程序 → 其他 → Scilab) - 它没有启动。
然后我尝试使用scilab
命令从终端启动它。终端输出如下:
$ scilab
/usr/bin/scilab-bin: error while loading shared libraries: libjava.so: cannot open shared object file: No such file or directory
所以它找不到Java。我报告了关于这个问题的错误 1762999 。
我检查了是否存在libjava.so
:
$ dpkg -S libjava.so
openjdk-11-jre-headless:amd64: /usr/lib/jvm/java-11-openjdk-amd64/lib/libjava.so
所以它就位。
我应该怎么做才能让 Scilab 6.0.1 在 Ubuntu 18.04 LTS 上运行?
在我的 Ubuntu 17.10 系统上,我从官方网站下载了 Scilab 6.0.0,将其解压缩并尝试启动:
wget http://www.scilab.org/download/6.0.0/scilab-6.0.0.bin.linux-x86_64.tar.gz
tar -xzf scilab-6.0.0.bin.linux-x86_64.tar.gz
cd scilab-6.0.0
bin/scilab
但它不会启动:
$ bin/scilab
Cannot find this look and feel:
[GTK look and feel - com.sun.java.swing.plaf.gtk.GTKLookAndFeel] not supported on this platform
Segmentation fault (core dumped)
如果我尝试手动指定后备 Motif 外观和感觉,我会再次崩溃:
$ _JAVA_OPTIONS='-Dswing.installedlafs=com.sun.java.swing.plaf.motif.MotifLookAndFeel' \
bin/scilab
Picked up _JAVA_OPTIONS: -Dswing.installedlafs=com.sun.java.swing.plaf.motif.MotifLookAndFeel
Segmentation fault (core dumped)
它在 Xorg 和 Wayland 上都崩溃了。
我还应该尝试什么让它工作?