Ruby 冲刺及;Openhab

Ruby 冲刺及;Openhab,ruby,rubygems,dashing,openhab,Ruby,Rubygems,Dashing,Openhab,我正在尝试启动openhab Dash项目,但仍然有相同的错误。当我尝试使用示例项目时,一切开始都很完美,但OpenHab项目却不是这样 user@server:~/dashboard$ dashing start /usr/local/lib/ruby/gems/2.0.0/gems/backports-3.6.7/lib/backports/std_lib.rb:9:in `require': cannot load such file -- data_mapper (LoadError)

我正在尝试启动openhab Dash项目,但仍然有相同的错误。当我尝试使用示例项目时,一切开始都很完美,但OpenHab项目却不是这样

user@server:~/dashboard$ dashing start
/usr/local/lib/ruby/gems/2.0.0/gems/backports-3.6.7/lib/backports/std_lib.rb:9:in `require': cannot load such file -- data_mapper (LoadError)
        from /usr/local/lib/ruby/gems/2.0.0/gems/backports-3.6.7/lib/backports/std_lib.rb:9:in `require_with_backports'
        from /home/jopo/dashboard/lib/settings.rb:1:in `<top (required)>'
        from /usr/local/lib/ruby/gems/2.0.0/gems/backports-3.6.7/lib/backports/std_lib.rb:9:in `require'
        from /usr/local/lib/ruby/gems/2.0.0/gems/backports-3.6.7/lib/backports/std_lib.rb:9:in `require_with_backports'
        from /usr/local/lib/ruby/gems/2.0.0/gems/dashing-1.3.4/lib/dashing/app.rb:157:in `block in require_glob'
        from /usr/local/lib/ruby/gems/2.0.0/gems/dashing-1.3.4/lib/dashing/app.rb:156:in `each'
        from /usr/local/lib/ruby/gems/2.0.0/gems/dashing-1.3.4/lib/dashing/app.rb:156:in `require_glob'
        from /usr/local/lib/ruby/gems/2.0.0/gems/dashing-1.3.4/lib/dashing/app.rb:166:in `<top (required)>'
        from /usr/local/lib/ruby/gems/2.0.0/gems/dashing-1.3.4/lib/dashing.rb:3:in `require'
        from /usr/local/lib/ruby/gems/2.0.0/gems/dashing-1.3.4/lib/dashing.rb:3:in `<top (required)>'
        from config.ru:1:in `require'
        from config.ru:1:in `block in <main>'
        from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval'
        from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize'
        from config.ru:1:in `new'
        from config.ru:1:in `<main>'
        from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.4/lib/rack/adapter/loader.rb:33:in `eval'
        from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.4/lib/rack/adapter/loader.rb:33:in `load'
        from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.4/lib/thin/controllers/controller.rb:182:in `load_rackup_config'
        from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.4/lib/thin/controllers/controller.rb:72:in `start'
        from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.4/lib/thin/runner.rb:200:in `run_command'
        from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.4/lib/thin/runner.rb:156:in `run!'
        from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.4/bin/thin:6:in `<top (required)>'
        from /usr/local/bin/thin:23:in `load'
        from /usr/local/bin/thin:23:in `<main>'
user@server:~/dashboard$快速启动
/usr/local/lib/ruby/gems/2.0.0/gems/backports-3.6.7/lib/backports/std_lib.rb:9:在'require'中:无法加载此类文件--数据映射器(LoadError)
从/usr/local/lib/ruby/gems/2.0.0/gems/backports-3.6.7/lib/backports/std_lib.rb:9:in“带_backports的require_”
from/home/jopo/dashboard/lib/settings.rb:1:in`'
from/usr/local/lib/ruby/gems/2.0.0/gems/backports-3.6.7/lib/backports/std_lib.rb:9:in“require”
从/usr/local/lib/ruby/gems/2.0.0/gems/backports-3.6.7/lib/backports/std_lib.rb:9:in“带_backports的require_”
from/usr/local/lib/ruby/gems/2.0.0/gems/dashing-1.3.4/lib/dashing/app.rb:157:“请求中的块”
from/usr/local/lib/ruby/gems/2.0.0/gems/dashing-1.3.4/lib/dashing/app.rb:156:在'each'中
from/usr/local/lib/ruby/gems/2.0.0/gems/dashing-1.3.4/lib/dashing/app.rb:156:in“require_glob”
from/usr/local/lib/ruby/gems/2.0.0/gems/dashing-1.3.4/lib/dashing/app.rb:166:in`'
from/usr/local/lib/ruby/gems/2.0.0/gems/dashing-1.3.4/lib/dashing.rb:3:in'require'
from/usr/local/lib/ruby/gems/2.0.0/gems/dashing-1.3.4/lib/dashing.rb:3:in`'
from config.ru:1:in'require'
from config.ru:1:in'block in'
from/usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in'instance_eval'
from/usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in'initialize'
from config.ru:1:in'new'
from config.ru:1:in`'
from/usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.4/lib/rack/adapter/loader.rb:33:in'eval'
from/usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.4/lib/rack/adapter/loader.rb:33:in'load'
从/usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.4/lib/thin/controllers/controller.rb:182:“加载机架配置”中
from/usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.4/lib/thin/controllers/controller.rb:72:in'start'
from/usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.4/lib/thin/runner.rb:200:in'run_命令'
from/usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.4/lib/thin/runner.rb:156:in'run!'
from/usr/local/lib/ruby/gems/2.0.0/gems/thin-1.6.4/bin/thin:6:in`'
from/usr/local/bin/thin:23:in'load'
from/usr/local/bin/thin:23:in`'

我需要在哪里搜索解决方案?

它缺少一个ruby gem。试着用

sudo gem install datamapper

做了,但没有结果。我用apt-get安装了:libsqlite3-dev包,还安装了gem-install-data_-mapper。但是还是和上面一样的错误。你是如何安装openhab(package/gem/source)的?您是如何安装dashing的?能否检查dashing是否使用与shell中响应的ruby安装相同的ruby安装(您安装了data\u mapper)?错误日志显示ruby位于/usr/local/bin中。默认情况下,ruby不是在Debian/Ubuntu中安装apt-get的,我在home/user目录中安装了dash。并创建了一个新的仪表板,之后我实现了Openhab设置和文件。我安装的数据映射器带有说明:“sudo apt get install libsqlite3 dev”和“gem install data_mapper”。当我删除或隐藏settings.rb文件时,我用apt-get的经典方法进行了ruby安装,其中使用了require'data_mapper'。我可以启动dashing/openhab仪表板。所以我必须安装data_mapper。或者可能没有sqlite:persistent.db可用?