ruby-processing app.rb错误

时间:2014-06-21 13:38:31

标签: ruby gem rubygems

我是这个论坛的新手,我想问一个问题。我在我的linux(Ubuntu发行版)机器上安装了ruby-processing。我想创建艺术,但是当我尝试运行我的代码时,我收到此错误消息:

rp5运行sketch.rb

/usr/local/rvm/gems/ruby-1.9.3-p448/gems/ruby-processing-2.4.4/lib/ruby-processing/app.rb:8: /usr/local/rvm/gems/ruby-1.9.3-p448/gems/ruby-processing-2.4.4/lib/ruby-processing/app.rb:45: , unexpected ':' (SyntaxError)

    mouse_pressed:  :mousePressed,
                  ^
from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/ruby-processing-2.4.4/lib/ruby-processing/app.rb:8:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/ruby-processing-2.4.4/lib/ruby-processing/runners/base.rb:8
from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/ruby-processing-2.4.4/lib/ruby-processing/runners/base.rb:6:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/ruby-processing-2.4.4/lib/ruby-processing/runners/run.rb:6

我查看了app.rb文件,但我似乎无法理解为什么会出现此错误。我非常感谢你的帮助。

亲切的问候 千斤顶

0 个答案:

没有答案