OSX Mojave上的ROS动力学安装错误



在我的mac上安装ROS动能的过程中。我一直在尝试使用以下命令来解决依赖关系:

$ cd ~/ros_catkin_ws
$ rosinstall_generator ros_comm --rosdistro kinetic --deps --wet-only --tar > kinetic-ros_comm-wet.rosinstall
$ wstool init -j8 src kinetic-ros_comm-wet.rosinstall
$ rosdep install --from-paths src --ignore-src --rosdistro kinetic -y # resolves dependancies

我得到以下错误:

Error: No available formula with the name "gtest" 
ERROR: Rosdep experienced an internal error.
Please go to the rosdep page [1] and file a bug report with the message below.
[1] : http://www.ros.org/wiki/rosdep
rosdep version: 0.13.0
Bad installer [homebrew]: Error while parsing brew info for 'gtest'
* Output of `brew info gtest --json=v1`:
* Error while parsing:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/rosdep2/platforms/osx.py", line 203, in is_installed
pkg_info = json.loads(std_out)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

我试过卸载和重新安装一些东西,但我不确定实际问题是什么,也不知道如何解决。

如指南中所述,Google Mock与OS X不兼容,因此应跳过将--skip-keys google-mock添加到rosdep install

相关内容

  • 没有找到相关文章

最新更新