如何在 Mac OS Sierra 中安装 ROS(Kinetic)? [英] How to install ROS(Kinetic) in Mac OS Sierra?
问题描述
我的 macbook pro 系统信息:
- macOS High Sierra
- 10.13.4 版
而且,我正在尝试遵循 Office 指南在我的 macbook 中安装 ros-kinetic-distro 版本.然而,一切都很好,直到进入 initialize-rosdep 步骤:
$ sudo -H rosdep init$ rosdep 更新
问题如下:
<块引用>错误:无法从以下位置下载默认源列表:https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list网站可能已关闭.
所以我必须去网站页面找到这样的建议:
# 操作系统特定的列表优先yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx# 通用的yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yamlyaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yamlyaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yamlgbpdistro https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml fuerte# 不能再列出较新的发行版(Groovy、Hydro、...),而是从 rosdistro index.yaml 中获取它们
我不熟悉 yaml,所以我无法说清楚建议真正的意义.接下来,我必须安装yaml,不幸的是,又出现了一些问题!
所以我安装了 PyYAML,它似乎位于此处:
<块引用>/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
带有文件PyYAML-3.12-py3.6.egg-info.
但是当我将 PATH 导出到我的 .zhsrc 时失败了:
export PATH=/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages:$PATH
<块引用>
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osxzsh:权限被拒绝:yaml
sudo yamlhttps://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx
密码:
sudo: yaml: 命令未找到
那么,我应该怎么做才能以正确的方式配置 yaml-command?而且,最后有没有人成功在 MacBook 中安装 ROS?我真的需要你的帮助!
建议"无关紧要.发生的情况是它试图访问网站以从文件中提取数据,而该网站未能在您的计算机上执行证书验证过程.
很多建议都暗示更新您的证书,但到目前为止,这些建议似乎都没有帮助我.
来自 https://github.com/ros/rosdistro/issues/9721:我遇到了同样的错误并通过更新和升级系统来修复它"
还有:为了解决我安装'ca-certificates'包的错误
sudo apt-get install ca-certificates
然后它对我有用"
My macbook pro system info:
- macOS High Sierra
- Version 10.13.4
And, I'm trying to following the Office Guidings to install ros-kinetic-distro version in my macbook. However, it's all good until come to the initialize-rosdep step:
$ sudo -H rosdep init
$ rosdep update
Here are the problems:
ERROR: cannot download default sources list from: https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list Website may be down.
So I have to go to the website-page find the suggestions like this:
# os-specific listings first
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx
# generic
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
gbpdistro https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml fuerte
# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead
I'm not familiar with yaml, so I can't make it clear what the suggestions real meanings. And next, I have to install yaml, unfortunately, there're comes another pieces of problems!
So I had installed PyYAML which seems located here:
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
with file PyYAML-3.12-py3.6.egg-info.
But failed when I export the PATH into my .zhsrc:
export PATH=/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages:$PATH
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx zsh: permission denied: yaml
sudo yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx
Password:
sudo: yaml: command not found
So, What should I do to config the yaml-command in a right way? And, finally is there anyone make is success to install the ROS in MacBook? I really need your help!
"Suggestions" is irrelevant. What's happening is that it's trying to access a website to pull data from a file and that website is failing a certificate validation process on your machine.
A lot of suggestions hint at updating your certificates, but so far, none of that seems to help me.
From https://github.com/ros/rosdistro/issues/9721: "I got the same error and fixed it by updating and upgrading the system"
Also: "To solve the error I installed 'ca-certificates' package
sudo apt-get install ca-certificates
Then it worked for me"
这篇关于如何在 Mac OS Sierra 中安装 ROS(Kinetic)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!