From: Haris Bogdanovi� on 19 Sep 2009 13:40 Hi.Line 2 produces an error:1 require "wx" 2 include Wx after starting I get this: uninitialized constant Wx (NameError) from wx.rb:1:in `require' from wx.rb:1 >Exit code: 1 Can you tell me why is this happening ?Thanks.
From: Haris Bogdanovi� on 19 Sep 2009 13:43 "Haris Bogdanovi�" <fbogdanovi(a)xnet.hr> wrote in message news:h9352r$1fq$1(a)gregory.bnet.hr... > Hi.Line 2 produces an error:1 require "wx" > 2 include Wx > > after starting I get this: > > uninitialized constant Wx (NameError) > from wx.rb:1:in `require' > from wx.rb:1 >>Exit code: 1 > Can you tell me why is this happening ?Thanks. Why is my text all scrambled ? I use outlook express > >
From: Tim Hunter on 19 Sep 2009 14:23 Haris Bogdanovi� wrote: > Hi.Line 2 produces an error:1 require "wx" > 2 include Wx > > after starting I get this: > > uninitialized constant Wx (NameError) > from wx.rb:1:in `require' > from wx.rb:1 >> Exit code: 1 > Can you tell me why is this happening ?Thanks. Any chance your test program is named wx.rb? If so, change it. -- MagickWand for Ruby - http://magickwand.rubyforge.org/
From: Haris Bogdanovi� on 19 Sep 2009 14:25 I named my file wx.rb. That was the cause. Can anybody explain why ? Doesn't really matter know but I would like to know anyway. Thanks. "Haris Bogdanovi�" <fbogdanovi(a)xnet.hr> wrote in message news:h9352r$1fq$1(a)gregory.bnet.hr... > Hi.Line 2 produces an error:1 require "wx" > 2 include Wx > > after starting I get this: > > uninitialized constant Wx (NameError) > from wx.rb:1:in `require' > from wx.rb:1 >>Exit code: 1 > Can you tell me why is this happening ?Thanks. >
From: Tim Hunter on 19 Sep 2009 14:47 Haris Bogdanovi� wrote: > I named my file wx.rb. > That was the cause. > Can anybody explain why ? > Doesn't really matter know but I would like to know anyway. > Because Ruby looks in your current directory for files that you require, so when you required 'wx' it found your test file. You can find out what directories Ruby searches by running this command: ruby -e"puts $:" -- MagickWand for Ruby - http://magickwand.rubyforge.org/
|
Pages: 1 Prev: Hpricot segfault OSX - ruby1.9.1 Next: Writing to STDOUT after closing controlling terminal |