简体   繁体   English

在rails上创建db时出现rails错误(rails db:create)

[英]The error of rails when create db on rails (rails db:create)

When I rails db:create after I rails new and bundle install, there is the error as the below.当我在 rails new 和 bundle install 之后 rails db:create 时,出现如下错误。

rails aborted: LoadError: cannot load such file -- nokogiri/nokogiri rails aborted: LoadError: cannot load such file -- nokogiri/nokogiri

Please teach me how to solve this error.请教我如何解决这个错误。 my situation ruby version → 2.6.0 rails version → 6.1.2我的情况 ruby 版本→2.6.0 rails 版本→6.1.2

Try sudo apt-get install nokogiri to install nokogiri.尝试sudo apt-get install nokogiri来安装 nokogiri。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM