Re: CPAN install directory usage
by kenneth other posts by this author
Jul 1 2009 9:21AM messages near this date
view in the new Beta List Site
Re: CPAN install directory usage
|
RE: CPAN install directory usage
> The Tk package is installed in the vob release of perl.
>
> Please check the following path: /vobs/vob_verif/tools/Perl/lib/Tk.pm
>
You're using ClearCase, and this is a Unix path, and further, it is a
path only relevant after a 'cleartool setview' has been done. Neither
the path nor setview makes sense in Windows as is.
>
> 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.
This looks better; it is the same path, but looking at the vob through
Windows where the vob tag is \vob_verif (as opposed to the Unix tag of
'/vobs/vob_verif'). Also, it looks like your shop has redefined the
standard M: as the MVFS drive to V: which is fine. At a guess the view
'view_MAIN' is a view used by everyone. Obviously it must have the
correct config spec to see the right versions, but if your admin says
it's ok, then I guess it is. Finally, this view must be started on your
workstation (cleartool startview).
>
>
> 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.
>
>
As you gather, your attempts with 'use lib' won't work. If anything,
use lib 'v:/view_MAIN/vob_verif/tools/Perl/lib';
should do the trick. Yes, it's ok to use forward slashes on Windows too.
However, this assumes that your sysadmin really knows what he's doing -
first, it isn't enough to just copy 'Tk.pm' to that location, it's a
whole lotta stuff *including binaries specific to a platform*. As
you're now seeing a missing 'Tk::Event' I'd guess the installation is
only partial.
So, is there a Windows build of the Tk package that has been installed
there (since you seem to be using both Unix and Windows)? And are you
using a Perl that handles a lib tree with separation by platform for the
binaries - AFAIK, ActivePerl doesn't, for example.
Overall, I sense a need to really get a handle on your CM process and
ClearCase in general and make sure everyone agrees on how to make a Perl
installation reusable and properly versioned. There is, as you discover
quite a lot to think of :-).
Lastly, if you're just starting out with Tk, I understand that it's
pretty much a dead end, so if you're gonna develop all new code, you
might want to look to Tkx instead...
ken1
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Perl Perl
Brian Raven
Chris Wagner
Perl Perl
kenneth
Perl Perl
Chris Wagner
Perl Perl
kenneth
Brian Raven
|