首页 > 解决方案 > 初始 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 手册页。

有人对此有什么建议吗?

谢谢。

标签: rhomebrewrattle

解决方案


推荐阅读