1755700 Members
3213 Online
108837 Solutions
New Discussion юеВ

Can't find Tk.pm

 
SOLVED
Go to solution
Javier Martinez_4
New Member

Can't find Tk.pm

Hello,
I'm have a HP-UX 11.00 system with perl 5.00503 and I need the Tk.pm library, I say Perl/Tk. First of all I get the perl 5.8.5 version thinking the Tk.pm are included in this package. I install the depot with swinstall but I couldn't find Tk.pm
Have I to compile anything?. I have take other pakage for Perl/Tk?

Thank's a lot.
4 REPLIES 4
Peter Godron
Honored Contributor

Re: Can't find Tk.pm

Javier,
as a starting point look at the site:
http://phaseit.net/claird/comp.lang.perl.tk/ptkFAQ.html
Most of your questions are answered there.
Regards
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Can't find Tk.pm

Tk is not a CORE module, nor is it included in the standard distributions from HP or the HP porting centers, so you now have two options

1. Build it yourself
2. Fetch *my* distribution, which includes prebuilt Tk

Warning, most - if not all - public available binary perl distributions for HP-UX are build with GNU gcc, which is not the most end user friendly compiler to build Tk with on HP-UX, certainly not in 64bit mode. Though we've gone through great trouble to make it better - and the latest version of Tk is indeed much easier to build, it's still not an out-of-the-box job.

If you decide to use my builds, please read the installation instructions carefully, since I do not ship depot's, but compressed archives.

My HP ITRC site pages can be found at (please use LA as primary choice):

USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/merijn/
NL Hoofddorp http://www.cmve.net/~merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Javier Martinez_4
New Member

Re: Can't find Tk.pm

Thanks Peter, the site is very usefull for me.
Thank you very much Procura. I've followed your indications and I take one of your builds version (perl 5.8.4) and I try run a perl script using Tk library.

The script was take from manual to avoid errors:

use Tk;
$top = MainWindow->new();
$top->title ("Simple");
$l = $top-->Label(text => 'hello',
anchor => 'n',
relief 'groove',
width => 10, height => 3);
$l->pack();
MainLoop();

and then I obtain this error:
unknown option "width" at /opt/perl64/lib/site_perl/5.8.5/PA-RISC2.0-LP64/Tk/Widget.pm line 205.

Is this a sign saying the intallation is wrong? or Is this a different problem and the installation is ok?

Thank a lot.
Javier
Javier Martinez_4
New Member

Re: Can't find Tk.pm

OK, I found a information about the format, I think everything is ok. thanks a lot