簡體   English   中英

不能再在OSX上運行ruby

[英]Can no longer run ruby on osx

我嘗試運行之前運行了很多次的ruby腳本,但是收到以下錯誤:

~/dev/ruby > ruby foo.rb
Could not find backports-2.3.0 in any of the sources
Run `bundle install` to install missing gems.
~/dev/ruby > bundle install
Could not find backports-2.3.0 in any of the sources
Run `bundle install` to install missing gems.
~/dev/ruby > rvm list

rvm rubies

   ruby-1.8.6-p399 [ i686 ]
   ruby-1.8.7-p249 [ i686 ]
   ruby-1.8.7-p334 [ i686 ]
   ruby-1.9.1-p378 [ i386 ]
=> ruby-1.9.2-p180 [ x86_64 ]
 * ruby-1.9.2-p290 [ x86_64 ]
   ruby-1.9.2-preview1 [ i386 ]
   ruby-1.9.3-p0 [ x86_64 ]
   ruby-1.9.3-p125 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

自從上次運行該程序以來,我尚未更改任何RVM設置,並且對backports.3.0沒有做任何事情。

我當前正在運行帶有RVM 1.10.3的OSX 10.6.8。 嘗試執行任何ruby命令時出現錯誤。

也許您需要在Gemfile的頂部包含source :rubygems

檢查Gemfile,確保它讀取此內容

gem "backports", "~> 2.3.0"

然后再次運行捆綁軟件。 如果問題仍然存在,請嘗試

sudo gem uninstall backports

然后再次運行捆綁安裝。

暫無
暫無

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

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