gpt4 book ai didi

ruby - Brew 安装 Ruby-Build 失败并显示 : cannot run C compiled programs

转载 作者:太空宇宙 更新时间:2023-11-03 16:22:57 25 4
gpt4 key购买 nike

我正在尝试使用 Homebrew 安装 ruby​​,但每次尝试时我都会得到这个:

==> Installing dependencies for ruby-build: pkg-config, makedepend, opens
==> Installing ruby-build dependency: pkg-config
==> Downloading http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
Already downloaded: /Library/Caches/Homebrew/pkg-config-0.28.tar.gz
==> ./configure --prefix=/usr/local/Cellar/pkg-config/0.28 --disable-host-tool -
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/private/tmp/pkg-config20150616-3766-1f5xqh9/pkg-config-0.28':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

我该怎么办?

最佳答案

如果你安装了 xcode-beta,你应该像这样运行 commond:

sudo xcode-select -switch /Applications/Xcode-beta.app/Contents/Developer

关于ruby - Brew 安装 Ruby-Build 失败并显示 : cannot run C compiled programs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30872048/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com