开发者

SciTe + Ruby sh: ruby: not found

I've been running programs from scite and it's no longer开发者_Go百科 working. I get the error message sh: ruby: not found even when I write a simple test program like puts "hello".

When I pull up the Ruby properties in SciTe I find this:

if PLAT_WIN
command.go.*.rb=ruby $(FileNameExt)
command.go.subsystem.*.rb=1
command.go.*.rbw=rubyw $(FileNameExt)
command.go.subsystem.*.rbw=1
command.help.*.rb=$(CurrentWord)!c:\apps\ruby\ProgrammingRuby.chm
command.help.subsystem.*.rb=4

if PLAT_GTK command.go.*.rb=ruby $(FileNameExt)

command.name.1.*.rb=Check Syntax
command.1.*.rb=ruby -cw $(FileNameExt)

command.name.2.*.rb=Code Profiler
command.2.*.rb=ruby -r profile $(FileNameExt)


Can you check the ruby-properties in scite?

In Scite: Options -> Open ruby properties

Then look for the definition with 'command.go'

It should look similar to this:

command.compile.*.rb=call ocra $(FileNameExt)
command.build.*.rb=c:\program files\ruby19\bin\ruby -w $(FileNameExt)
command.go.*.rb=c:\program files\ruby19\bin\ruby $(FileNameExt)

Check the path you defined in the properties with your settings.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