Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

"deinistall" DateTime

by dhofmeister (Initiate)
on Oct 12, 2012 at 21:16 UTC ( #998787=perlquestion: print w/replies, xml ) Need Help??
dhofmeister has asked for the wisdom of the Perl Monks concerning the following question:

so that didn't go well...i was trying to install DateTime on my HPUX system. Here's the tail-end of the dialog:
Result: FAIL Failed 43/95 test programs. 3/3 subtests failed. DROLSKY/DateTime-0.77.tar.gz one dependency not OK (DateTime::TimeZone); additionally test harness +failed ./Build test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports DROLSKY/DateTime-0.77.tar.gz Running Build install make test had returned bad status, won't install without force Failed during this command: DROLSKY/DateTime-TimeZone-1.50.tar.gz : make NO cannot resolve + circular dependency DOLMEN/DateTime-TimeZone-HPUX-1.04.tar.gz : make NO cannot resolve + circular dependency DROLSKY/DateTime-0.77.tar.gz : make_test NO one depen +dency not OK (DateTime::TimeZone); additionally test harness f ailed

Unfortunately, cpanp wasn't able to uninstall it:
CPAN Terminal> u DateTime [MSG] No '/.cpanplus/custom-sources' dir, skipping custom sources [MSG] No '/.cpanplus/custom-sources' dir, skipping custom sources [MSG] No '/.cpanplus/custom-sources' dir, skipping custom sources This will uninstall the following modules: DateTime Note that if you installed them via a package manager, you probably should use the same package manager to uninstall them + Are you sure you want to continue? [y/N]: y Uninstalling 'DateTime' [ERROR] Module 'DateTime' is not installed, so cannot uninstall

Any thoughts about what to do? I'd like to get rid of it so that no one thinks it is actually installed (Find::File shows it).

Replies are listed 'Best First'.
Re: "deinistall" DateTime
by bart (Canon) on Oct 12, 2012 at 21:35 UTC
    You tried to install DateTime, but some test failed, so it wasn't installed. No need to uninstall it.
      yes, i know it didn't install. however when i run my nifty script to see what modules are installed (like i said before it's based on File::Find) it looks like it is installed:
      what_perl_modules |grep -i date /usr/local/lib/perl5/5.10.1/CPANPLUS/ /usr/local/lib/perl5/site_perl/5.10.1/PA-RISC2.0/Attribute/Params/Vali /usr/local/lib/perl5/site_perl/5.10.1/PA-RISC2.0/Params/ /usr/local/lib/perl5/site_perl/5.10.1/PA-RISC2.0/Params/ /usr/local/lib/perl5/site_perl/5.10.1/PA-RISC2.0/Params/ /usr/local/lib/perl5/site_perl/5.10.1/PA-RISC2.0/Params/Validate/ /usr/local/lib/perl5/site_perl/5.10.1/PA-RISC2.0/Params/Validate/ <<snip>>

      is it enough to just purge files?

        If you want to uninstall all of the dependencies that got installed when you tried to install DateTime, then yes, you just delete the files that were installed. Just be careful not to delete anything that existed before you tried to install the library.

        Though IMO, I don't think it hurts to have a few extra libraries installed (unless you're talking Switch).

        it looks like it is installed:

        No it doesn't, look again, Params::Validate is not DateTime

Re: "deinistall" DateTime
by davido (Archbishop) on Oct 13, 2012 at 16:34 UTC

    While it's "too late now", I haven't seen mentioned a technique that I hear people using all the time, and which might be useful to you in the future: Put the lib/ path where you're installing modules under version control. Just don't forget to commit between each install.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://998787]
Approved by bingos
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2018-06-18 08:02 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (109 votes). Check out past polls.