Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
go ahead... be a heretic
 
PerlMonks  

can't locate loadable object module error in perl.

by veerubiji (Sexton)
on Oct 19, 2011 at 09:15 UTC ( #932332=perlquestion: print w/ replies, xml ) Need Help??
veerubiji has asked for the wisdom of the Perl Monks concerning the following question:

Hi, i am using strawberry perl when I use to run with XML::Fast, it given error like Can't locate XML/Fast.pm, so i downloaded XML::Fast .tar.gz file from CPAN. and i extracted and i copied Fast.pm file and pasted in "vendor/lib/xml" after that I tried to run but now it given error like "Can't locate loadable object module XML::Fast @INC", I Google it to overcome this error, every body say it will come when you copy .pm file like that , I don't know how to overcome this problem.

Comment on can't locate loadable object module error in perl.
Re: can't locate loadable object module error in perl.
by moritz (Cardinal) on Oct 19, 2011 at 09:22 UTC
    You've got to properly install the module, not just copy Fast.pm. To do that, run
    perl Makefile.PL make test make install

    (or replace 'make' with the name of your make utility if there's no 'make' executable).

Re: can't locate loadable object module error in perl.
by syphilis (Canon) on Oct 19, 2011 at 09:29 UTC
    it given error like Can't locate XML/Fast.pm

    Yes, you need to install XML::Fast. On Strawberry Perl the simplest way to do that is to run:
    cpan -i XML::Fast
    so i downloaded XML::Fast .tar.gz file from CPAN. and i extracted

    Well ... that's another alternative ... but, having extracted the tarball, you then need to cd to the top level source folder (ie the folder that contains the Makefile.PL) and run, in succession:
    perl Makefile.PL dmake test dmake install
    I Google it to overcome this error, every body say it will come when you copy .pm file like that

    Not correct. That will work for some modules, but not perl extensions (such as XML::Fast) that contain code that needs to be compiled.

    Cheers,
    Rob

      hi, if i want run this command  cpan -i XML::Fast where should I run this in command prompt or cpan client, I tried on both but it it gives some errors.i installed strawberry perl in c folder. 2)for second option I tried to extract .tar.gz file it extracted to c directory and some folder. extracted folder name is "XML-Fast-0.08" this folder contains all files that i extracted. when I try with command prompt invalid internal or external like that. what should I do now.

        where should I run this in command prompt or cpan client

        Run at the command prompt.

        I tried on both but it it gives some errors

        What errors did you get (when run from the command prompt) ?

        extracted folder name is "XML-Fast-0.08" this folder contains all files that i extracted. when I try with command prompt invalid internal or external

        What command was it that was reported as "invalid" ?

        Cheers,
        Rob
Re: can't locate loadable object module error in perl.
by Anonymous Monk on Oct 19, 2011 at 09:48 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://932332]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2014-04-20 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (489 votes), past polls