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

I am using ppm 3.1 and trying to upgrade some packages. It tells me there is an upgrade, but won't install it for me:
ppm> upgrade Spreadsheet-WriteExcel Spreadsheet-WriteExcel 0.41: new version 0.42 available in ActiveState + PPM2 Repository ppm> upgrade Spreadsheet-WriteExcel -install Spreadsheet-WriteExcel 0.41: new version 0.42 available in ActiveState + PPM2 Repository ppm> upgrade Spreadsheet-WriteExcel -install -force Spreadsheet-WriteExcel 0.41: new version 0.42 available in ActiveState + PPM2 Repository ppm> upgrade Spreadsheet-WriteExcel -install -force -precious Spreadsheet-WriteExcel 0.41: new version 0.42 available in ActiveState + PPM2 Repository ppm> ppm> version PPM - Programmer's Package Manager version 3.1 ppm>
I'm also having trouble trying to upgrade or reinstall a module when it is coming from a different repository:
ppm> query XML-Simple Using cached query result set 1. 1. XML-Simple [1.06] Easy API to read/write XML (esp config files) ppm> search XML-Simple Using cached search result set 1. 1. XML-Simple [2.09] Easy API to maintain XML (esp config files) 2. XML-Simpler [1.00] Simpler API for handling XML 3. XML-Simpler [1.00] (none) ppm> install 1 -force Package 1: Note: Package 'XML-Simple' is already installed. ppm> upgrade XML-Simple -install -force -precious XML-Simple 1.06: new version 2.09 available in theory ppm>
How can I make PPM do what I want it to do?

Thanks

rkg

Replies are listed 'Best First'.
Re: ppm 3.1 upgrade -install
by Anonymous Monk on Sep 23, 2003 at 21:03 UTC

    The activestate website (for some reason I wanted to call it the activesite webstate) has an archive of the ppm mailing list. Perusing that reveals a ton of problems with ppm 3.0 and 3.1, so I expect it's broken. One of the posts includes a patch you could apply to try to work. They also suggest uninstalling and reinstalling. The list I'm talking about is here: http://aspn.activestate.com/ASPN/Mail/Browse/Threaded/ppm/1689481

Re: ppm 3.1 upgrade -install
by jmcnamara (Monsignor) on Sep 30, 2003 at 10:43 UTC

    You can also install the latest version of Spreadsheet::WriteExcel using ppm2 or ppm3 directly from my repository. I normally upload a Spreadsheet::WriteExcel ppm file at the same time as submitting a release to CPAN.

    The following is a sample ppm3 session where the repository is added and the module is upgraded. The Activestate repositories are turned off to ensure that ppm finds the ppd on the writeexcel site first. You should turn them on again when the download is complete.

    ppm> rep add writeexcel http://homepage.eircom.net/~jmcnamara/per +l Repositories: [1] ActiveState PPM2 Repository [2] ActiveState Package Repository [3] writeexcel ppm> rep off "ActiveState Package Repository" ppm> rep off "ActiveState PPM2 Repository" ppm> rep Repositories: [1] writeexcel [ ] ActiveState Package Repository [ ] ActiveState PPM2 Repository ppm> upgrade Spreadsheet-WriteExcel Spreadsheet-WriteExcel 0.41: new version 0.42 available in writeex +cel ppm> upgrade -install Spreadsheet-WriteExcel Spreadsheet-WriteExcel 0.41: new version 0.42 available in writeex +cel ==================== Upgrade 'http://homepage.eircom.net/~jmcnamara/perl/Spreadsheet-Wr +iteExcel.ppd' version 0.42 in ActivePerl 5.6.1.635. ==================== Downloaded 454742 bytes. Extracting 100/100: blib/html/lib/Spreadsheet/WriteExcel.html Successfully upgraded Spreadsheet-WriteExcel version 0.42 in ActivePerl 5.6.1.635. ppm> version PPM - Programmer's Package Manager version 3.0.1

    --
    John.

Re: ppm 3.1 upgrade -install
by Mr. Muskrat (Canon) on Sep 23, 2003 at 19:01 UTC
    Have you tried upgrade -install Spreadsheet-WriteExcel?
      PPM - Programmer's Package Manager version 3.1. Copyright (c) 2001 ActiveState SRL. All Rights Reserved. Entering interactive shell. Using Term::ReadLine::Stub as readline lib +rary. Type 'help' to get started. ppm> upgrade -install Spreadsheet-WriteExcel Spreadsheet-WriteExcel 0.41: new version 0.42 available in ActiveState + PPM2 Repository ppm>

      Yep.

      Didn't work either.

      rkg