在Ubuntu安装gloss(特别是OpenGLRaw依赖项)时出现“缺少C库:GL”的错误。

11

尝试安装Gloss时,我遇到了以下错误:

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,但是没有这样的库。

1个回答

18

对于大多数缺失的C库,安装该库很明显;但是对于openGL不是这样。 对我来说,安装以下软件包使事情重新开始运行。

sudo apt-get install freeglut3 freeglut3-dev

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接