无法安装正确版本的SQLite3 for Rails应用

时间:2019-02-12 22:08:42

标签: ruby-on-rails sqlite rubygems

我正在尝试在Rails中启动一个应用程序,但是我被这个阻止了:

LoadError: Error loading the 'sqlite3' Active Record adapter. Missing a gem it 
depends on? can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. 
Make sure all dependencies are added to Gemfile.

但是我已经卸载了所有版本的SQLite3并尝试安装1.3.6,但是我只是得到了这一点:

ERROR:  Could not find a valid gem '1.3.6' (>= 0) in any repository
1 gem installed

根据this answer,这可能是因为rubygems.org关闭了,所以我尝试了以下方法:

traceroute rubygems.org

返回以下内容:

traceroute: Warning: rubygems.org has multiple addresses; using 151.101.128.70
traceroute to rubygems.org (151.101.128.70), 64 hops max, 52 byte packets
 1  192.168.0.1 (192.168.0.1)  3.260 ms  2.445 ms  3.005 ms
 2  * * *
 3  10.3.69.38 (10.3.69.38)  18.196 ms  20.517 ms  16.249 ms
 4  189.202.16.145.cable.dyn.cableonline.com.mx (189.202.16.145)  40.200 ms  
 23.218 ms  38.053 ms
 5  189.202.16.65.cable.dyn.cableonline.com.mx (189.202.16.65)  28.350 ms  
 26.587 ms  28.483 ms
 6  126.189-204-129.clientesbestel.com.mx (189.204.129.126)  29.104 ms  38.330 
 ms  24.105 ms
 7  ppcs-dfo40-dfx02-001-bestelmex01.bestel.com.mx (200.57.2.201)  55.884 ms
  130.189-204-204.clientesbestel.com.mx (189.204.204.130)  53.268 ms  60.241 ms
 8  * * *
 9  * * *
 10  * * *
 .......(continued)
 64  * * *

我不确定这是否意味着rubygems.org的连接是否有问题。如果有人对问题可能有什么想法,我将不胜感激指针:-)

0 个答案:

没有答案