ruby/tk failing on snowleopard

joseph davison jwdavison at me.com
Fri Dec 4 07:51:27 PST 2009


I've installed ruby+mactk (and thread-support or whatever is standard there) as well as tcl and tk from macports and it's set up as my primary ruby (i.e. first on my PATH).

Ruby appears to be working fine (my unit tests on previous projects all pass).  However, when I attempt to run ruby/tk programs that worked on Leopard, they fail on Snow Leopard.

The error message I see is:  

/opt/local/lib/ruby/1.8/i686-darwin10/tcltklib.bundle: dlopen(/opt/local/lib/ruby/1.8/i686-darwin10/tcltklib.bundle, 9): Symbol not found: _Tk_Init (LoadError)
  Referenced from: /opt/local/lib/ruby/1.8/i686-darwin10/tcltklib.bundle
  Expected in: flat namespace
 in /opt/local/lib/ruby/1.8/i686-darwin10/tcltklib.bundle - /opt/local/lib/ruby/1.8/i686-darwin10/tcltklib.bundle
	from /opt/local/lib/ruby/1.8/tk.rb:6
	from ./ctext_browser_view.rb:1:in `require'
	from ./ctext_browser_view.rb:1
	from ./CryptoBrowser:3:in `require'
	from ./CryptoBrowser:3

Someone have a clue for me?  Thanks.

joe


More information about the macports-users mailing list