Giter Club home page Giter Club logo

Comments (14)

y avatar y commented on August 22, 2024

XML::SAX with perlbrewed 5.12.3 on OS X 10.6.6

build and test work fine, but it fails on install with:

Can't locate XML/SAX.pm in @INC (@INC contains: /Users/yi/.perl5/perlbrew/perls/p512/lib/site_perl/5.12.3/darwin-2level /Users/yi/.perl5/perlbrew/perls/p512/lib/site_perl/5.12.3 /Users/yi/.perl5/perlbrew/perls/p512/lib/5.12.3/darwin-2level /Users/yi/.perl5/perlbrew/perls/p512/lib/5.12.3 .).
BEGIN failed--compilation aborted.
make: *** [install_sax_pureperl] Error 2

This is a known problem: https://rt.cpan.org/Public/Bug/Display.html?id=62289 and
https://rt.cpan.org/Public/Bug/Display.html?id=62330
but it looks it might have to be worked around as the author appears to not be maintaining the distribution anymore.

from cpanminus.

miyagawa avatar miyagawa commented on August 22, 2024

I can't reproduce the XML::SAX error on perl 5.12.3 on Mac OS X.

from cpanminus.

y avatar y commented on August 22, 2024

Did XML::SAX already exist in your perl? After encountering the initial failure, I tweaked the Makefile.PL and installed it by hand. But after forcing cpanm to reinstall it, cpanm had no problems with it. I also had this same problem with XML::LibXML and just tested XML::SAX::Expat and same problem.

from cpanminus.

miyagawa avatar miyagawa commented on August 22, 2024

Did XML::SAX already exist in your perl?

It did but i deleted it with pm-uninstall first.

from cpanminus.

y avatar y commented on August 22, 2024

I have a vanilla perlbrewed install (perlbrew install perl-5.12.3 -as p512). Not sure why this only affects some people, but the previously referenced tickets do indicate others are experiencing the same problem.

from cpanminus.

miyagawa avatar miyagawa commented on August 22, 2024

Why did you not paste the whole build.log in the first place?

from cpanminus.

y avatar y commented on August 22, 2024

I thought it was irrelevant, but if you think it will help:

cpanm (App::cpanminus) 1.3001 on perl 5.012003 built for darwin-2level
Work directory is /Users/yi/.cpanm/work/1299436180.43086
You have make /usr/bin/make
You have LWP 5.837
You have /usr/bin/tar: bsdtar 2.6.2 - libarchive 2.6.2
You have /usr/bin/unzip
Searching XML::SAX on cpanmetadb ...
--> Working on XML::SAX
Fetching http://search.cpan.org/CPAN/authors/id/G/GR/GRANTM/XML-SAX-0.96.tar.gz
-> OK
Unpacking XML-SAX-0.96.tar.gz
Entering XML-SAX-0.96
Configuring XML-SAX-0.96
Running Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for XML::SAX::Base
Writing Makefile for XML::SAX
-> OK
Finding PREREQ from Makefile ...
Checking if you have XML::NamespaceSupport 0.03 ... Yes (1.11)
Checking if you have File::Temp 0 ... Yes (0.22)
Building and testing XML-SAX-0.96
cp SAX/PurePerl/Exception.pm blib/lib/XML/SAX/PurePerl/Exception.pm
cp SAX/PurePerl/UnicodeExt.pm blib/lib/XML/SAX/PurePerl/UnicodeExt.pm
cp SAX/ParserFactory.pm blib/lib/XML/SAX/ParserFactory.pm
cp SAX/PurePerl/DocType.pm blib/lib/XML/SAX/PurePerl/DocType.pm
cp SAX/PurePerl/NoUnicodeExt.pm blib/lib/XML/SAX/PurePerl/NoUnicodeExt.pm
cp SAX/PurePerl/Reader/UnicodeExt.pm blib/lib/XML/SAX/PurePerl/Reader/UnicodeExt.pm
cp SAX/DocumentLocator.pm blib/lib/XML/SAX/DocumentLocator.pm
cp SAX/PurePerl/Reader/Stream.pm blib/lib/XML/SAX/PurePerl/Reader/Stream.pm
cp SAX/PurePerl/EncodingDetect.pm blib/lib/XML/SAX/PurePerl/EncodingDetect.pm
cp SAX.pm blib/lib/XML/SAX.pm
cp SAX/PurePerl/DebugHandler.pm blib/lib/XML/SAX/PurePerl/DebugHandler.pm
cp SAX/PurePerl/Productions.pm blib/lib/XML/SAX/PurePerl/Productions.pm
cp SAX/PurePerl/XMLDecl.pm blib/lib/XML/SAX/PurePerl/XMLDecl.pm
cp SAX/PurePerl/Reader/NoUnicodeExt.pm blib/lib/XML/SAX/PurePerl/Reader/NoUnicodeExt.pm
cp SAX/PurePerl/Reader/String.pm blib/lib/XML/SAX/PurePerl/Reader/String.pm
cp SAX/PurePerl/Reader/URI.pm blib/lib/XML/SAX/PurePerl/Reader/URI.pm
cp SAX/Intro.pod blib/lib/XML/SAX/Intro.pod
cp SAX/PurePerl/DTDDecls.pm blib/lib/XML/SAX/PurePerl/DTDDecls.pm
cp SAX/PurePerl.pm blib/lib/XML/SAX/PurePerl.pm
cp SAX/PurePerl/Reader.pm blib/lib/XML/SAX/PurePerl/Reader.pm
cp lib/XML/SAX/placeholder.pl ../blib/lib/XML/SAX/placeholder.pl
cp lib/XML/SAX/Base.pm ../blib/lib/XML/SAX/Base.pm
cp lib/XML/SAX/Exception.pm ../blib/lib/XML/SAX/Exception.pm
Manifying ../blib/man3/XML::SAX::Base.3
Manifying ../blib/man3/XML::SAX::Exception.3
Manifying blib/man3/XML::SAX::DocumentLocator.3
Manifying blib/man3/XML::SAX.3
Manifying blib/man3/XML::SAX::PurePerl.3
Manifying blib/man3/XML::SAX::Intro.3
Manifying blib/man3/XML::SAX::ParserFactory.3
Manifying blib/man3/XML::SAX::PurePerl::Reader.3
PERL_DL_NONLAZY=1 /Users/yi/.perl5/perlbrew/perls/p512/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
PERL_DL_NONLAZY=1 /Users/yi/.perl5/perlbrew/perls/p512/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00basic.t ............. ok
t/01exception.t ......... ok
t/01simpledriver.t ...... ok
t/02simplefilter.t ...... ok
t/03chdriver.t .......... ok
t/00basic.t ...... ok
t/04chfilter.t .......... ok
t/01known.t ...... ok
t/05dtdhdriver.t ........ ok
t/06lexhdriver.t ........ ok
t/07declhdriver.t ....... ok
t/10xmldecl1.t ... ok
t/08errorhdriver.t ...... ok
t/09resoldriver.t ....... ok
t/10dochdriver.t ........ ok
t/11xmldecl2.t ... ok
t/11sax1multiclass.t .... ok
t/12sax2multiclass.t .... ok
t/13handlerswitch.t ..... ok
t/12miscstart.t .. ok
t/14downstreamswitch.t .. ok
t/15parentswitch.t ...... ok
t/16gethandlers.t ....... ok
All tests successful.
Files=18, Tests=137,  1 wallclock secs ( 0.11 usr  0.07 sys +  0.69 cusr  0.16 csys =  1.03 CPU)
Result: PASS
t/13int_ent.t .... ok
t/14encoding.t ... ok
t/15element.t .... ok
parsed 80085 bytes in 0 seconds
t/16large.t ...... ok
t/20factory.t .... ok
t/21saxini.t ..... ok
t/40cdata.t ...... ok
t/42entities.t ... ok
t/99cleanup.t .... ok
All tests successful.
Files=14, Tests=106,  3 wallclock secs ( 0.09 usr  0.06 sys +  1.98 cusr  0.25 csys =  2.38 CPU)
Result: PASS
Can't locate XML/SAX.pm in @INC (@INC contains: /Users/yi/.perl5/perlbrew/perls/p512/lib/site_perl/5.12.3/darwin-2level /Users/yi/.perl5/perlbrew/perls/p512/lib/site_perl/5.12.3 /Users/yi/.perl5/perlbrew/perls/p512/lib/5.12.3/darwin-2level /Users/yi/.perl5/perlbrew/perls/p512/lib/5.12.3 .).
BEGIN failed--compilation aborted.
make: *** [install_sax_pureperl] Error 2
make: *** Waiting for unfinished jobs....
-> FAIL Installing XML::SAX failed. See /Users/yi/.cpanm/build.log for details.

