Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Perl / Modules / August 2004



Tip: Looking for answers? Try searching our database.

'make test' strangeness ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob - 18 Aug 2004 04:10 GMT
All,

   BSDi 4.2, perl 5.005_03.

    Searching on the web for 'PERL5LIB' 'make test' yielded somewhat
unrelevant result.

   To compile Archive:Zip 1.12_03, I needed later version of File/Spec,
Compress/Zlib, etc.

    I compiled my later version of File/Spec, Compress/Zlib under
/usr/local/perl5lib/etc.. without doing UNINST=1. This is the policy on
compilaton at our company. The reason being  that older scripts may still
reference the older version of it. Didn't want to break those things.

PERL5LIB="/usr/local/perl5lib/Compress/Zlib/1.33/lib:/usr/local/perl5lib/Fil
e/Temp/0.12/lib:/usr/local/perl5lib/File/Spec/0.82/lib"
   export PERL5LIB

    After setting PERL5LIB to the appropriate directory, I can do a perl
./Makefile.PL PREFIX=/usr/local/perl5lib/Archive/Zip/1.12 fine (without
complaning my lack of libs). Without PERL5LIB set, it will complain.

   'make' doesn't give me any warning messages.

     Surpsiringly, during 'make test', it somehow ignored my PERL5LIB env
var, and errored out due to the fact that it loaded older version of
File/Spec.

     perl -V shows that my PERL5LIB is properly used and my later version
of File/Spec should take precendence.

   Curiously, I decided to call the test scripts directly by issuing
separate commands (rather than 'make test'). perl ./t/testUpdate.t (and
other test scripts separately). All test scripts passed.

   Anyone wants to comment on what else I need to set to prevent this
awkward calling of the test script directly.

Thanks,
Rob

-- one of the commands I issued (in place of make test)--
bash-2.02# perl ./t/testUpdate.t
1..12
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
Use of uninitialized value at /usr/libdata/perl5/5.00503/Test.pm line 68.
Use of uninitialized value at /usr/libdata/perl5/5.00503/Test.pm line 68.
Use of uninitialized value at /usr/libdata/perl5/5.00503/Test.pm line 68.
Use of uninitialized value at /usr/libdata/perl5/5.00503/Test.pm line 68.
ok 8
ok 9
ok 10
ok 11
ok 12
Jim Keenan - 19 Aug 2004 00:31 GMT
> All,
>
[quoted text clipped - 3 lines]
> e/Temp/0.12/lib:/usr/local/perl5lib/File/Spec/0.82/lib"
>     export PERL5LIB

My hunch is that you've misdefined PERL5LIB.  This is only a hunch,
because I don't know BSD, though I have some familiarity with Linux
and Darwin and in the last few days had to mess with PERL5LIB on
Linux.

I installed Perl 5.8.5 under /usr/local/bin.  Previously, Perl 5.6.0
was loaded under /usr/bin because that's the way it came from RedHat.
I had loaded many CPAN modules in relation to 5.6.0, and, out of
Laziness, I didn't want to have to reload them in relation to 5.8.5.
At the same time, if I had manually loaded a module in relation to
5.6.0 that later became part of the 5.8 core (e.g., Tie::File), I
wanted to make sure that the perl and perldoc executables found the
5.8 version first.  So, as root I edited /etc/profile as follows:

   PERL5LIB="/usr/local/lib/perl5/5.8.5/i686-linux:/usr/local/lib/perl5/5.8.5/i686-linux:/usr/local/lib/perl5/5.8.5:/usr/local/lib/perl5/site_perl/5.8.5/i686-linux:/usr/local/lib/perl5/site_perl/5.8.5/i686-linux:/usr/local/lib/perl5/site_perl/5.8.5:/usr/local/lib/perl5/site_perl/5.8.5/i686-linux:/usr/local/lib/perl5/site_perl/5.8.5:/usr/local/lib/perl5/site_perl:/usr/lib/perl5/5.6.0/i386-linux:/u
r/lib/perl5/5.6.0:/usr/lib/perl5/site_perl/5.6.0/i386-linux:/usr/lib/perl5/site_perl/5.6.0:/usr/lib/perl5/site_perl:."
   export PERL5LIB

Note that in *none* of the above directories is the directory for any
specific Perl module mentioned.  This is what leads me to guess that
your PERL5LIB is too 'deep' and therefore incorrect.

But since this is the first time I myself have successfully altered
PERL5LIB and since BSD may be different, I caution that this is only
my hunch.  Perhaps more knowledgeable readers can comment.

jimk
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.