我该如何修复此错误?我已经安装了https://github.com/qupath/qupath/releases/download/v0.3.2/QuPath-0.3.2-Linux.tar.xz从積路官方网站。
jalal@manu:~/QuPath/bin$ ls
total 1524
-rw-rw-r-- 1 jalal jalal 156 Jan 17 03:51 QuPath.sh
-rw-rw-r-- 1 jalal jalal 1546304 Jan 17 03:51 QuPath
drwxrwxr-x 4 jalal jalal 4096 Jan 17 03:51 ..
drwxrwxr-x 2 jalal jalal 4096 Jan 17 03:51 .
jalal@manu:~/QuPath/bin$ bash QuPath
QuPath: QuPath: cannot execute binary file
jalal@manu:~/QuPath/bin$ QuPath
QuPath: command not found
jalal@manu:~/QuPath/bin$ ./QuPath.sh
bash: ./QuPath.sh: Permission denied
jalal@manu:~/QuPath/bin$ chmod +x QuPath.sh
jalal@manu:~/QuPath/bin$ ./QuPath.sh
./QuPath.sh: line 5: /home/jalal/QuPath/bin/QuPath: Permission denied
jalal@manu:~/QuPath/bin$ ls
total 1524
-rwxrwxr-x 1 jalal jalal 156 Jan 17 03:51 QuPath.sh
-rw-rw-r-- 1 jalal jalal 1546304 Jan 17 03:51 QuPath
drwxrwxr-x 4 jalal jalal 4096 Jan 17 03:51 ..
drwxrwxr-x 2 jalal jalal 4096 Jan 17 03:51 .
jalal@manu:~/QuPath/bin$ chmod 777 QuPath
jalal@manu:~/QuPath/bin$ chmod 777 QuPath.sh
jalal@manu:~/QuPath/bin$ sudo ./QuPath.sh
[sudo] password for jalal:
OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated and will be removed in a future release.
Apr 14, 2022 3:44:49 PM com.sun.javafx.application.PlatformImpl startup
WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @60975100'
Exception in thread "main" java.lang.UnsupportedOperationException: Unable to open DISPLAY
at com.sun.glass.ui.gtk.GtkApplication.lambda$new$6(GtkApplication.java:181)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at com.sun.glass.ui.gtk.GtkApplication.<init>(GtkApplication.java:179)
at com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(GtkPlatformFactory.java:41)
at com.sun.glass.ui.Application.run(Application.java:146)
at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:291)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:293)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:163)
at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:659)
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:679)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196)
at java.base/java.lang.Thread.run(Unknown Source)
Failed to launch JVM
我有:
jalal@manu:~$ ls QuPath*
-rw-rw-r-- 1 jalal jalal 200289784 Jan 17 05:38 QuPath-0.3.2-Linux.tar.xz
QuPath:
total 16
drwxrwxr-x 4 jalal jalal 4096 Jan 17 03:51 lib
drwxrwxr-x 2 jalal jalal 4096 Jan 17 03:51 bin
drwxrwxr-x 4 jalal jalal 4096 Jan 17 03:51 .
drwxr-xr-x 25 jalal jalal 4096 Apr 14 15:43 ..
和:
jalal@manu:~$ lsb_release -a
LSB Version: core-9.20170808ubuntu1-noarch:printing-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
jalal@manu:~$ uname -a
Linux manu 5.4.0-105-generic #119~18.04.1-Ubuntu SMP Tue Mar 8 11:21:24 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
还:
jalal@manu:~$ javac --version
javac 11.0.14.1
jalal@manu:~$ java --version
openjdk 11.0.14.1 2022-02-08
OpenJDK Runtime Environment (build 11.0.14.1+1-Ubuntu-0ubuntu1.18.04)
OpenJDK 64-Bit Server VM (build 11.0.14.1+1-Ubuntu-0ubuntu1.18.04, mixed mode, sharing)
我正在使用 No Machine 客户端运行 Ubuntu Desktop。我的客户端安装在 CentOS 7 中,No Machine 服务器安装在 Ubuntu 20.04 上。我在两台机器上都是 sudoer。
进一步说明:No Machine 客户端 GUI 位于 CentOS7 上,No Machine 服务器位于 Ubuntu 20.04 上。我正在从 Ubuntu 20.04 运行 QuPath 的二进制文件。当我坐在 Ubuntu 20.04 机器前时,QuPath 二进制文件运行没有问题。