运行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.
x7yiwoj41#
我也犯了同样的错误。我尝试了以下操作,错误消失了。希望能帮到你。1.使用以下命令将ruby更新为the latest version 2.7.0p0:
ruby
sudo apt-get install ruby-full build-essential
1.重新运行bundle install
bundle install
nnvyjq4y2#
对我来说(MacOS索诺马14.0),根本问题最终是this "Failed to build gem native extension" problem。解决方案为:
xcode-select --install
然后点击是下载。您可能还需要检查您是否同意Xcode许可证。
2条答案
按热度按时间x7yiwoj41#
我也犯了同样的错误。我尝试了以下操作,错误消失了。希望能帮到你。
1.使用以下命令将
ruby
更新为the latest version 2.7.0p0:1.重新运行
bundle install
nnvyjq4y2#
对我来说(MacOS索诺马14.0),根本问题最终是this "Failed to build gem native extension" problem。解决方案为:
然后点击是下载。
您可能还需要检查您是否同意Xcode许可证。