1755800 Members
5768 Online
108838 Solutions
New Discussion юеВ

Perl & Tk Installation

 
SOLVED
Go to solution
Gil_4
New Member

Perl & Tk Installation

Recently loaded Perl 5.6.1 depot file and Tcl/Tk 8.3.3 depot file. Used default root directory /opt/perl5 and /opt/tcltk. When I try and execute a script using Tk I get the infamous can't find in @INC which only includes the directories for the perl install i.e. /opt/perl5/lib/5.6.1 etc. Running a J210 (RISC1.1) with HPUX 10.20. Do I need to change the install directory for Tcl/Tk to be within the @INC or is their a symbolic link that didn't get created? Any suggestions, would appreciate it.
3 REPLIES 3
Steven Sim Kok Leong
Honored Contributor

Re: Perl & Tk Installation

Hi,

Refer to this thread:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x896b7d4cf554d611abdb0090277a778c,00.html

Hope this helps. Regards.

Steven Sim Kok Leong
Zach Parker
Occasional Advisor

Re: Perl & Tk Installation


If you want, you can create a symlink from within the site_perl (like /opt/perl/lib/site_perl) subdirectory out to the Tk modules in your Tk directory. Perl will follow symlinks when attempting to locate modules.

Alternately, if you only need the libraries on occasion, you can use the PERL5LIB environmental variable, or `use lib` from within the perl script.

The easiest method, however, is going to be creating your own symlinks. That or reinstalling the modules into the current include path.

H.Merijn Brand (procura
Honored Contributor
Solution

Re: Perl & Tk Installation

For perl/Tk you do *NOT* need the Tcl/Tk package. Look at http://www.perltk.org/ for precompiled perl/Tk binaries (HP's are mine :-)
Enjoy, Have FUN! H.Merijn