在raspbian上使用破折号时出错

时间:2016-10-04 04:31:03

标签: ruby linux raspberry-pi

我试图在树莓(1)上使用raspj(jessie lite)实现潇洒。 一旦我安装了raspbian,我已经成功完成了以下事情:

sudo apt-get update sudo apt-get install libssl-dev sudo apt-get install ruby​​-dev sudo apt-get install nodejs sudo apt-get install bundler sudo apt-get install ruby​​gems sudo gem install dashing

sudo dashing new dashboard_project

我收到以下错误:

/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require': no such file to load -- json (LoadError) from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in require'         来自/var/lib/gems/1.8/gems/dashing-1.3.7/lib/dashing/downloader.rb:3         来自/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require' from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in require'         来自/var/lib/gems/1.8/gems/dashing-1.3.7/bin/dashing:7         来自/ usr / local / bin / dashing:23:在'load'中         来自/ usr / local / bin / dashing:23

你知道我该怎么做吗?

谢谢!

1 个答案:

答案 0 :(得分:1)

发布'gem list json'以查看是否已安装json模块。如果没有,那么尝试使用'gem install json'进行安装。