网站开发区银川网站开发
网站开发区,银川网站开发,dw制作asp网站模板,音乐网站素材ubuntu20.04 使用matlab R2023b 起因步骤问题问题1问题2问题3 起因
闲着没事#xff0c;想在ubuntu上安装matlab。
步骤
这个博客写得很好#xff0c;我就不赘述了#xff1a;参考博客 。但有点不一样#xff1a;我现在matlab官网上下载的linux版本不是iso镜像文件… ubuntu20.04 使用matlab R2023b 起因步骤问题问题1问题2问题3 起因
闲着没事想在ubuntu上安装matlab。
步骤
这个博客写得很好我就不赘述了参考博客 。但有点不一样我现在matlab官网上下载的linux版本不是iso镜像文件直接是一个zip压缩文件不用什么挂载了。直接解压缩然后再运行install文件。后面可以直接点击图标运行matlab。
问题
问题1
运行matlab会报错
Gtk-Message: 15:46:15.337: Failed to load module canberra-gtk-module这篇博客分析的很清楚参考博客 执行这两步就行了
sudo apt-get install libcanberra-gtk-module -ysudo ln -s /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/libcanberra-gtk-module.so /usr/lib/libcanberra-gtk-module.so
问题2
在matlab窗口中可以看到这样的提示
com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x535b6672, isOwner false, 15a2f11f, 7c843551[count 0, qsz 0, owner NULL]]]
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:326)
at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:297)
at java.lang.Thread.run(Unknown Source)
Caused by: com.jogamp.opengl.GLException: glXGetConfig(0x1) failed: error code Unknown error code 6
at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.glXGetConfig(X11GLXGraphicsConfiguration.java:570)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.XVisualInfo2GLCapabilities(X11GLXGraphicsConfiguration.java:500)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationXVisual(X11GLXGraphicsConfigurationFactory.java:434)
at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationStatic(X11GLXGraphicsConfigurationFactory.java:240)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createMutableSurfaceImpl(X11GLXDrawableFactory.java:524)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createDummySurfaceImpl(X11GLXDrawableFactory.java:535)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:283)
... 2 more这篇博客给出了解决办法参考博客 。 也就是先这样启动matlab
./matlab -softwareopengl再在matlab命令行中执行
opengl(save,software)然后退出。以后直接运行./matlab也不会出现上述报错了。
问题3
记录一下 我选了否如果以后出问题来这里排查。 目前没碰到问题在软件中找到matlab图标点击就能运行很方便。以后遇到matlab不用再回到windows了~
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/diannao/88529.shtml
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!