且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Could not find gem 'sqlite3 (>= 0) x64-mingw32' in any of the gem sources listed in your Gemfile

更新时间:2022-09-05 11:41:13

版权声明:本文为 testcs_dn(微wx笑) 原创文章,非商用***转载-保持署名-注明出处,谢谢。 https://blog.csdn.net/testcs_dn/article/details/50274651
Could not find gem 'sqlite3 (>= 0) x64-mingw32' in any of the gem sources listed in your Gemfile or available on this machine.  

Run `bundle install` to install missing gems. 


在 windows下搭建Ruby Rails Web开发环境 时遇到这个问题,

出现此问题的原因是:没有安装sqlite3

安装sqlite3

执行命令:gem install sqlite3-ruby

[plain] view plaincopy
  1. C:\ruby>gem install sqlite3-ruby  
  2. Fetching: sqlite3-1.3.11-x64-mingw32.gem (100%)  
  3. Successfully installed sqlite3-1.3.11-x64-mingw32  
  4. Fetching: sqlite3-ruby-1.3.3.gem (100%)  
  5.   
  6. #######################################################  
  7.   
  8. Hello! The sqlite3-ruby gem has changed it's name to just sqlite3.  Rather than  
  9. installing `sqlite3-ruby`, you should install `sqlite3`.  Please update your  
  10. dependencies accordingly.  
  11.   
  12. Thanks from the Ruby sqlite3 team!  
  13.   
  14. <3 <3 <3 <3  
  15.   
  16. #######################################################  
  17.   
  18. Successfully installed sqlite3-ruby-1.3.3  
  19. Parsing documentation for sqlite3-1.3.11-x64-mingw32  
  20. Installing ri documentation for sqlite3-1.3.11-x64-mingw32  
  21. Parsing documentation for sqlite3-ruby-1.3.3  
  22. Installing ri documentation for sqlite3-ruby-1.3.3  
  23. Done installing documentation for sqlite3, sqlite3-ruby after 1 seconds  
  24. 2 gems installed  
安装过程中可能会出现以下问题:

Could not find gem 'sqlite3 (>= 0) x64-mingw32' in any of the gem sources listed in your Gemfile or available on this machine.  
Run `bundle install` to install missing gems. 
" port 443 (https://api.rubygems.org/quick/Marshal.4.8/sqlite3-ruby-1.3.3.gemspec.rz)
这可能是由于网络的原因,多试几次就好了。