【发布时间】:2016-02-03 00:25:19
【问题描述】:
RGBDSLAM 安装要求devil
$ rosdep install rgbdslam
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
rgbdslam: No definition of [libdevil-dev] for OS [osx]
但是当我尝试安装恶魔时,我得到了这个:
$ brew install devil
Error: devil cannot be built with any available compilers.
To install this formula, you may need to:
brew install gcc
$ brew install gcc
Warning: gcc-5.3.0 already installed
我该如何解决这个问题?
注意:我已经安装了 xcode 以及 命令行工具。
** 编辑 libdevIL 安装 **
由于某种原因,当 devIL 正在寻找 gcc 时 gcc 5 没有注册,所以我不得不降级到 4.9。
$ brew rm gcc // removes 5
$ brew install gcc49 // installs 4.9
$ brew install devil // works
$ brew install gcc // two gcc installed? this might be interesting
虽然 rgbdslam 仍然没有检测到 libdevIL,但不确定是什么。
【问题讨论】:
-
为了完整起见,也许尝试安装任何来自 AppStore 的更新,再次运行
xcode-select --install以防你升级了 OSX,然后brew rm gcc后跟brew install gcc以排除任何更新不一致。 -
@MarkSetchell 好推荐,但没有运气。
-
which gcc 给你什么?
-
@gurghet /usr/bin/gcc