J
James Edward Gray II
Is it possible to get a pure aqua TK running through Ruby on Mac OS X?
Can anyone point me to the steps?
James Edward Gray II
Can anyone point me to the steps?
James Edward Gray II
Is it possible to get a pure aqua TK running through Ruby on Mac OS X?
Can anyone point me to the steps?
James Edward Gray II
There is that page which helped me when I explored Tk with Perl or Ruby:James said:Is it possible to get a pure aqua TK running through Ruby on Mac OS X?
Can anyone point me to the steps?
James Edward Gray II
If you use the apple installed ruby its all ofIs it possible to get a pure aqua TK running through Ruby on Mac OS X?
Can anyone point me to the steps?
James Edward Gray II
If you use the apple installed ruby its all of
require 'tk' # Aqua GUI -- done
This may even work with a ruby installed from source, because I
believe the
magic is actually in the Tcl/Tk libs, not ruby.
tcltklib is the part that requires tcltk iirc.
Perhaps the extconf did not find the tk libraries when you were
compiling ruby?
Message-ID: said:$ ruby -r tk -e1
/usr/local/lib/ruby/1.8/tk/event.rb:397: undefined method
`_define_attribute_aliases' for CallbackSubst:Class (NoMethodError)
from /usr/local/lib/ruby/1.8/tk.rb:804
From: James Edward Gray II <[email protected]>
Subject: Re: Mac OS X TK
Date: Sat, 26 Nov 2005 01:50:23 +0900
It loads older version of 'tkutil.so'.
Please check it based on 'tkutil.c' included in the same source
archive of the 'event.rb'.
Message-ID: said:Hmm, I assume that means the --enable-mac-tcltk-framework option
doesn't correctly point Ruby at Tiger's magic TK library.
Maybe, threre is an old tkutil.so which has higher priority
on the load path, or a newer tkutil.so is not installed because
you fail to compile tkutil.c.
Message-ID: said:If tkutil.so is supposed to be in Ruby's lib directories, it's not
there. Is there another place I should be looking for it?
What could cause it not to build?
From: James Edward Gray II <[email protected]>
Subject: Re: Mac OS X TK
Date: Sun, 27 Nov 2005 01:09:28 +0900
I don't know the directory name of Ruby's dynamic library on MacOS X.
But the directory is a sub-directory of the Ruby's library directory.
For example, in my env, that is "/usr/local/lib/ruby/1.8/i686-linux".
# Which sourse archive do you use?
# Old version of archive (e.g. ruby-1.8.2) doesn't support
# tcltk-framework of the latest MacOS X.
Message-ID: said:Neo:~$ ruby -e 'p $:'
["/usr/local/lib/ruby/site_ruby/1.8", "/usr/local/lib/ruby/site_ruby/
1.8/powerpc-darwin8.3.0", "/usr/local/lib/ruby/site_ruby", "/usr/
local/lib/ruby/1.8", "/usr/local/lib/ruby/1.8/powerpc-darwin8.3.0", "."]
Neo:~$ ls /usr/local/lib/ruby/1.8/powerpc-darwin8.3.0/t*
/usr/local/lib/ruby/1.8/powerpc-darwin8.3.0/tcltklib.bundle
/usr/local/lib/ruby/1.8/powerpc-darwin8.3.0/tkutil.bundle
From: James Edward Gray II <[email protected]>
Subject: Re: Mac OS X TK
Date: Sun, 27 Nov 2005 03:28:18 +0900
Message-ID: said:Neo:~$ ruby -e 'p $:'
["/usr/local/lib/ruby/site_ruby/1.8", "/usr/local/lib/ruby/site_ruby/
1.8/powerpc-darwin8.3.0", "/usr/local/lib/ruby/site_ruby", "/usr/
local/lib/ruby/1.8", "/usr/local/lib/ruby/1.8/powerpc-
darwin8.3.0", "."]
Neo:~$ ls /usr/local/lib/ruby/1.8/powerpc-darwin8.3.0/t*
/usr/local/lib/ruby/1.8/powerpc-darwin8.3.0/tcltklib.bundle
/usr/local/lib/ruby/1.8/powerpc-darwin8.3.0/tkutil.bundle
Hmm... Don't you have tkutil.* in
"/usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.3.0" ?
^^^^^^^^^
If don't, that is very strange.
I don't understand what is happen in your environment.
Can 'ext/tcltklib/README.1st' ('ext/tk/README.tcltklib' on
ruby-1.8.4 or 1.9) help you?
Is it possible to get a pure aqua TK running through Ruby on Mac OS X?
Can anyone point me to the steps?
Message-ID: said:I read those and tried building Ruby 1.8.2 with:
./configure --enable-pthread --with-tcllib=tcl8.4 --with-tklib=tk8.4
--with-tcl-dir=/usr --with-tk-dir=/usr --with-tcltk-framework=/System/
Library/Frameworks --with-tcl-framework-header=/System/Library/
Frameworks/Tcl.framework/Headers/ --with-tk-framework-header=/System/
Library/Frameworks/Tk.framework/Headers/
I'm still seeing errors:
/usr/local/lib/ruby/1.8/tk/event.rb:397: undefined method
`_define_attribute_aliases' for CallbackSubst:Class (NoMethodError)
from /usr/local/lib/ruby/1.8/tk.rb:804
from rrobots.rb:106:in `require'
from rrobots.rb:106
The change about _define_attribute_aliases was done at
'Mon Jun 13 17:07:25 2005 UTC'.
# TkUtil::RELEASE_DATE was updated at 'Tue Jun 14 11:48:48 2005 UTC'.
Please check the RELEASE_DATEs by
If that is right, two or more sources or binaries are mixed in
your environment.
Message-ID: said:$ /usr/local/bin/ruby -r tk -e 'p TclTkLib::RELEASE_DATE; p
Tk::RELEASE_DATE; p TkUtil::RELEASE_DATE'
/usr/local/lib/ruby/1.8/tk/event.rb:397: undefined method
`_define_attribute_aliases' for CallbackSubst:Class (NoMethodError)
from /usr/local/lib/ruby/1.8/tk.rb:804
I pull a fresh copy of the Ruby source whenever I try to build. I
have however upgraded to 1.8.3 and 1.8.4pr1, then downgraded back to
1.8.2. Could my library directories be messed up by this process?
Message-ID: said:I read those and tried building Ruby 1.8.2 with:
./configure --enable-pthread --with-tcllib=tcl8.4 --with-tklib=tk8.4
--with-tcl-dir=/usr --with-tk-dir=/usr --with-tcltk-framework=/System/
Library/Frameworks --with-tcl-framework-header=/System/Library/
Frameworks/Tcl.framework/Headers/ --with-tk-framework-header=/System/
Library/Frameworks/Tk.framework/Headers/
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.