Re: Dependency Hell (Test::Harness)
Ken Williams wrote: On Saturday, February 22, 2003, at 12:19 PM, [EMAIL PROTECTED] wrote: [localhost:~/Getopt-ArgvFile-1.06] fz% make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/System/Library/Perl/darwin -I/System/Library/Perl -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/base..FAILED tests 1-5 Failed 5/5 tests, 0.00% okay t/prefixFAILED tests 1-2 Failed 2/2 tests, 0.00% okay Failed Test Status Wstat Total Fail Failed List of failed --- t/base.t 55 100.00% 1-5 t/prefix.t22 100.00% 1-2 Failed 2/2 test scripts, 0.00% okay. 7/7 subtests failed, 0.00% okay. make: *** [test_dynamic] Error 255 So, is it at this point using the correct Test::Harness? If yes, what am I doing wrong? If no, what am I doing wrong? Looks like maybe PERL5LIB isn't set anymore? It always need to be set in order to find stuff in your non-standard location. Thanks again. (I already replied once to say that I'm positive PERL5LIB was set, but somehow this hasn't made it to the list yet.) The problem, it seems, is that the "-I/System/Library/Perl" overrides it :-( Viz. the difference if I run the tests manually with and without this flag: [localhost:~/Getopt-ArgvFile-1.06] fz% echo $PERL5LIB /Volumes/Unix/usrlocal/lib/perl5 [localhost:~/Getopt-ArgvFile-1.06] fz% perl -Iblib/arch -Iblib/lib -I/System/Library/Perl/darwin -I/System/Library/Perl -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/base..FAILED tests 1-5 Failed 5/5 tests, 0.00% okay t/prefixFAILED tests 1-2 Failed 2/2 tests, 0.00% okay Failed Test Status Wstat Total Fail Failed List of failed --- t/base.t 55 100.00% 1-5 t/prefix.t22 100.00% 1-2 Failed 2/2 test scripts, 0.00% okay. 7/7 subtests failed, 0.00% okay. [localhost:~/Getopt-ArgvFile-1.06] fz% echo $PERL5LIB /Volumes/Unix/usrlocal/lib/perl5 Files=2, Tests=7, 2 wallclock secs ( 0.85 cusr + 0.31 csys = 1.16 CPU) [localhost:~/Getopt-ArgvFile-1.06] fz% perl -Iblib/arch -Iblib/lib -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/base..ok t/prefixok All tests successful. Files=2, Tests=7, 1 wallclock secs ( 0.86 cusr + 0.37 csys = 1.23 CPU) So, is there a workaround to force the use of the newer Test::Harness in "make test"?
Re: hi and axpoint
Marco Baroni wrote: > However... > > >Most of the rest of the dependencies are pretty much sorted these > >days: at > >least once you've got libxml2 and libxslt and have their perl wrappers > >installed (watch the version of XML::LibXML, as per earlier messages. > >It broke > >some time soon after 1.51 for Mac OS X). > > I haven't consciously done these things -- will I regret it soon? My apologies: I should have checked up exactly what AxPoint depends on. Those comments belong in another thread (in another universe). I'd been installing all the XML modules together, and have somehow managed to mash together a couple of disparate modules. So... having just checked again, AxPoint *doesn't* require the XML::Lib* modules, but only PDFLib and some stuff from the XML::SAX namespace, so the comments of mine quoted above are irrelevant. Good to hear that things are working; have no regrets! Regards, Paul
Re: Dependency Hell (Test::Harness)
On Saturday, February 22, 2003, at 12:19 PM, [EMAIL PROTECTED] wrote: [localhost:~/Getopt-ArgvFile-1.06] fz% make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/System/Library/Perl/darwin -I/System/Library/Perl -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/base..FAILED tests 1-5 Failed 5/5 tests, 0.00% okay t/prefixFAILED tests 1-2 Failed 2/2 tests, 0.00% okay Failed Test Status Wstat Total Fail Failed List of failed --- t/base.t 55 100.00% 1-5 t/prefix.t22 100.00% 1-2 Failed 2/2 test scripts, 0.00% okay. 7/7 subtests failed, 0.00% okay. make: *** [test_dynamic] Error 255 So, is it at this point using the correct Test::Harness? If yes, what am I doing wrong? If no, what am I doing wrong? Looks like maybe PERL5LIB isn't set anymore? It always need to be set in order to find stuff in your non-standard location. -Ken
Dependency Hell (Test::Harness)
I'm running Jaguar 10.2.4 with the stock perl, which has Test::Harness 1.1604. I want to install modules like Getopt::ArgvFile (1.06), which asks me for Test::Harness => 1.25. (It also asks for Test::More, now IIUC part of Test::Simple, which requires Test::Harness => 2.03.) So it looks like I need tu upgrade Test::Harness. Now I'd rather leave the stock perl untouched (like Fink does), so I try to set things up in a separate "/Volumes/Unix/usrlocal" dir: % setenv PERL5LIB /Volumes/Unix/usrlocal/lib/perl5 % perl Makefile.PL `cat ~/.perl_inst_dirs` where % cat ~/.perl_inst_dirs PREFIX=/Volumes/Unix/usrlocal \ INSTALLPRIVLIB=/Volumes/Unix/usrlocal/lib/perl5 \ INSTALLARCHLIB=/Volumes/Unix/usrlocal/lib/perl5/darwin \ INSTALLSITELIB=/Volumes/Unix/usrlocal/lib/perl5 \ INSTALLSITEARCH=/Volumes/Unix/usrlocal/lib/perl5/darwin \ INSTALLMAN1DIR=/Volumes/Unix/usrlocal/share/man/man1 \ INSTALLMAN3DIR=/Volumes/Unix/usrlocal/share/man/man3 This works fine to install any CPAN versions of Test::Harness (2.03 is the oldest I see) and Test::Simple (=> 0.42). But then I get: [localhost:~/Getopt-ArgvFile-1.06] fz% perl Makefile.PL `cat ~/.perl_inst_dirs` Checking if your kit is complete... Looks good Writing Makefile for Getopt::ArgvFile [localhost:~/Getopt-ArgvFile-1.06] fz% make mkdir blib mkdir blib/lib mkdir blib/lib/Getopt mkdir blib/arch mkdir blib/arch/auto mkdir blib/arch/auto/Getopt mkdir blib/arch/auto/Getopt/ArgvFile mkdir blib/lib/auto mkdir blib/lib/auto/Getopt mkdir blib/lib/auto/Getopt/ArgvFile mkdir blib/man3 cp ArgvFile.pm blib/lib/Getopt/ArgvFile.pm Manifying blib/man3/Getopt::ArgvFile.3 [localhost:~/Getopt-ArgvFile-1.06] fz% make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/System/Library/Perl/darwin -I/System/Library/Perl -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/base..FAILED tests 1-5 Failed 5/5 tests, 0.00% okay t/prefixFAILED tests 1-2 Failed 2/2 tests, 0.00% okay Failed Test Status Wstat Total Fail Failed List of failed --- t/base.t 55 100.00% 1-5 t/prefix.t22 100.00% 1-2 Failed 2/2 test scripts, 0.00% okay. 7/7 subtests failed, 0.00% okay. make: *** [test_dynamic] Error 255 So, is it at this point using the correct Test::Harness? If yes, what am I doing wrong? If no, what am I doing wrong?
Re: hi and axpoint
Thanks a lot! Finally it works (at least, it was possible to install the XML::Handler::AxPoint module, and a few simple examples generated the right kind of output...) Summarizing, in case anybody else experiences similar problems when trying to install axpoint on 10.2 w/perl5.8.0, I was able to install XML::Handler::AxPoint in the following steps: 1) Install libiconv (1.7-5) via fink. 2) Install Text::Iconv by downloading it from CPAN and changing two lines in the Makefile.PL (see Paul's message): 'LIBS' => ['-L/sw/lib -liconv'], # e.g., '-lm' 'INC' => '-I/sw/include', # e.g., '-I/usr/include/other' 3) Downlad source from pdflib.com and install pdflib (4.0.3) (replace configure with new configure for Jaguar found on their bugs and fixes page). 4) Cd to pdflib-4.0.3/bind/perl/ and make install. 5) sudo perl -MCPAN -e shell cpan> install PDFLib # perhaps following command would automatically take care of this? cpan> install install XML::Handler::AxPoint However... Most of the rest of the dependencies are pretty much sorted these days: at least once you've got libxml2 and libxslt and have their perl wrappers installed (watch the version of XML::LibXML, as per earlier messages. It broke some time soon after 1.51 for Mac OS X). I haven't consciously done these things -- will I regret it soon? Thanks again! Cheers, Marco
dyld conflict
Hey... I don't know if this an appropriate place to send this... I get conflicts over the definition of _poll when attempting to use FileHandle.pm and DBI from CPAN. I wonder if anyone on this list has experience with this problem... dyld: perl multiple definitions of symbol _poll /System/Library/Perl/darwin/auto/IO/IO.bundle definition of _poll /Users/oracle/9iR2/orahome/lib/libclntsh.dylib.9.0(poll.o) definition of _poll Trace/BPT trap Thanks -- Mark Freiheit