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

Aru*_*Das 11 ruby rubygems

运行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.
Run Code Online (Sandbox Code Playgroud)

小智 22

我遇到了同样的错误。我尝试了以下操作,错误消失了。希望它可以帮助你。

  1. 使用以下命令更新ruby最新版本 2.7.0p0

    sudo apt-get install ruby-full build-essential
    
    Run Code Online (Sandbox Code Playgroud)
  2. 重新运行bundle install