安装nokogiri失败

报错如下:

An error occurred while installing nokogiri (1.10.10), and Bundler cannot continue.

Make sure that `gem install nokogiri -v '1.10.10' --source 'https://gems.ruby-china.com/'` succeeds before bundling.

 

我解决的办法:

sudo apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev

然后:bundle

posted @ 2020-11-25 10:04  吕兴杰  阅读(213)  评论(0编辑  收藏  举报