Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Installing File::find module

by asifk1981 (Novice)
on Dec 08, 2004 at 09:55 UTC ( [id://413140]=perlquestion: print w/replies, xml ) Need Help??

asifk1981 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, I need to reinstall the File::find module alone in my perl 5.8 installtion. When I got on to the CPAN site and searched for File::Find module, it gave me the entire "perl-5.8.6.tar.gz". Is there a way by which I can reinstall the File::Find module alone on my existing perl 5.8 installtion? Or do I necessarily need to reinstall the entire perl package for this? Please shed some light in to this....This is a bit urgent.

Replies are listed 'Best First'.
Re: Installing File::find module
by gellyfish (Monsignor) on Dec 08, 2004 at 10:07 UTC

    Er, why do you need to install File::Find in the first place? If as I guess some stuff has been randomly deleted by mistake then, if you are absolutely sure that it is only this file that has been deleted, then you could just copy the file from the source distribution to the appropriate place, if on the other hand you are not sure what has been deleted then you will almost certainly need to reinstall your Perl

    /J\

Re: Installing File::find module
by ercparker (Hermit) on Dec 09, 2004 at 07:17 UTC
    well per one of the last suggestions. once you executed :
    perl -MCPAN -e 'shell'
    you get the following message and you'll be at a cpan prompt
    cpan shell -- CPAN exploration and modules installation (v1.7601) ReadLine support available (try 'install Bundle::CPAN')
    once here you can install a module:
    install File::Find
    you can also get the Find.pm module here
Re: Installing File::find module
by asifk1981 (Novice) on Dec 08, 2004 at 10:29 UTC
    Hi Monks, I am here to provide more details. The reason why I want to reinstall File:: Fine module is that, I have noticed that the Find.pm file under the File directory of perl library in one of my HP:UX boxes is corrupted. Is it enough if I copy the correct Find.pm file from a different server and replace this corrupted Fine.pm file? Do I need to do any thing else for the change in Find.pm to take effect or just mere replacing will do?
      yes, as we wrote - just replace it, and everything should be fine in this case.
Re: Installing File::find module
by 2ge (Scribe) on Dec 08, 2004 at 10:08 UTC
    Hi!

    so you changed the source code, or deleted the file ? Why you don't go to CPAN and don't find that module ? You always could save source code and save it to right place.
Re: Installing File::find module
by asifk1981 (Novice) on Dec 09, 2004 at 06:29 UTC
    Hi Monks, I have replaced the Find.pm file with the correct file and noticed that the problem still persists. Hence I think I need to reinstall the File::Find module itself, rather than just replacing the Find.pm file. Please advice me on how do I proceed with installing the module alone.As suggested by sasikumar I have tried with perl -MCPAN -e 'shell' since mine is a hp-ux box. But It throws me a message as follows: "cpan shell -- CPAN exploration and modules installation (v1.61) ReadLine support available (try 'install Bundle::CPAN')" And as said earlier CPAN site gives me the entire perl5.8 package when I searched for File::Find module alone. Please shed some light....
      Hi Monks, I have replaced the Find.pm file with the correct file and noticed that the problem still persists.
      What problem? I have a feeling there is no "problem" and that you're just doing something foolish.
      Please advice me on how do I proceed with installing the module alone.
      Read perlmodinstall.
      And as said earlier CPAN site gives me the entire perl5.8 package when I searched for File::Find module alone. Please shed some light.
      File::Find comes with perl, so just reinstall perl.
Re: Installing File::find module
by asifk1981 (Novice) on Dec 09, 2004 at 08:21 UTC
    Please refer to the thread with heading " File::Find hogging memmory". I have already posted the issue that i have faced with the File::Find module earlier under this heading. In order to rectify this issue only I am re-installing the File::Find module. Please provide me with some inputs on this.....
Re: Installing File::find module
by asifk1981 (Novice) on Dec 09, 2004 at 15:58 UTC
    Here I am posting the script.

    Edited by davido: Added readmore tags per consideration consensus.

      I was just dealing with a similar issue on the perl5-porters mailing list. On that ticket, based on the directories used on HP-UX, the perl installed at /usr/local/bin/perl was 5.005002. Since I've been working on HP-UX 11.0 for about five years that seems about right.

      Please confirm the version of Perl used in your script by performing a /usr/local/bin/perl -v and let us know what you find.

Re: Installing File::find module
by sasikumar (Monk) on Dec 08, 2004 at 10:10 UTC
    Hi
    Which operating system are u using ?
    If Windows then use ppm to install it for u
    If unix based
    Then try with perl -MCPAN -e 'shell'
    Then install File::find

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found