Рубин: не может найти синатру
Я пытаюсь использовать приложение (redmon: https://github.com/steelThread/redmon), упакованное в драгоценный камень ruby. Не могли бы вы помочь мне запустить его?
Я установил Redmon так:
tasks:
- name: "Install redmon (redis)"
tags:
- redis
become: yes
gem: name="{{ item }}" user_install=no state=latest
with_items:
- redmon
environment:
http_proxy: "{{ prx.http }}"
https_proxy: "{{ prx.https }}"
- name: "Update Ruby gems (redis)"
tags:
- redis
become: yes
command: gem update --system
environment:
http_proxy: "{{ prx.http }}"
https_proxy: "{{ prx.https }}"
Но когда я пытаюсь подключиться к локальному экземпляру Redis, я получаю следующую ошибку:
$ redmon --port 16384 --lifespan 60 --redis redis://127.0.0.1:6384
/usr/local/share/ruby/site_ruby/rubygems/dependency.rb:308:in `to_specs': Could not find 'sinatra' (>= 0) among 16 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/home/app/.gem/ruby:/usr/share/gems:/usr/local/share/gems', execute `gem env` for more information
from /usr/local/share/ruby/site_ruby/rubygems/specification.rb:1439:in `block in activate_dependencies'
from /usr/local/share/ruby/site_ruby/rubygems/specification.rb:1428:in `each'
from /usr/local/share/ruby/site_ruby/rubygems/specification.rb:1428:in `activate_dependencies'
from /usr/local/share/ruby/site_ruby/rubygems/specification.rb:1410:in `activate'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_gem.rb:68:in `block in gem'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_gem.rb:67:in `synchronize'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_gem.rb:67:in `gem'
from /usr/local/bin/redmon:22:in `<main>'
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.6.11
- RUBY VERSION: 2.0.0 (2015-12-16 patchlevel 648) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/app/.gem/ruby
- USER INSTALLATION DIRECTORY: /home/app/.gem/ruby
- RUBY EXECUTABLE: /usr/bin/ruby
- EXECUTABLE DIRECTORY: /home/app/bin
- SPEC CACHE DIRECTORY: /home/app/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/app/.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/
- SHELL PATH:
- /usr/local/bin
- /usr/bin
- /usr/local/sbin
- /usr/sbin
- /home/app/.local/bin
- /home/app/bin
Не могли бы вы помочь мне и посоветовать, пожалуйста, как решить эту проблему?