Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1036752]
[hippo]: That was around April 1994. Fun times.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2018-06-22 09:47 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (123 votes). Check out past polls.