installation - 在 Mac Mojave 安装 Ros 动力学
问题描述
我正在尝试按照本指南在我的 mac 中安装 ros kinetic 。(我已经安装并更新了自制软件)在指南的第一步中,我运行命令行:
brew tap ros/deps
这让我回到以下错误
==> Tapping ros/deps
Cloning into '/usr/local/Homebrew/Library/Taps/ros/homebrew-deps'...
remote: Enumerating objects: 11, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 11 (delta 0), reused 4 (delta 0), pack-reused 0
Unpacking objects: 100% (11/11), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/ros/homebrew-deps/gfortran.rb
Calling MacOS.prefer_64_bit? is disabled! There is no replacement.
Please report this to the ros/deps tap:
/usr/local/Homebrew/Library/Taps/ros/homebrew-deps/gfortran.rb:15
Error: Cannot tap ros/deps: invalid syntax in tap!
这是我的brew --config
HOMEBREW_VERSION: 2.0.3-28-gd8c6f6b
ORIGIN: https://github.com/Homebrew/brew
HEAD: d8c6f6b12075a06a9837f6fce920ccd07a36ca4c
Last commit: 21 minutes ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 7be50eb2d1dbe7aa885ce349279f71baadca87c6
Core tap last commit: 17 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.uz5VqgRPje/org.macosforge.xquartz:0
HOMEBREW_LOGS: /Users/giuliopettenuzzo/Library/Logs/Homebrew
CPU: quad-core 64-bit broadwell
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 9.0 build 900
Git: 2.14.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.8.0_131
macOS: 10.14.2-x86_64
CLT: N/A
Xcode: 9.2
XQuartz: 2.7.11 => /opt/X11
这是我遇到的错误brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
python@2
numpy
Warning: Your Xcode (9.2) is too outdated.
Please update to Xcode 10.1 (or delete it).
Xcode can be updated from the App Store.
Warning: Your Xcode (9.2) is outdated.
Please update to Xcode 10.1 (or delete it).
Xcode can be updated from the App Store.
这个错误避免我在我的 mac mojave 中安装 ross kinetic,请帮助我。
解决方案
https://github.com/ros/homebrew-deps
我将此存储库放入/usr/local/Homebrew/Library/Taps/ros/homebrew-dep,然后在gfortran.rb中,将“MacOS.prefer_64_bit”修改为“MacOS.is_64_bit”。并再次运行“brew tap ros/deps”。
它适用于我的 Mac。
推荐阅读
- python-3.x - 将模型部署为 Unity 可用版本的相关步骤是什么?
- android - 如何确定 Android 库是否支持 AAB 构建?
- javascript - 如何在 reactable 中使用聚合函数来显示与另一列的最小值或最大值相关的值?
- c# - 使用 System.Text.Json 反序列化形状奇特的数据
- css - 如何解决链接在 woocommerce 侧边栏打开时无法在移动设备上运行的问题?
- c++ - 将元素从 std::string 推送到字符串类型堆栈时出错
- vue.js - 如何更改根 Vue 实例上的道具?
- google-cloud-platform - 如何在虚拟机实例中应用滚动更新,而不是在 GCP 中使用托管实例组?
- javascript - 如何从 webpack 包中提取 Babel 生成的代码到一个新的块中
- excel - 使用列表突出显示文本字符串