ruby 安装racc(1.6.0)时出错,Bundler无法继续

vqlkdk9b  于 12个月前  发布在  Ruby
关注(0)|答案(2)|浏览(145)

运行bundle时出现以下错误

An error occurred while installing racc (1.6.0), and Bundler cannot continue.
Make sure that `gem install racc -v '1.6.0' --source 'https://rubygems.org/'` succeeds before bundling.
x7yiwoj4

x7yiwoj41#

我也犯了同样的错误。我尝试了以下操作,错误消失了。希望能帮到你。
1.使用以下命令将ruby更新为the latest version 2.7.0p0

sudo apt-get install ruby-full build-essential

1.重新运行bundle install

nnvyjq4y

nnvyjq4y2#

对我来说(MacOS索诺马14.0),根本问题最终是this "Failed to build gem native extension" problem。解决方案为:

xcode-select --install

然后点击是下载。
您可能还需要检查您是否同意Xcode许可证。

相关问题