Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: ppm profile failed: Can't determine best

by syphilis (Archbishop)
on Sep 22, 2012 at 00:17 UTC ( [id://995013]=note: print w/replies, xml ) Need Help??


in reply to Re^2: ppm profile failed: Can't determine best
in thread ppm profile failed: Can't determine best

I didn't know that

Actually, I was just *guessing* that "restoring" ActivePerl-5.14 from a profile file that listed the 5.10 values for ACTIVEPERL VERSION and the repository HREF would cause problems. PERL VERSION and PPM VERSION (which I failed to notice at my first glance at a generated profile file) would also be set to the 5.10 values instead of the 5.14 ones.

Cheers,
Rob

Replies are listed 'Best First'.
Re^4: ppm profile failed: Can't determine best
by BrowserUk (Patriarch) on Sep 22, 2012 at 00:22 UTC

    I also had to hack in a --force option to the installs otherwise it refuses to replace a file with an identical file alredy installed by another package!

    Funnily enough, the file in question was an old freind :) :

    ppm profile failed: File conflict for 'c:/perl64/site/bin/libgcc_sis__ +470.dll'. The package Cairo has already installed a file that package Const- +Fast wants to install.

    Unfortunately, running it again means it re-downloads everything it had already downloaded.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    RIP Neil Armstrong

      Funnily enough, the file in question was an old freind :)

      /me withdraws the bat and impassively watches as the ball passes through to the keeper ... ;-)

      It really is a pitfa that ActiveState decided to add this "feature" to PPM ... and that they implemented it in the way they have. There are a number of solutions, including the ones that you and bulk88 came up with - but none with which I'm (yet) all that comfortable.

      Btw, PAR-Dist-InstallPPD will install the ppm packages without any problems - but it's not sophisiticated enough to deal automatically with pre-requisite modules and post install scripts. (Here's a demo script that installs PDL and dependencies using that module.)
      Maybe I should get a version released that *does* understand how to handle post-install scripts and prerequisite modules. It's probably not of great interest to those who have ActivePerl, but is handy for any perl distros that don't have a satisfactory PPM utility.

      Unfortunately, running it again means it re-downloads everything it had already downloaded

      I would have hoped that it would be a simple editing operation to remove those packages that had already been installed from the profile file (prior to running again). Of course, if the upgrade doesn't process those packages in the same sequence as they are listed in the profile file, then such editing will not be so simple ...

      Cheers,
      Rob
        I would have hoped that it would be a simple editing operation to remove those packages that had already been installed from the profile file

        It was unclear to me from the scant information displayed guring the first run whether the packages had been downloaded and installed; or just downloaded to then be installed. Mercifully, most ppms are relatively small and the process runs quite quickly < 10 minutes for close to 300 packages.

        Certainly a lot faster than rebuilding and installing all the cpan packages I am also transferring over.


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

        RIP Neil Armstrong

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-03-19 05:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found