我有一个 Dashing 仪表板,并希望在其中使用 Dashing EC2 Cloudfront 小部件。小部件的要点在这里https://gist.github.com/jwalton/6614087和 Dashing 在这里http://shopify.github.io/dashing/#widgets
我让 RVM 管理我的 ruby 和 gems,并安装了 aws-sdk gem 以及所有其他 gem。
#lib/dashing_ec2.rb 文件导致需要 aws-sdk 的错误
当我研究 Backports 并没有发现任何相关的东西时,我不确定从这里该怎么做。
这是来自 Dashing 的 thin.log 的错误:
/home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require': cannot load such file -- aws-sdk (LoadError)
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require_with_backports'
from /opt/opsdash/lib/dashing_ec2.rb:3:in `<top (required)>'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require_with_backports'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/dashing-1.3.2/lib/dashing.rb:162:in `block in <top (required)>'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/dashing-1.3.2/lib/dashing.rb:162:in `each'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/dashing-1.3.2/lib/dashing.rb:162:in `<top (required)>'
from config.ru:1:in `require'
from config.ru:1:in `block in <main>'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from config.ru:1:in `new'
from config.ru:1:in `<main>'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/thin-1.6.2/lib/rack/adapter/loader.rb:33:in `eval'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/thin-1.6.2/lib/rack/adapter/loader.rb:33:in `load'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/thin-1.6.2/lib/thin/controllers/controller.rb:182:in `load_rackup_config'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/thin-1.6.2/lib/thin/controllers/controller.rb:72:in `start'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/thin-1.6.2/lib/thin/runner.rb:199:in `run_command'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/thin-1.6.2/lib/thin/runner.rb:155:in `run!'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/gems/thin-1.6.2/bin/thin:6:in `<top (required)>'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/bin/thin:23:in `load'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/bin/thin:23:in `<main>'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/bin/ruby_executable_hooks:15:in `eval'
from /home/ubuntu/.rvm/gems/ruby-2.1.2@dashing/bin/ruby_executable_hooks:15:in `<main>'