From: Eric C. <ech...@gm...> - 2010-02-22 18:10:49
|
On Sun, Feb 21, 2010 at 11:54 PM, Allison Newman <dem...@ma...> wrote: > Hi Eric, > > OK, the first thing to know is that you don't need to recompile ruby > to add in bindings. Bindings are added by using Ruby extensions. > Basically, at start up, the Ruby interpreter looks in a well-known > location in your file system, and runs any native extensions that it > finds there. I don't know if you've already worked with Ruby > extensions, but if not, this is pretty much the canonical reference > for them: > http://ruby-doc.org/docs/ProgrammingRuby/html/ext_ruby.html Thanks. > > > Out of curiousity, what makes you think that Tk bindings have been > removed in Snow Leopard (I'm still on Leopard, so I can't test it)? > > Alli Personal experience -- >> require 'tk' LoadError: no such file to load -- tk from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from (irb):1 >> Also, I read it on the Web. I don't remember the exact page now, but I did just find this one: <http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/22e0e72994155258> Sure enough, there is no tk.rb under /System/Library/Frameworks/Ruby.framework. When I have time I will try recompiling it. Now that I think about it, I downloaded and installed RubyCocoa, so that should have overwritten the RubyCocoa that came with the OS, right? Or would that just replace the Cocoa-specific parts, and leave the core Ruby stuff in place? (If I compile my own Ruby, I don't want to lose the Cocoa-specific parts.) |