簡體   English   中英

RubyGems沒有更新或安裝最新版本的Rails 3.2.7

[英]RubyGems not updating or installing the lastest version of Rails 3.2.7

我已經嘗試運行以下命令將我的Rails版本從版本3.2.6更新到版本3.2.7但沒有成功。

gem update rails
Updating installed gems
Nothing to update

-

gem install rails
# Output
# 1 gem installed
# Installing ri documentation for rails-3.2.6...
# Installing RDoc documentation for rails-3.2.6...

-

gem install rails -v 3.2.7
ERROR:  Could not find a valid gem 'rails' (= 3.2.7) in any repository
ERROR:  Possible alternatives: rails

-

我已經嘗試清除我的Rubygem緩存,我的源列表如下

*** CURRENT SOURCES ***

http://rubygems.org/
http://gems.github.com/

任何幫助深表感謝。

謝謝,WD

我現在已經解決了這個問題。

由於我已經擁有最新版本的Rubygems,我無法弄清楚為什么安裝會獲得以前版本的Rails(3.2.6)。 以下是我最終安裝Rails 3.2.7的方法。

# Remove all sources (clear the cache    
gem sources -c

# Remove sources
gem sources -r http://rubygems.org/
gem sources -rhttp://gems.github.com/

# Add source
gem sources -a http://rubygems.org/

# Note: I changed the uri from HTTP to HTTPS

# Update source cache
gem sources -u

現在,我安裝了Rails 3.2.7。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM