Reputation: 46
gem list -r ra
=> * REMOTE GEMS * but no gems appear
gem list
=> (my installed gems)
ruby -v
=> ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]
gem -v
=> 2.7.3
gem environment
RubyGems Environment:
GEM PATHS:
GEM CONFIGURATION:
REMOTE SOURCES:
SHELL PATH:
I haven't changed anything (that I'm aware of) in my ruby since when it did work. Any suggestions on where to look?
Upvotes: 0
Views: 802
Reputation: 11186
well looks like you have no sources. see in gem env "gem" => "--no-document"
try running this:
gem sources -a https://rubygems.org/
my env differs by:
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["https://rubygems.org/"]
- "benchmark" => false
- "gem" => "--no-rdoc --no-ri"
can you paste output of ~/.gemrc
to make sure? Mine looks like:
---
:backtrace: false
:bulk_threshold: 1000
:sources:
- https://rubygems.org/
:update_sources: true
:verbose: true
benchmark: false
gem: "--no-rdoc --no-ri"
If this doesn't work, perhaps try installing ruby using rvm https://rvm.io/rvm/install
Upvotes: 0