linux mysql xrog_DBRECOVER for MySQL 在Linux 7上启动失败问题:Graphics Device initialization failed for : es...

在Linux 7环境下,启动DBRECOVER for MySQL时遇到GUI无法启动的问题,错误日志显示'Graphics Device initialization failed'。此问题由于未安装gtk2和libXtst.x86_64导致。解决方案是通过yum安装这两个依赖包,成功解决启动失败的故障。
摘要由CSDN通过智能技术生成

01fac6460a22031b8af8da5848698a70.png

症状为使用mobaxterm 登录操作系统后,DBRECOVER for MySQL 在Linux 7上启动失败,GUI无法启动,日志报错为:

[root@ora7 dbrecover-for-mysql-2006]# less dbrecover-for-mysql.log.txt

Graphics Device initialization failed for : es2, sw

Error initializing QuantumRenderer: no suitable pipeline found

java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found

at com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280)

at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:221)

at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:248)

at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:209)

at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:675)

at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:337)

at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)

Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found

at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94)

at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)

at java.lang.Thread.run(Thread.java:748)

Exception in thread "main" java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)

Caused by: java.lang.RuntimeException: No toolkit found

at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:260)

at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:209)

at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:675)

at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:337)

at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)

... 5 more

这是因为gtk 2没有安装导致的;虽然没装gtk2,但是可以启动xclock。

解决方法为,安装gtk2和libXtst.x86_64:

yum install gtk2 libXtst.x86_64 xclock xorg-x11-xauth.x86_64 unzip

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

* base: mirrors.aliyun.com

* extras: mirrors.aliyun.com

* updates: mirrors.aliyun.com

base | 3.6 kB 00:00:00

extras | 2.9 kB 00:00:00

updates | 2.9 kB 00:00:00

(1/2): extras/7/x86_64/primary_db | 205 kB 00:00:00

(2/2): updates/7/x86_64/primary_db | 3.0 MB 00:00:00

Resolving Dependencies

--> Running transaction check

---> Package gtk2.x86_64 0:2.24.31-1.el7 will be installed

--> Finished Dependency Resolution

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Ubuntu Xorg是Ubuntu操作系统中的一个图形服务器。它负责处理形界面的显示和用户输入设备的交互。通过Xorg,用户可以在Ubuntu上运行图形化的应用程序和窗口管理器。 在某些情况下,用户可能希望关闭Xorg图形界面并使用纯命令行界面。这可以提高系统的性能和稳定性,并减少对显存的占用。 关闭Xorg图形界面可以通过在Ubuntu中切换到TTY(终端)来实现。TTY是文本终端,在TTY中,用户可以使用命令行界面来执行各种操作和任务。 要在Ubuntu中关闭Xorg图形界面并切换到TTY,可以按下Ctrl+Alt+F2(或其他F键)。这将在TTY2中打开一个命令行界面。在TTY中,用户可以使用命令行工具进行配置、管理和操作系统。 通过关闭Xorg图形界面并切换到TTY,用户可以提高系统的性能,减少显存的占用,并在需要时执行纯命令行任务。这对于一些资源要求较高的任务和调试操作非常有用。<span class=&quot;em&quot;>1</span><span class=&quot;em&quot;>2</span><span class=&quot;em&quot;>3</span> #### 引用[.reference_title] - *1* *3* [2021-07-28_Ubuntu18.04如何关闭Xorg图形界面使用tty纯命令跑程序?](https://blog.csdn.net/betterman2017/article/details/119189590)[target=&quot;_blank&quot; data-report-click={&quot;spm&quot;:&quot;1018.2226.3001.9630&quot;,&quot;extra&quot;:{&quot;utm_source&quot;:&quot;vip_chatgpt_common_search_pc_result&quot;,&quot;utm_medium&quot;:&quot;distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2&quot;}}] [.reference_item style=&quot;max-width: 50%&quot;] - *2* [ubuntu16.04开机登录后一直蓝屏解决方法](https://blog.csdn.net/li707414287/article/details/119179930)[target=&quot;_blank&quot; data-report-click={&quot;spm&quot;:&quot;1018.2226.3001.9630&quot;,&quot;extra&quot;:{&quot;utm_source&quot;:&quot;vip_chatgpt_common_search_pc_result&quot;,&quot;utm_medium&quot;:&quot;distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2&quot;}}] [.reference_item style=&quot;max-width: 50%&quot;] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值