OpenGL 源:Libglu1-mesa-dev 依赖于 libglu1-mesa (= 8.0.2-0ubuntu3),但需要安装 8.0.4-0ubuntu0.7

OpenGL 源:Libglu1-mesa-dev 依赖于 libglu1-mesa (= 8.0.2-0ubuntu3),但需要安装 8.0.4-0ubuntu0.7

尝试安装 R 包(rgl用于制作三维图)时,R 出现以下错误:

配置:错误:缺少必需的标题 GL/glu.h 错误:包“rgl”配置失败

因此我了解到 glu.h 是来自 OpenGL 的源文件,并且我应该安装包中的“Mesa OpenGL 实用程序库”的源libglu1-mesa-dev

因此,我尝试安装这个包,但是它抱怨依赖关系:

$sudo apt-get install libglu1-mesa-dev

libglu1-mesa-dev: Depends: libglu1-mesa (= 8.0.2-0ubuntu3) but
8.0.4-0ubuntu0.7 is to be installed

系统

Ubuntu 12.04.5 LTS

$lspci | grep VGA

00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core
Processor Integrated Graphics Controller (rev 06) 

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mars XTX [Radeon HD 8790M]


$sudo apt-get -f install

Reading package lists... Done 
Done Building dependency tree        
Reading state information... Done
Done 0 upgraded, 0 newly installed, 0 to remove
and 1 not upgraded.

我可以修复或绕过这个依赖问题来安装吗libglu1-mesa-dev

相关内容