2012-11-25 85 views
0

我一直在試圖安裝linecache19以下instructionslinecache19紅寶石1.9.3-P194和RVM

curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem 
gem install linecache19-0.5.13.gem -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p194/ 

我似乎能夠運行curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem就好了,但是當我運行gem install linecache19-0.5.13.gem -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p194/我得到這個輸出:

ERROR: Could not find a valid gem 'linecache19-0.5.13.gem' (>= 0) in any repository 
ERROR: Possible alternatives: linecache193 

我在我的rails應用程序的根目錄中運行所有這些命令。

編輯 我使用RubyMine的,所以我覺得我有年紀較大的調試工具,堅持

EDIT 2 我得到這個訪問RubyGems的頁面,並從網上下載linecache19工作然後從下載目錄中運行gem install

+0

我建議開源ruby-debug並去更新的[https://rubygems.org/gems/debugger](debugger)gem。它具有相同的界面,但是維護和使用1.9.3。 –

+0

@Beerlington感謝您提供的信息,問題已更新(我正在使用RubyMine) –

+0

請參閱我的系統中的完整安裝日誌,它可能有所幫助:http://pastebin.com/qUhrH88U。請參閱http://stackoverflow.com/a/10325110/104891以獲取正確的'Gemfile'。 – CrazyCoder

回答

0

當我嘗試curl寶石時,有什麼不對勁。當我訪問rubyforge網站並手動下載gem時,一切正常。