from cpanminus.

miyagawa avatar miyagawa commented on August 22, 2024

Just wanted to make sure what your perl and make is. I still can't reproduce the issue - since the target install_sax_pureperl is after pure_install target in Makefile, when you run the $(PERL) script the XML::SAX library is already installed in your site.

Are you using local::lib or other way to install modules to non-standard library path? What happens if you a) pm-uninstall -fn XML::SAX b) make pure_install and c) see perl -MXML::SAX can load XML::SAX? If not, where did they get installed?

from cpanminus.

y avatar y commented on August 22, 2024

Are you using local::lib or other way to install modules to non-standard library path?

No

What happens if you a) pm-uninstall -fn XML::SAX b) make pure_install and c) see perl -MXML::SAX can load XML::SAX?

That worked, it installed into /Users/yi/.perl5/perlbrew/perls/p512/lib/site_perl/5.12.3 with no problems.

from cpanminus.

miyagawa avatar miyagawa commented on August 22, 2024

That is so bizarre. It might be a) your make is broken and doesn't execute the make install target in the right order or b) your filesystem is broken (FileVault/NFS or anything crazy like that?) and can't load the files you just created.

from cpanminus.

y avatar y commented on August 22, 2024

My system make is GNU make 3.81. Macports lists the latest available version as 3.82. And my filesystem is the standard case-insensitive HFSJ with no FileVault or anything else.

from cpanminus.

miyagawa avatar miyagawa commented on August 22, 2024

Because this is a) not specific to cpanminus (it happens with other CPAN clients, that's absolutely author's responsibility to fix) and b) it's specific to your environment (and a couple of more, but not me at least), i'll close this issue.

Just out of curiosity, you should add 'sleep 3' or something to see to the Makefile.PL to see if it's a file system issue. Otherwise, you can run make -n install to see if your make runs the install target in the right order.

I told you what i can tell you. Good luck.

from cpanminus.

y avatar y commented on August 22, 2024

Thanks, you pointed me in the right direction. I had MAKEFLAGS set to '-j3'. Unsetting that fixed the problem.

from cpanminus.

miyagawa avatar miyagawa commented on August 22, 2024

Ha, that makes sense. It might be worth reporting back to the original author that is causing it.

from cpanminus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.