Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running gem mirror produces error implying rubygems-mirror is not installed? #45

Open
salderma opened this issue May 31, 2016 · 1 comment

Comments

@salderma
Copy link

Hi, I'm not sure what's going on here this is the first time I've run across an issue like this with ruby gems. I've installed the gem with out error, gem list shows it:

$ gem list

*** LOCAL GEMS ***

bigdecimal (1.2.0)
bundler (1.12.5)
colored (1.2)
cri (2.6.1)
faraday (0.9.2)
faraday_middleware (0.10.0)
highline (1.7.8)
hoe (3.15.0)
io-console (0.4.2)
json (1.7.7)
log4r (1.1.10)
minitar (0.5.4)
multi_json (1.12.1)
multipart-post (2.0.0)
net-http-persistent (2.9.4, 2.8)
psych (2.0.0)
puppet-lint (1.1.0)
puppet_forge (2.2.1)
r10k (2.3.0)
rake (0.9.6)
rdoc (4.0.0)
rgen (0.6.6)
rubygems-mirror (1.1.0)
semantic_puppet (0.1.3)

I've set ~/.gem/.mirrorrc as follows (basically cut and paste) -

$ cat ~/.gem/.mirrorrc 

---
- from: http://rubygems.org
  to: /home/localadm/rubygems
  parallelism: 10
  retries: 3
  delete: false
  skiperror: true

Executing gem mirror --help produces expected help output -

$ gem mirror --help
Usage: gem mirror [options]


  Common Options:
    -h, --help                       Get help on this command
    -V, --[no-]verbose               Set the verbose level of output
    -q, --quiet                      Silence commands
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging
<snip>

Executing gem mirror command produces the following error -

$ gem mirror
ERROR:  Install the rubygems-mirror gem for the mirror command

My gem environment is as follows -

$ gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 2.0.14
  - RUBY VERSION: 2.0.0 (2014-11-13 patchlevel 598) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/localadm/.gem/ruby
  - RUBY EXECUTABLE: /usr/bin/ruby
  - EXECUTABLE DIRECTORY: /home/localadm/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/localadm/.gem/ruby
     - /usr/share/gems
     - /usr/local/share/gems
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/

Am I missing some other dependency that doing a gem install would not satisfy? Any guidance would be appreciated!

@scurvy
Copy link

scurvy commented Aug 27, 2016

Also running into this issue, so would appreciate any help here. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants