From: Arlen Christian Mart Cuss Date: 2007-09-27T01:09:25+09:00 Subject: Re: Getting started with Ruby (noob confusion) On Sun, 2007-09-23 at 08:41 +0900, 7stud -- wrote: > Nunya Business wrote: > > > >> Tk can be used with Ruby, as well. > > > > require 'tk' > > root = TkRoot.new {title "Test"} > > TkLabel.new(root) do > text "Hello, World!" > pack('padx' => 15, 'pady' => 15, 'side' => 'left') > end > > Tk.mainloop > > > dyld: NSLinkModule() error > dyld: Library not loaded: /usr/X11R6/lib/libX11.6.dylib > Referenced from: /usr/lib/ruby/1.8/universal-darwin8.0/tcltklib.bundle > Reason: image not found > Trace/BPT trap I must admit, I've never used Tk with Ruby before. I use Ubuntu, so I install the libtk-ruby package, enter your code as you write above, and voila! Sounds like your OS' problem, not Ruby's. Take it up with the vendor! Arlen