ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-users
perl-win32-users
Re: CPAN install directory usage
by Perl Perl other posts by this author
Jul 1 2009 6:37AM messages near this date
view in the new Beta List Site
Re: CPAN install directory usage | Re: CPAN install directory usage
Hi Brian Raven,

             I don't know by which way my system admin has install the
module. Here my task is to use that module in my script. I forgot to add one
more thing in the last mail.
I have received a mail saying TK.pm is installed in below path. But I am not
getting how to use the same at Windows side.
Please find the given path as well for your kind reference.


    The Tk package is installed in the vob release of perl.

Please check the following path: /vobs/vob_verif/tools/Perl/lib/Tk.pm

The way to run a perl script on windows is to open up a command prompt and a
view and call perl by:

V:\view_MAIN\vob_verif\tools\Perl\bin\perl
You can use Tk by running a script with use Tk.pm, it will work.


I have changed my sript with the given path ( By different means), but still
getting the error, please find the script and error as below.


*#!/usr/bin/perl -w*

*use lib 'V:/vobs/vob_verif/tools/Perl/lib/Tk.pm';*

*#use lib 'V:/vobs/vob_verif/tools/Perl/lib';*

*#use lib '/vobs/vob_verif/tools/Perl/lib/Tk.pm';*

*#use lib '/vobs/vob_verif/tools/Perl/lib';

use FindBin qw($RealBin);*

*use Tk;*

Error Message :


V:\view_MAIN\vob_verif> v:\view_MAIN\vob_verif\tools\Perl\bin\perl.exe
Test.pl
Can't locate Tk/Event.pm in @INC (@INC contains:
/vobs/vob_verif/tools/Perl/lib v:/view_MAIN/vob_verif/tools/Perl/site/lib
v:/view_MAIN/vob_verif/tools/Perl/lib .) at
v:/view_MAIN/vob_verif/tools/Perl/lib/Tk.pm line 13.
BEGIN failed--compilation aborted at
v:/view_MAIN/vob_verif/tools/Perl/lib/Tk.pm line 13.
Compilation failed in require at Test.pl line 6.
BEGIN failed--compilation aborted at Test.pl line 6.

Thanks for your kind help.

Regards,
Mujju



On 7/1/09, Brian Raven <BRaven@[...].com>  wrote:
> 
>  From: perl-win32-users-bounces@[...].com
>  [mailto:perl-win32-users-bounces@[...].com] On Behalf Of
>  Perl Perl
>  Sent: 01 July 2009 13:24
>  To: perl-win32-users@[...].com
>  Subject: CPAN install directory usage
> 
>  > Hi All,
>  >
>  >      I have one doubt, about usage of CPAN install diretory at Windows
>  side. I have found that TK module is
>  > install at "C:/Perl/site/lib C:/Perl/lib" . but confuse with the usage
>  part.
>  > Please find the sanpshot from the screen as below.
>  >
>  > V:\view_MAIN\vob_verif>perl -MTk -e 1
>  > Can't locate Tk.pm in @INC (@INC contains: C:/Perl/site/lib
>  C:/Perl/lib .).
>  > BEGIN failed--compilation aborted.
>  >
>  > V:\view_MAIN\vob_verif>perl -e "print qq(@INC)"
>  > C:/Perl/site/lib C:/Perl/lib .
>  >
>  > I tried, different ways to embed the above installed directory path in
>  my script, but I am getting the result
>  > as Can't locate Tk.pm in @INC.
>  >
>  > Please find my script as below, made this one very short for debuging
>  pupose.
>  >
>  > #!/usr/bin/perl -w
>  > use lib "C\:\\Perl\\site\\lib";
>  >
>  > #use lib "C:\/Perl\/site/lib C:\/Perl\/lib";
>  > use Tk;
>  >
>  > Please find the error message,
>  >
>  > V:\aec_MAIN\platform_verif>perl Test.pl
>  > Can't locate Tk.pm in @INC (@INC contains: C:\Perl\site\lib
>  C:/Perl/site/lib C:/
>  > Perl/lib .) at Test.pl line 5.
>  > BEGIN failed--compilation aborted at Test.pl line 5.
>  >
>  >
>  > This is at Windows OS. Could you please help me to overcome this?
> 
>  It is not really clear from the above, but it looks like Tk has not been
>  installed, or at least not properly.
> 
>  The big question is why don't you install it using ppm, rather than from
>  CPAN. It is much easier as all of the hard work of building it has
>  already been done. It works fine for me.
> 
>  --
>  Brian Raven
>  This e-mail may contain confidential and/or privileged information. If you
>  are not the intended recipient or have received this e-mail in error, please
>  advise the sender immediately by reply e-mail and delete this message and
>  any attachments without retaining a copy.
> 
>  Any unauthorised copying, disclosure or distribution of the material in
>  this e-mail is strictly forbidden.
> 
>  _______________________________________________
>  Perl-Win32-Users mailing list
>  Perl-Win32-Users@[...].com
>  To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 



-- 
--
Regards,
Mujju
Thread:
Perl Perl
Brian Raven
Chris Wagner
Perl Perl
kenneth
Perl Perl
Chris Wagner
Perl Perl
kenneth
Brian Raven

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved