Linux下 PyopenGL运行libGL报错,解决方案
来源:互联网 发布:端口参数液晶智能电视 编辑:程序博客网 时间:2024/06/18 06:37
在Deepin下运行Python的pyopengl库的时候,会莫名其妙的出现如下错误
libGL error: unable to load driver: i965_dri.solibGL error: driver pointer missinglibGL error: failed to load driver: i965libGL error: unable to load driver: i965_dri.solibGL error: driver pointer missinglibGL error: failed to load driver: i965libGL error: unable to load driver: swrast_dri.solibGL error: failed to load driver: swrastX Error of failed request: GLXBadContext Major opcode of failed request: 156 (GLX) Minor opcode of failed request: 6 (X_GLXIsDirect) Serial number of failed request: 49 Current serial number in output stream: 48X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 156 (GLX) Minor opcode of failed request: 24 (X_GLXCreateNewContext) Value in failed request: 0x0 Serial number of failed request: 48 Current serial number in output stream: 49
根据网上的资料是Anaconda(我使用的是这个商业的python发行版)里面的libstdc++.so文件的问题,它关联不到系统的该驱动,所以我们把它移除,使用Linux自带的libstdc++.so 创建一个软链接在该处。
在shell 执行如下代码
#进入Anaconda libstdc++的存放位置cd /home/sunqi/.pyenv/versions/anaconda3-4.4.0/lib/ mkdir backup #新建一个文件夹保留原来的libstdc++mv libstd* backup #将所有libstdc++文件考入文件夹 包括 软链接#拷贝系统的c++动态链接库在此处cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./ln -s libstdc++.so.6 libstdc++.soln -s libstdc++.so.6 libstdc++.so.6.0.19
问题解决
阅读全文
0 0
- Linux下 PyopenGL运行libGL报错,解决方案
- Linux中启动Steam报错libGL error的解决办法
- linux下scala脚本运行报错error: expected class or object definition 解决方案
- linux下关闭tomcat报错解决方案
- linux 下启动MySQL报错解决方案
- (二)linux下PyOpenGL的安装(1)
- (二)linux下PyOpenGL的安装(2)
- 一个在linux下启动Tomcat报错的解决方案
- Linux下Clion编译Cmake报错的解决方案
- 【解决方案】Linux下aapt解析APK文件报错
- ubuntu 下 安装 PyOpenGL
- linux 下 tomcat 运行报错 Broken pipe
- Linux下,Tomcat运行报错java.lang.OutOfMemoryError
- linux 下 tomcat 运行报错 Broken pipe
- Linux环境下运行Qt程序连接数据库报错
- Floodlight在Linux环境下运行时MatchUtils报错
- 运行eclipse报JVM的错 解决方案
- 【turtlebot】turtlebot运行报错解决方案
- java并发基础(七)--- 加速比、线程开销、减少锁竞争
- 1_电脑知识积累
- Qt: error link1158 无法运行rc.exe
- implements Runnable与extends Thread 的区别
- DFS:695. Max Area of Island
- Linux下 PyopenGL运行libGL报错,解决方案
- Mac上第一个eclipse编译的Hadoop程序
- 用c2制作游戏~
- 深度网络模型压缩
- linux下并行运行脚本与让程序可靠运行
- Fibonacci数列
- PC端不同浏览器的兼容问题及解决方案
- HTML5头部——meta
- ImproperlyConfigured No URL to redirect to. Either provide a url or define a get_absolute_url metho