r - 初始 Rattle 问题 (Os)“错误:-with-x11”和“错误:gtk+ 2.24.32 未构建”
问题描述
我一直在尝试使用以下说明将我的操作系统上的 Rattle 安装到我的 R 中: https ://zhiyzuo.github.io/installation-rattle/
我到第 7 行并输入
~$ brew install --with-x11 cairo
然后得到
Updating Homebrew...
Usage: brew install [options] formula|cask
Install a formula or cask. Additional options specific to a formula may be
appended to the command.
Unless HOMEBREW_NO_INSTALL_CLEANUP is set, brew cleanup will then be run for
the installed formulae or, every 30 days, for all formulae.
...
**Error: invalid option: --with-x11**'''
我已经尝试在没有“--with-x11”的情况下继续安装 Cairo(正如建议他们不再支持那样)。所以我只做了“brew install cairo”就行了。
我转到第 9 行 现在我们可以通过以下方式安装 gtk+:~$ brew install --build-from-source --verbose gtk+
我得到:
**Error: gtk+ 2.24.32 did not build
Logs:
/Library/Logs/Homebrew/gtk+/00.options.out
/Library/Logs/Homebrew/gtk+/01.configure.cc
/Library/Logs/Homebrew/gtk+/config.log
/Library/Logs/Homebrew/gtk+/01.configure
READ THIS: https://docs.brew.sh/Troubleshooting'''
如果这对最后一部分有帮助,我在终端中看到的内容是:
==> ./configure --disable-dependency-tracking --disable-silent-rules - -prefix=/usr/local/Cellar/gtk+/2.24.32_3 --disable-glibtest --enable-introspection=yes --with-gdktarget=x11 --enable-x11-backend
configure: WARNING: unrecognized options: --enable-x11-backend
和
configure: error: Package requirements (cairo-xlib >= 1.6) were not met:
找不到包 'cairo-xlib' 如果您以非标准前缀安装软件,请考虑调整 PKG_CONFIG_PATH 环境变量。
或者,您可以设置环境变量 CAIRO_BACKEND_CFLAGS 和 CAIRO_BACKEND_LIBS 以避免调用 pkg-config。有关更多详细信息,请参见 pkg-config 手册页。
有人对此有什么建议吗?
谢谢。
解决方案
推荐阅读
- c++ - 为什么 std::random_device 类成员会导致段错误?
- node.js - Firebase Cloud Functions 调用如何计算?
- dav-file - 我需要用于测试目的的示例 dav 文件
- android-studio - 使用不包含 Navigator 的上下文请求的 Navigator 操作。(生成器函数不会显示 MainPage())
- c# - 无法在 ML.NET 中加载文件或程序集 System.Numeric.Vectors
- java - 如何在 android studio 中向 CountDownTimer 添加变量?
- java - 如何摆脱对“compareTo(T)”警告的未经检查的调用?
- reactjs - 道具通过时反应未定义
- apache-flink - Flink Streaming Job 执行图分析
- windows - 制作一个批处理脚本转发一个IP