Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Delete/Reinstall Perl

by sundialsvc4 (Abbot)
on Jun 03, 2013 at 13:33 UTC ( #1036752=note: print w/ replies, xml ) Need Help??


in reply to Delete/Reinstall Perl

You should be able to resolve this problem, without Draconian action, once you fully understand it.

Use the set command to list the environment-variables, and see if PERL5LIB is among them, and if so, what does it say.   It should be a list of directories, separated by colon : characters.

Try cat ~/.bash_profile (notice the period ...) and see if it contains commands to set a value to that variable.   If so, type the same command again, minus the word cat, and try again what you did before.   If that throws an error, try substituting source for cat.   Or, log off and on again.

Try locate Format\.pm to see if the file is (or was ...) anywhere at all, and if so, where.

If you are using packages to maintain your system, try force-reinstalling the package that contains the module that you seek.

A convenient “one-liner” for checking if a module exists is: perl -MDate::Format -e '0;' ... or if you prefer ... perl -e 'use Date::Format;' ... in both cases using single quotes.

The command, perl -V, with a capital V, will produce a lot of information including the current and complete set of directories that will be searched (in order) to find any module.   It takes into account the $PERL5LIB setting along with everything else.


Comment on Re: Delete/Reinstall Perl
Re^2: Delete/Reinstall Perl
by oldcity13 (Initiate) on Jul 12, 2013 at 17:11 UTC
    After much thought and re installs of Ubuntu 12.04.2 I compared installed perl items from my laptop that the perl programs worked to the 12.04.2 install and found a number of missing lib functions missing. I installed the some 35 items and lo and behold the programs worked. I would be happy to furnish the list of missing lib items. oldcity13

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2014-12-29 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (194 votes), past polls