背景:在centos7.9上直接通过commend命令打开没有任何问题,但通过qsub 打开就提示错误
错误报错如下:
Error: could not open command log file "/usr/lib64/qt5/plugins/platforms/rt_shell_command.log" (CMD-015)
Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem
排查经过:
1、首先:和可以正常qsub的主机对比qt安装包,均正常安装,没有少包
2、打开debug模式---->export QT_DEBUG_PLUGINS=1
3、qsub xxxxx ,发现是缺少某个so库文件libxkbcommon-x11.so.0
4、通过 yum provides libxkbcommon-x11.so.0 找到需要安装的软件
a、libxkbcommon-x11-0.7.1-3.el7.i686
b、libxkbcommon-x11-0.7.1-3.el7.x86_64
5、yum install libxkbcommon-x11-0.7.1-3.el7.i686 libxkbcommon-x11-0.7.1-3.el7.x86_64 解决