Re: Tk Aqua with Perl

2006-05-19 Thread Robert Hicks

Jan Dubois wrote:

On Mon, 15 May 2006, Manfred Bergmann wrote:

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:

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


Re: Tk Aqua with Perl

2006-05-19 Thread Manfred Bergmann


Am 19.05.2006 um 03:55 schrieb Robert Hicks:


Jan Dubois wrote:

On Mon, 15 May 2006, Manfred Bergmann wrote:

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:
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?


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



RE: Tk Aqua with Perl

2006-05-19 Thread Jan Dubois
On Thu, 18 May 2006, Robert Hicks wrote:
 Jan Dubois wrote:
  On Mon, 15 May 2006, Manfred Bergmann wrote:
  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:
 
  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
 =

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





Re: Tk Aqua with Perl

2006-05-19 Thread Robert Hicks

Jan Dubois wrote:

On Thu, 18 May 2006, Robert Hicks wrote:

Jan Dubois wrote:

On Mon, 15 May 2006, Manfred Bergmann wrote:

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:

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
=


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




Can I export that as an ENV variable before loading it through CPAN?

Robert


RE: Tk Aqua with Perl

2006-05-16 Thread Jan Dubois
On Mon, 15 May 2006, David H. Adler wrote:
 On Mon, May 15, 2006 at 03:37:08PM -0700, Jan Dubois wrote:
  You should be able to do this with the Tcl::Tk module:
 
  http://search.cpan.org/~vkon/Tcl-Tk/
 
  The Tkx module provides a nice interface on top of Tcl::Tk:
 
  http://search.cpan.org/~gaas/Tkx/
 
  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.

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




Re: Tk Aqua with Perl

2006-05-16 Thread Manfred Bergmann


Am 16.05.2006 um 07:11 schrieb David H. Adler:


On Mon, May 15, 2006 at 03:37:08PM -0700, Jan Dubois wrote:

You should be able to do this with the Tcl::Tk module:

http://search.cpan.org/~vkon/Tcl-Tk/

The Tkx module provides a nice interface on top of Tcl::Tk:

http://search.cpan.org/~gaas/Tkx/

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.



Perl/Tk works and compiles fine on OSX.
Had no problems so far.


Regards,
Manfred




Re: Tk Aqua with Perl

2006-05-16 Thread Manfred Bergmann


Am 16.05.2006 um 08:26 schrieb Jan Dubois:


On Mon, 15 May 2006, David H. Adler wrote:

On Mon, May 15, 2006 at 03:37:08PM -0700, Jan Dubois wrote:

You should be able to do this with the Tcl::Tk module:

http://search.cpan.org/~vkon/Tcl-Tk/

The Tkx module provides a nice interface on top of Tcl::Tk:

http://search.cpan.org/~gaas/Tkx/

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.


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.



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



Re: Tk Aqua with Perl

2006-05-16 Thread Manfred Bergmann

Hi.


Von: Manfred Bergmann [EMAIL PROTECTED]
Datum: 16. Mai 2006 10:35:02 MESZ
An: OSX Group Perl macosx@perl.org
Betreff: Re: Tk Aqua with Perl


Am 16.05.2006 um 08:26 schrieb Jan Dubois:


On Mon, 15 May 2006, David H. Adler wrote:

On Mon, May 15, 2006 at 03:37:08PM -0700, Jan Dubois wrote:

You should be able to do this with the Tcl::Tk module:

http://search.cpan.org/~vkon/Tcl-Tk/

The Tkx module provides a nice interface on top of Tcl::Tk:

http://search.cpan.org/~gaas/Tkx/

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.


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.



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.
---


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



RE: Tk Aqua with Perl

2006-05-15 Thread Jan Dubois
On Mon, 15 May 2006, Manfred Bergmann wrote:
 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:

http://search.cpan.org/~vkon/Tcl-Tk/

The Tkx module provides a nice interface on top of Tcl::Tk: 

http://search.cpan.org/~gaas/Tkx/

I have not tried this on OS X though, so it is possible that
the modules don't work out of the box there.

 The Perl/Tk bindings are only for X11, right?

Yes.

Cheers,
-Jan





Re: Tk Aqua with Perl

2006-05-15 Thread David H. Adler
On Mon, May 15, 2006 at 03:37:08PM -0700, Jan Dubois wrote:
 You should be able to do this with the Tcl::Tk module:
 
 http://search.cpan.org/~vkon/Tcl-Tk/
 
 The Tkx module provides a nice interface on top of Tcl::Tk: 
 
 http://search.cpan.org/~gaas/Tkx/
 
 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

-- 
David H. Adler - [EMAIL PROTECTED] - 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