无法在 Ubuntu 64 位 14.04LTS 上运行 Nightrain,请帮忙

无法在 Ubuntu 64 位 14.04LTS 上运行 Nightrain,请帮忙
$ ./nightrain
Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "/home/naetech/Applications/Repositories/pyinstaller/PyInstaller/loader/pyi_importers.py", line 270, in load_module
  File "/home/naetech/Sites/nightrain/build/nightrain/out00-PYZ.pyz/Classes.GUI", line 7, in <module>
  File "/home/naetech/Applications/Repositories/pyinstaller/PyInstaller/loader/pyi_importers.py", line 270, in load_module
  File "/home/naetech/Sites/nightrain/build/nightrain/out00-PYZ.pyz/wx.html2", line 8, in <module>
  File "/home/naetech/Applications/Repositories/pyinstaller/PyInstaller/loader/pyi_importers.py", line 414, in load_module
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

答案1

该库libGL.so.1是下面的包的一部分,通过命令列出apt-file search --regex libGL\.so\.1$ | awk -F: '{print $1}'

fglrx
fglrx-updates
libgl1-mesa-glx
nvidia-304
nvidia-304-updates
nvidia-340
nvidia-340-updates
nvidia-346
nvidia-346-updates
primus-libs

因此,如果您有 AMD GPU:

sudo apt-get install fglrx fglrx-updates

对于 NVidia,更好看这里...

相关内容