> TclTk Aqua is shipped with Mac OSX Tiger.
>
> Is it somehow possible to use it with Perl?
> You should be able to do this with the Tcl::Tk module:
>
[quoted text clipped - 6 lines]
> I have not tried this on OS X though, so it is possible that
> the modules don't work out of the box there.
I haven't checked lately, but it used to be that Perl/Tk wouldn't
compile on OS X unless you configured your perl a certain way. This may
have changed since I last looked, but be sure to look over the docs if
you hit any problems, as that might be it.
dha

Signature
David H. Adler - <dha@panix.com> - http://www.panix.com/~dha/
Learned? You must be crazy. Do you think I could play as badly as
this if I had had lessons? - Patrick Troughton
Jan Dubois - 16 May 2006 07:26 GMT
> > You should be able to do this with the Tcl::Tk module:
> >
[quoted text clipped - 11 lines]
> may have changed since I last looked, but be sure to look over the
> docs if you hit any problems, as that might be it.
Tcl::Tk and Tkx don't use the Perl/Tk module; they call the Tcl/Tk code
directly. That way you get access to the latest widgets supported by
Tcl/Tk. Of course you need a working Tcl installation in addition to
just Perl. We use this at ActiveState to create natively themed cross
platform Perl applications for Windows, Linux, Solaris and HP-UX.
I have heard from other people at ActiveState that they got this to work
on OS X too, but I don't remember if they had to do anything special.
Cheers,
-Jan
Manfred Bergmann - 16 May 2006 09:35 GMT
Am 16.05.2006 um 08:26 schrieb Jan Dubois:
>>> You should be able to do this with the Tcl::Tk module:
>>>
[quoted text clipped - 22 lines]
> work
> on OS X too, but I don't remember if they had to do anything special.
I tried Tkx which needs the Tcl module and this module needs to init
tcl and I get an error that the file init.tcl is missing on my
standard Tiger installation.
I know, this a bit offtopic but does anyone know how I can expand the
TCL include path?
The file init.tcl is here:
/System/Library/Frameworks/Tcl.framework/Versions/8.4/Resources/
Scripts/init.tcl
Well, I could symlink the file to where tclinit looks for...
-----------------------
Failed to initialize Tcl with Tcl_Init:
Can't find a usable init.tcl in the following directories:
@TCL_IN_FRAMEWORK@ /usr/lib/tcl8.4 /lib/tcl8.4 /usr/library /
library /tcl8.4.7/library @TCL_IN_FRAMEWORK@
This probably means that Tcl wasn't installed properly.
while executing
"error $msg"
(procedure "tclInit" line 42)
invoked from within
"tclInit" at /System/Library/Perl/5.8.6/darwin-thread-multi-2level/
DynaLoader.pm line 253.
Unable to initialize Tcl at /System/Library/Perl/5.8.6/darwin-thread-
multi-2level/DynaLoader.pm line 253.
Compilation failed in require at /Library/Perl/5.8.6/Tkx.pm line 206.
-----------------------
Best regards,
Manfred
Manfred Bergmann - 16 May 2006 13:05 GMT
Hi.
> Von: Manfred Bergmann <bergmannmd@web.de>
> Datum: 16. Mai 2006 10:35:02 MESZ
[quoted text clipped - 60 lines]
> Compilation failed in require at /Library/Perl/5.8.6/Tkx.pm line 206.
> -----------------------
I finally got Tkx working.
The Perl Tcl error can be fixed by setting the env var:
TCL_LIBRARY=/System/Library/Frameworks/Tcl.framework/Versions/Current/
Resources/Scripts
Best regards,
Manfred
Manfred Bergmann - 16 May 2006 09:27 GMT
Am 16.05.2006 um 07:11 schrieb David H. Adler:
>> You should be able to do this with the Tcl::Tk module:
>>
[quoted text clipped - 12 lines]
> have changed since I last looked, but be sure to look over the docs if
> you hit any problems, as that might be it.
Perl/Tk works and compiles fine on OSX.
Had no problems so far.
Regards,
Manfred
>> TclTk Aqua is shipped with Mac OSX Tiger.
>>
[quoted text clipped - 3 lines]
>
> http://search.cpan.org/~vkon/Tcl-Tk/
I get a whole lot of errors when I try to install Tcl::Tk. I am using AS
Perl and AS Tcl.
=== ERROR ===
Tcl config file '/usr/local/lib/tclConfig.sh' not found
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
=============
Should I try the Tkx one?
Robert
Manfred Bergmann - 19 May 2006 10:27 GMT
Am 19.05.2006 um 03:55 schrieb Robert Hicks:
>>> TclTk Aqua is shipped with Mac OSX Tiger.
>>>
[quoted text clipped - 13 lines]
>
> Should I try the Tkx one?
Didn't try the Tcl::Tk module.
Tkx works for me. Maybe you should try it. It also has a better
documentation. At least I didn't find one for Tcl::Tk.
Manfred
Jan Dubois - 19 May 2006 19:33 GMT
> >> TclTk Aqua is shipped with Mac OSX Tiger.
> >>
[quoted text clipped - 14 lines]
> Make had some problems, maybe interrupted? Won't install
> =============
You need to specify the location of the Tcl installation you want to
use, e.g.
perl Makefile.PL - --tclconfig=/System/Library/Frameworks/Tcl.framework/tclConfig.sh
I don't have my Mac here, but I think the ActiveTcl location would be
in /usr/local/ActiveTcl/lib/tclConfig.sh.
> Should I try the Tkx one?
Tkx builds on top of Tcl and Tcl::Tk, so you need to get those working first.
Cheers,
-Jan
Robert Hicks - 19 May 2006 22:18 GMT
>>>> TclTk Aqua is shipped with Mac OSX Tiger.
>>>>
[quoted text clipped - 28 lines]
> Cheers,
> -Jan
Can I export that as an ENV variable before loading it through CPAN?
Robert