尝试安装光泽时出现以下错误:

Configuring OpenGLRaw-1.5.0.1...
Failed to install OpenGLRaw-1.5.0.1
Build log ( /home/<homdir>/.cabal/logs/OpenGLRaw-1.5.0.1.log ):
Configuring OpenGLRaw-1.5.0.1...
setup-Simple-Cabal-1.18.1.5-x86_64-linux-ghc-7.8.4: Missing dependency on a
foreign library:
* Missing C library: GL
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags

通常,我会尝试根据通常的命名约定安装libgl-dev,但没有此类库。

最佳答案

对于大多数缺少的C库,很明显要安装什么。对于openGL则不是这样。对我来说,安装以下软件包会使事情再次发生变化。

sudo apt-get install freeglut3 freeglut3-dev

关于opengl - 在Ubuntu上安装Gloss(特别是OpenGLRaw依赖项)时的"* Missing C library: GL",我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/28518168/

10-10 08:10