Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Failure to cpanm PP on portable Strawberry Perl 24

by aplonis (Pilgrim)
on Jul 23, 2017 at 16:56 UTC ( #1195821=note: print w/replies, xml ) Need Help??


in reply to Tk::TableMatrix won't build on Strawberry 5.26.0

Seeking a workaround for the failure of cpanm to install Tk::TableMatrix in Starwberry Perl v26, I thought to maybe try it out in a portable installation of Strawberrry Perl 24, and that worked. So, finding success, I next went to install also the module PP, which promply failed.

The failure occurs here ...

A:\PP>cpanm pp --> Working on pp Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-Packer-1.037. +tar.gz ... OK Configuring PAR-Packer-1.037 ... OK ==> Found dependencies: Module::ScanDeps, Getopt::ArgvFile --> Working on Module::ScanDeps Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/Module-ScanDeps-1 +.24.tar.gz ... OK Configuring Module-ScanDeps-1.24 ... OK Building and testing Module-ScanDeps-1.24 ... OK Successfully installed Module-ScanDeps-1.24 --> Working on Getopt::ArgvFile Fetching http://www.cpan.org/authors/id/J/JS/JSTENZEL/Getopt-ArgvFile- +1.11.tar.gz ... OK Configuring Getopt-ArgvFile-1.11 ... OK Building and testing Getopt-ArgvFile-1.11 ... OK Successfully installed Getopt-ArgvFile-1.11 Building and testing PAR-Packer-1.037 ...

It fails with the pop-up herewith included. The pop-up occures six times in a row, like that over and over.

The pop-up says...

The procedure entry point _ZdlPvy could not be located in the dynamic link library C:\Strawberry\perl\bin\perl526.dll

Just to be sure there was no confusion with cpanm from my installed Strawberry on the c: drive, I tried it again like below, (first insuring that my prior installs had really taken)...

---------------------------------------------- Welcome to Strawberry Perl Portable Edition! * URL - http://www.strawberryperl.com/ * see README.TXT for more info ---------------------------------------------- Perl executable: A:\PP\perl\bin\perl.exe Perl version : 5.24.2 / MSWin32-x64-multi-thread A:\PP>A:\PP\perl\bin\perl.exe -e "use Tk"; A:\PP>A:\PP\perl\bin\perl.exe -e "use Tk::TableMatrix"; A:\PP>A:\PP\perl\bin\cpanm.exe PP 'A:\PP\perl\bin\cpanm.exe' is not recognized as an internal or externa +l command, operable program or batch file. A:\PP>A:\PP\perl\bin\cpanm PP ! Finding PP on cpanmetadb failed. --> Working on PP Fetching http://backpan.perl.org/authors/id/L/LU/LUKKA/PDL-PP-0.010.ta +r.gz ... OK Configuring PDL-PP-0.010 ... N/A ! Configure failed for PDL-PP-0.010. See A:\PP\data\.cpanm\work\150082 +8689.4884\build.log for details. A:\PP>A:\PP\perl\bin\cpanm PAR::Packer --> Working on PAR::Packer Fetching http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-Packer-1.037. +tar.gz ... OK Configuring PAR-Packer-1.037 ... OK Building and testing PAR-Packer-1.037 ...

...but results were as before.

Replies are listed 'Best First'.
Re: Failure to cpanm PP on portable Strawberry Perl 24
by afoken (Canon) on Jul 23, 2017 at 17:10 UTC
    Seeking a workaround for the failure of cpanm to install Tk::TableMatrix in Starwberry Perl v26, I thought to maybe try it out in a portable installation of Strawberrry Perl 24, and that worked. So, finding success, I next went to install also the module PP, which promply failed. ... The procedure entry point _ZdlPvy could not be located in the dynamic link library C:\Strawberry\perl\bin\perl526.dll

    You are mixing at least two perl versions. Clean up $ENV{PATH}, build directories, and Registry. Avoid having more than one Perl installed. Always build with the target perl. Perl does not guarantee binary compatibility between different versions.

    And by the way: Please stay in the original thread.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re: Failure to cpanm PP on portable Strawberry Perl 24
by syphilis (Bishop) on Jul 24, 2017 at 00:23 UTC
    The procedure entry point _ZdlPvy could not be located in the dynamic link library C:\Strawberry\perl\bin\perl526.dll

    This is indicates that an attempt to load perl526.dll is being made. But that's the wrong dll - perl5.24.x needs to load perl524.dll.
    This can be addressed by ensuring that the location of perl-5.24 appears before the location of perl-5.26 in the path.
    But you'll also want to ensure that the correct compiler is being used. For strawberry 5.24 gcc --version should indicate version 4.9.2, while for strawberry 5.26, gcc --version should indicate version 7.1.0.
    If this is not the case it, too, can be fixed by fiddling with the PATH.

    It's actually fairly easy to use different versions of Strawberry Perl on the one machine. You just make sure that you install only the 'portable' builds, and that you start the perl of your choice by double-clicking on 'portableshell.bat' (which is in the top level Strawberry Perl directory).

    Incidentally, cpanm is a batch file (.bat) not a .exe.

    Cheers,
    Rob

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2019-07-20 02:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?