Re: Trying to Install HTML::Tidy
Hi Lola, The distribution fails a test on your machine. I have run the same installation here on Leopard as well and reported the failing test to the author, so it is a general platform problem. jonasbn -- AIM: BjonasN Gtalk: [EMAIL PROTECTED] ICQ: 62401545 MSN: [EMAIL PROTECTED] On 10/11/2007, at 15.12, Lola J. Lee Beno wrote: Running Leopard, so that means perl 5.8.8. Trying to install HTML::Tidy and it fails. First error message is: t/00-load..ok t/cfg-for-parseok t/clean- crash..ok t/extra-quote..ok t/ignore-text.. 1/3 # Failed test 'Matching warnings' # at t/ignore-text.t line 32. # Structures begin differing at: # $got-[0] = 'DATA (24:86) Warning: unescaped which should be written as amp;' # $expected-[0] = 'DATA (24:78) Warning: unescaped which should be written as amp;' # Looks like you failed 1 test of 3. What does this mean? -- Lola J. Lee Beno - ColdFusion Programmer/Web Designer for Hire http://www.lolajl.net/resume | Blog at http://www.lolajl.net/blog/ In rivers, the water that you touch is the last of what has passed and the first of that which comes; so with present time. - Leonardo da Vinci (1452-1519)
Re: Can't locate object method expand via package CPAN::Shell
Hola, Please note that the package CPAN::Shell lives in CPAN.pm, so the use statement should read: use CPAN; Since the use statement reflect the filesystem (as described in the @INC explanation below). jonasbn -- AIM: BjonasN Gtalk: [EMAIL PROTECTED] ICQ: 62401545 MSN: [EMAIL PROTECTED] On 13/08/2007, at 14.01, Jeremiah Foster wrote: On Aug 12, 2007, at 8:33 PM, Noah wrote: thanks jonasbn, but the module is still not located. what else am I doing wrong? Macintosh-2:~ root# cat ./update.no.version.sh #!/sw/bin/perl This is confusing - you are writing a perl script but it ends in .sh? Usually perl scripts end in .pl so that humans know it is a perl script. I started debugging your script thinking it was shell. use CPAN::Shell; # install my favorite programs if necessary: for $mod (qw(Net::FTP MD5 Data::Dumper)){ my $obj = CPAN::Shell-expand('Module',$mod); $obj-install; } Since you now use use CPAN::SHell the expand now works. :) # list all modules on my disk that have no VERSION number for $mod (CPAN::Shell-expand(Module,/./)){ next unless $mod-inst_file; # MakeMaker convention for undefined $VERSION: next unless $mod-inst_version eq undef; print No VERSION in , $mod-id, \n; } # ./update.no.version.sh Can't locate CPAN/Shell.pm in @INC Perl cannot find the package you downloaded called CPAN/Shell.pm. I would be you used two methods to get your perl source: fink and CPAN. If you use fink, fink stuffs things in /sw/, but CPAN puts things in a different place. (See perldoc -q @INC.) @INC is a set of perl libraries, only in perl they're called modules, that you have on your system. You need to make sure that all the modules that you downloaded are in @INC by telling perl where your modules live. On my Mac I have perl modules in /sw/lib and in /usr/lib/perl5/site_perl/ which is where Apple installed them. Just make sure your @INC includes the CPAN::Shell.pm and you should be okay. (@INC contains: /sw/lib/perl5-core/5.8.8/darwin-thread- multi-2level /sw/lib/perl5-core/5.8.8 /sw/lib/perl5/site_perl/ 5.8.8/darwin-thread-multi-2level /sw/lib/perl5/site_perl/5.8.8 /sw/ lib/perl5/site_perl/5.8.8/darwin-thread-multi-2level /sw/lib/perl5/ site_perl .) at ./update.no.version.sh line 3. BEGIN failed--compilation aborted at ./update.no.version.sh line 3. Jeremiah Foster [EMAIL PROTECTED] --- Key fingerprint = 9616 2AD3 3AE0 502C BD75 65ED BDC3 0D44 2F5A E672
Re: How to tell the difference between a nested folder structure and a Mac OS package?
Hello Peter, I would guess something like: MacOSX::File would be able to do the job (http://search.cpan.org/~dankogai/MacOSX-File-0.71/File.pm) But I have not been able to get it to differentiate between directories and bundles, but then again neither does the standard: /Developer/Tools/GetFileInfo You can have a look at my program to generate aliases for OSX applications: http://cph.pm.org/svn/trunk/scripts/macaliaser.pl jonasbn -- AIM: BjonasN Gtalk: [EMAIL PROTECTED] ICQ: 62401545 MSN: [EMAIL PROTECTED] On 11/08/2007, at 11.49, Peter J. Hartmann wrote: Hi, I'd like to be able to tell the difference between a nested folder structure and a Mac OS package from a Perl script? If a directory item is a (nested) folder, I want to recursively scan its contents, if it is a package, I'd like to leave it alone. Thanks for any pointers into the right direction! Peter ___ Peter Hartmann mailto:[EMAIL PROTECTED]
Re: Can't locate object method expand via package CPAN::Shell
Hi Noah, You have to load the modules you intend to use prior to calling them using the use statement use CPAN::Shell; and so forth. If you look at the error message perhaps you forgot to load CPAN::Shell It gives you a hint. Check also: % perldoc -f use for a desciption of use. % man perldiag also holds a description of the error message. jonasbn -- AIM: BjonasN Gtalk: [EMAIL PROTECTED] ICQ: 62401545 MSN: [EMAIL PROTECTED] On 12/08/2007, at 19.42, Noah wrote: Hi, the CPAN::Shell perl module is installed but when called in a script an error message advises installing it. Clues please? Macintosh-2:~ root# cat ./update.no.version.sh #!/sw/bin/perl # install my favorite programs if necessary: for $mod (qw(Net::FTP MD5 Data::Dumper)){ my $obj = CPAN::Shell-expand('Module',$mod); $obj-install; } # list all modules on my disk that have no VERSION number for $mod (CPAN::Shell-expand(Module,/./)){ next unless $mod-inst_file; # MakeMaker convention for undefined $VERSION: next unless $mod-inst_version eq undef; print No VERSION in , $mod-id, \n; } Macintosh-2:~ root# perl -MCPAN -e 'install CPAN::Shell' Macintosh-2:~ root# ./update.no.version.sh Can't locate object method expand via package CPAN::Shell (perhaps you forgot to load CPAN::Shell?) at ./update.no.version.sh line 5. Macintosh-2:~ root# which perl /sw/bin/perl Macintosh-2:~ root# perl -v This is perl, v5.8.8 built for darwin-thread-multi-2level Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using man perl or perldoc perl. If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. Macintosh-2:~ root# /sw/bin/perl -v This is perl, v5.8.8 built for darwin-thread-multi-2level Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using man perl or perldoc perl. If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. Macintosh-2:~ root# /sw/bin/perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=darwin, osvers=8.10.1, archname=darwin-thread-multi-2level uname='darwin macintosh-2.local 8.10.1 darwin kernel version 8.10.1: wed may 23 16:33:00 pdt 2007; root:xnu-792.22.5~1release_i386 i386 i386 ' config_args='-des -Dcc=gcc -Dcpp=gcc -E -Dprefix=/sw -Dccflags=-I/sw/include -Dldflags=-L/sw/lib -Dperladmin=none -Uinstallusrbinperl -Dprivlib=/sw/lib/perl5-core/5.8.8 -Darchlib=/sw/lib/perl5-core/5.8.8/darwin-thread-multi-2level -Dman3dir=/sw/lib/perl5-core/5.8.8/man/man3 -Dman3ext=3pm - Duseithreads -Dinc_version_list=5.8.8/darwin-thread-multi-2level 5.8.6/darwin-thread-multi-2level 5.8.1 5.8.0 5.6.0 -Adefine:startperl=#!/sw/bin/perl5.8.8' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-I/sw/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after- statement -I/usr/local/include -I/opt/local/include', optimize='-O3', cppflags='-no-cpp-precomp -I/sw/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after- statement -I/usr/local/include -I/opt/local/include' ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build 5367)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/sw/lib -L/usr/local/lib -L/opt/local/lib' libpth=/usr/local/lib /opt/local/lib /usr/lib libs=-ldbm -ldl -lm -lc perllibs=-ldl -lm -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-L/sw/lib -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS
Re: Can't locate object method expand via package CPAN::Shell
Hi Noah, My fault, CPAN::Shell is defined in CPAN So you have to write use CPAN; jonasbn -- AIM: BjonasN Gtalk: [EMAIL PROTECTED] ICQ: 62401545 MSN: [EMAIL PROTECTED] On 12/08/2007, at 20.33, Noah wrote: thanks jonasbn, but the module is still not located. what else am I doing wrong? Macintosh-2:~ root# cat ./update.no.version.sh #!/sw/bin/perl use CPAN::Shell; # install my favorite programs if necessary: for $mod (qw(Net::FTP MD5 Data::Dumper)){ my $obj = CPAN::Shell-expand('Module',$mod); $obj-install; } # list all modules on my disk that have no VERSION number for $mod (CPAN::Shell-expand(Module,/./)){ next unless $mod-inst_file; # MakeMaker convention for undefined $VERSION: next unless $mod-inst_version eq undef; print No VERSION in , $mod-id, \n; } # ./update.no.version.sh Can't locate CPAN/Shell.pm in @INC (@INC contains: /sw/lib/perl5- core/5.8.8/darwin-thread-multi-2level /sw/lib/perl5-core/5.8.8 /sw/ lib/perl5/site_perl/5.8.8/darwin-thread-multi-2level /sw/lib/perl5/ site_perl/5.8.8 /sw/lib/perl5/site_perl/5.8.8/darwin-thread- multi-2level /sw/lib/perl5/site_perl .) at ./update.no.version.sh line 3. BEGIN failed--compilation aborted at ./update.no.version.sh line 3. jonasbn wrote: Hi Noah, You have to load the modules you intend to use prior to calling them using the use statement use CPAN::Shell; and so forth. If you look at the error message perhaps you forgot to load CPAN::Shell It gives you a hint. Check also: % perldoc -f use for a desciption of use. % man perldiag also holds a description of the error message. jonasbn -- AIM: BjonasN Gtalk: [EMAIL PROTECTED] ICQ: 62401545 MSN: [EMAIL PROTECTED] On 12/08/2007, at 19.42, Noah wrote: Hi, the CPAN::Shell perl module is installed but when called in a script an error message advises installing it. Clues please? Macintosh-2:~ root# cat ./update.no.version.sh #!/sw/bin/perl # install my favorite programs if necessary: for $mod (qw(Net::FTP MD5 Data::Dumper)){ my $obj = CPAN::Shell-expand('Module',$mod); $obj-install; } # list all modules on my disk that have no VERSION number for $mod (CPAN::Shell-expand(Module,/./)){ next unless $mod-inst_file; # MakeMaker convention for undefined $VERSION: next unless $mod-inst_version eq undef; print No VERSION in , $mod-id, \n; } Macintosh-2:~ root# perl -MCPAN -e 'install CPAN::Shell' Macintosh-2:~ root# ./update.no.version.sh Can't locate object method expand via package CPAN::Shell (perhaps you forgot to load CPAN::Shell?) at ./update.no.version.sh line 5. Macintosh-2:~ root# which perl /sw/bin/perl Macintosh-2:~ root# perl -v This is perl, v5.8.8 built for darwin-thread-multi-2level Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using man perl or perldoc perl. If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. Macintosh-2:~ root# /sw/bin/perl -v This is perl, v5.8.8 built for darwin-thread-multi-2level Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using man perl or perldoc perl. If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. Macintosh-2:~ root# /sw/bin/perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=darwin, osvers=8.10.1, archname=darwin-thread- multi-2level uname='darwin macintosh-2.local 8.10.1 darwin kernel version 8.10.1: wed may 23 16:33:00 pdt 2007; root:xnu-792.22.5~1release_i386 i386 i386 ' config_args='-des -Dcc=gcc -Dcpp=gcc -E -Dprefix=/sw -Dccflags=-I/sw/include -Dldflags=-L/sw/lib -Dperladmin=none -Uinstallusrbinperl -Dprivlib=/sw/lib/perl5-core/5.8.8 -Darchlib=/sw/lib/perl5-core/5.8.8/darwin-thread-multi-2level -Dman3dir=/sw/lib/perl5-core/5.8.8/man/man3 -Dman3ext=3pm - Duseithreads -Dinc_version_list=5.8.8/darwin-thread-multi-2level 5.8.6/darwin-thread-multi-2level 5.8.1 5.8.0 5.6.0 -Adefine:startperl=#!/sw/bin/perl5.8.8' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-I/sw/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after- statement -I/usr/local/include -I/opt/local/include
Re: Trying to Install WebService::Bloglines
Hi Lola, I am still looking into the problem. But let me not stop you. As far as I can read from the failling tests it should be ok to install XML::LibXML and move on. Can I get you to send me the version of libxml2 using xml2-config? % xml2-config --version I might just report the problem to the author in the end, but currently I am just attempting to locate the problem. jonasbn -- AIM: BjonasN Gtalk: [EMAIL PROTECTED] ICQ: 62401545 MSN: [EMAIL PROTECTED] On 07/08/2007, at 15.19, Lola J. Lee Beno wrote: jonasbn wrote: I can replicate the failing tests here. What version of xmllib do you have installed btw. Try: xmllint --version Should report the version. xmllint: using libxml version 20616 compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude Iconv Unicode Regexps Automata Schemas -- Lola J. Lee Beno - ColdFusion Programmer/Web Designer for Hire http://www.lolajl.net/resume | Blog at http://www.lolajl.net/blog/ In rivers, the water that you touch is the last of what has passed and the first of that which comes; so with present time. - Leonardo da Vinci (1452-1519)
Re: Trying to Install WebService::Bloglines
Hello Lola, Get a later version of XML::Liberal, I can see from the CPAN testers reports that this version does not seem to have ever successfully completed a test run. http://cpantesters.perl.org/show/XML-Liberal.html#XML-Liberal-0.02 The latest version is 0.17 and the test suite seems to have been cleaned up. Just yell if you need assistance, jonasbn On 07/08/2007, at 3.55, Lola J. Lee Beno wrote: I'm trying to install this module, and there are two dependencies that need to first be installed - XML::Liberal 0.02 and XML::RSS::LibXML 0.09. So, I then proceeded to install XML::Liberal. having problems with MAKE TEST, and here's what shows up. It seems that the URLs are incorrect for some reason, as you can see at the bottom. How do I fix this so that this test won't fail? [ERROR] [Mon Aug 6 21:48:43 2007] MAKE TEST failed: PERL_DL_NONLAZY=1 /usr/bin/perl -MExtUtils::Command::MM -e test_harness(0, 'blib/lib', 'blib/arch') t/*.t t/01basic.ok t/02parse.ok t/03doc...ok t/04node..ok t/05text..ok t/06elements..ok 2/187 skipped: various reasons t/07dtd...ok t/08findnodes.ok t/09xpath.ok t/10nsok t/11memoryok 26/26 skipped: various reasons t/12html..ok 2/38 skipped: various reasons t/13dtd...ok t/14sax...ok t/15nodelist..ok t/16docnodes..ok t/17callbacks.ok t/18docfree...ok t/19encoding..ok t/20extrasok t/23rawfunctions..ok t/24c14n..# Test 15 got: n1:elem2 xmlns:n1= \http://example.net\; xmlns:xml=\http://www.w3.org/XML/1998/ namespace\ xml:lang=\en\\n n3:stuff xmlns:n3=\ftp:// example.org\/n3:stuff\n /n1:elem2 (t/24c14n.t at line 154) #Expected: n1:elem2 xmlns:n1=\http://example.net\; xml:lang= \en\\n n3:stuff xmlns:n3=\ftp://example.org\;/n3:stuff \n /n1:elem2 # t/24c14n.t line 154 is: ok( $c14n_res, $result); # Test 16 got: n1:elem2 xmlns:n1=\http://example.net\; xmlns:xml= \http://www.w3.org/XML/1998/namespace\; xml:lang=\en\\n n3:stuff xmlns:n3=\ftp://example.org\;/n3:stuff\n / n1:elem2 (t/24c14n.t at line 158) #Expected: n1:elem2 xmlns:n1=\http://example.net\; xml:lang= \en\\n n3:stuff xmlns:n3=\ftp://example.org\;/n3:stuff \n /n1:elem2 # t/24c14n.t line 158 is: ok( $c14n_res, $result); # Test 17 got: n1:elem2 xmlns:n1=\http://example.net\; xmlns:xml= \http://www.w3.org/XML/1998/namespace\; xml:lang=\en\\n n3:stuff xmlns:n3=\ftp://example.org\;/n3:stuff\n / n1:elem2 (t/24c14n.t at line 162) #Expected: n1:elem2 xmlns:n1=\http://example.net\; xml:lang= \en\\n n3:stuff xmlns:n3=\ftp://example.org\;/n3:stuff \n /n1:elem2 # t/24c14n.t line 162 is: ok( $c14n_res, $result); # Test 18 got: n1:elem2 xmlns:n1=\http://example.net\; xmlns:xml= \http://www.w3.org/XML/1998/namespace\; xml:lang=\en\\n n3:stuff xmlns:n3=\ftp://example.org\;/n3:stuff\n / n1:elem2 (t/24c14n.t at line 166) #Expected: n1:elem2 xmlns:n1=\http://example.net\; xml:lang= \en\\n n3:stuff xmlns:n3=\ftp://example.org\;/n3:stuff \n /n1:elem2 # t/24c14n.t line 166 is: ok( $c14n_res, $result); # Test 19 got: n1:elem2 xmlns:n1=\http://example.net\; xmlns:xml= \http://www.w3.org/XML/1998/namespace\; xml:lang=\en\\n n3:stuff xmlns:n3=\ftp://example.org\;/n3:stuff\n / n1:elem2 (t/24c14n.t at line 170) #Expected: n1:elem2 xmlns:n1=\http://example.net\; xml:lang= \en\\n n3:stuff xmlns:n3=\ftp://example.org\;/n3:stuff \n /n1:elem2 # t/24c14n.t line 170 is: ok( $c14n_res, $result); # Test 20 got: n1:elem2 xmlns:n1=\http://example.net\; xmlns:n2= \http://foo.example\; xmlns:xml=\http://www.w3.org/XML/1998/ namespace\ xml:lang=\en\\n n3:stuff xmlns:n3=\ftp:// example.org\/n3:stuff\n /n1:elem2 (t/24c14n.t at line 174) #Expected: n1:elem2 xmlns:n1=\http://example.net\; xmlns:n2= \http://foo.example\; xml:lang=\en\\n n3:stuff xmlns:n3= \ftp://example.org\;/n3:stuff\n /n1:elem2 # t/24c14n.t line 174 is: ok( $c14n_res, $result_n0n2); -- Lola J. Lee Beno - ColdFusion Programmer/Web Designer for Hire http://www.lolajl.net/resume | Blog at http://www.lolajl.net/blog/ In rivers, the water that you touch is the last of what has passed and the first of that which comes; so with present time. - Leonardo da Vinci (1452-1519)
Re: Trying to Install WebService::Bloglines
Hi Lola, The errors come from XML::LibXML. I can replicate the failing tests here. What version of xmllib do you have installed btw. Try: xmllint --version Should report the version. jonasbn On 07/08/2007, at 14.23, Lola J. Lee Beno wrote: jonasbn wrote: Hello Lola, Get a later version of XML::Liberal, I can see from the CPAN testers reports that this version does not seem to have ever successfully completed a test run. http://cpantesters.perl.org/show/XML-Liberal.html#XML- Liberal-0.02 The latest version is 0.17 and the test suite seems to have been cleaned up. Checking the install log, it looks like XML-Liberal-0.17 is what was downloaded for install. Seems that the test suite is still messed up. -- Lola J. Lee Beno - ColdFusion Programmer/Web Designer for Hire http://www.lolajl.net/resume | Blog at http://www.lolajl.net/blog/ In rivers, the water that you touch is the last of what has passed and the first of that which comes; so with present time. - Leonardo da Vinci (1452-1519)
PDFLib
I am currently working on a bingo game in Perl (its a long story). The next step in the development is to be able to produce bingo plates and I have been given some code dependent on PDFLib from a kind soul. I have downloaded the PDFLib tarball from www.pdflib.com, but I cannot seem to find any installation guidelines, and the package looks somewhat weird. have any of you installed these libraries, and can provide me with a link or a brief explanation on how to proceed? jonasbn