I think you missed something with StrawberryPerl. If you're using ZIP-Distribution, the Zip-File normally contains two batch files on toplevel: Udate_env.bat Relocation.bat
Installation is quite easy: * Unpack Strawberry-ZIP to ANY directory you like * Run Update_ENV.bat (puts necessary Path-entries in your environment) * Run Relocation.bat. This adapts all base-pathes within StrawberryPerl to your destination folder. * Logout/login to activate new path entries ... That's it I think you missed running relocation.bat The default basepath is C:\Strawberry ... and this is automatically adapted to your installation folder by running relocation.bat. Using this mechanism it's quite easy to transfer your perl installation (including all locally installed packages) to an other machine: copy your perl-directory to the new machine, run the scripts, logout/login ... that's it. Hth Jo -----Ursprüngliche Nachricht----- Von: Abel Nijdam via RT [mailto:[email protected]] Gesendet: Mittwoch, 13. April 2011 22:48 An: [email protected] Betreff: Re: [rt.cpan.org #67380] Problems with install PAR::Packer 1.009 on Strawberry Perl 5.12.2 on WinXP. Wed Apr 13 16:47:40 2011: Request 67380 was acted upon. Transaction: Correspondence added by [email protected] Queue: PAR-Packer Subject: Re: [rt.cpan.org #67380] Problems with install PAR::Packer 1.009 on Strawberry Perl 5.12.2 on WinXP. Broken in: (no value) Severity: (no value) Owner: RSCHUPP Requestors: [email protected] Status: open Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=67380 > Got it! Tried to install from (as I said) strawberry-perl-5.12.2.0.msi, on my scratch-drive D: to drive E:\strawberry, but also this is not a good idea! Install works fine, but every install of extra modules (as I need for instance Net::Telnet and Net::Telnet::Brcd, and last PAR::Packer) goes to C:\strawberry instead of E:\strawberry! So that's not a good idea also... Cleaned again my installs, took strawberry-perl-5.12.2.0.msi again, but now I installed it to the default, C:\strawberry and YES: all further installs of the modules I need, went to this very same structure, C:\strawberry... And finally, I was succesful in installing PAR::Packer 1.009 (all the tests were completed OK), and that's what it was all about. Now I have pp available and can start testing. Take my existing perl-scripts (running as executables on several servers), make the desired changes, make new executables of these new / changed scripts with pp and see, what happens! Thanks for all your support, after all it wasn't the PAR::Packer 1.009 at all, but all my problems were caused by the unability of several strawberry installs to deal with installing strawberry on anything else than drive C:.....!! The makers / builders / maintainers of strawberry distributions should make changes to their distributions, because the installer lets you choose where to install strawberry, but it only works (without any changes) on drive C: ! Regards, cheers, Abel. 2011/4/12 Abel Nijdam <[email protected]> > Changed pl2bat.bat (took it from strawberry-perl-5.12.0.1.zip) and tried to > install PAR::Packer 1.009 again, but this made things only worse... > My build was from strawberry-perl-5.12.2.0-portable.zip > I will clean this install, then take the install from > strawberry-perl-5.12.2.0.msi, add the required modules and PAR::Packer 1.009 > again (as you did), and will see, what happens... > Will keep you posted! > > Regards, Abel. > > 2011/4/12 Roderich Schupp via RT <[email protected]> > >> <URL: https://rt.cpan.org/Ticket/Display.html?id=67380 > >> >> On 2011-04-12 08:45:52, [email protected] wrote: >> > But I am running Strawberry Perl 5.12.2.0, and with this (latest) >> version, >> > the first lines of pl2bat.bat are: >> > >> > @rem = '--*-Perl-*-- >> > @echo off >> > if "%OS%" == "Windows_NT" goto WinNT >> > "%~dp0perl.exe" -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9 >> >> Err, I just did a clean install of Strawberry 5.12.2.0 >> (downloaded the MSI from strawberryperl.com) >> and this is NOT what I'm seeing - mine's the same as in 5.12.0. >> Anyway, "%~dp0perl.exe" is horribly wrong, just >> replace it with simply perl.exe everywhere in pl2bat.bat >> and then re-build PAR::Packer. >> >> Cheers, Roderich >> >> > goto endofperl >> > :WinNT >> > "%~dp0perl.exe" -x -S %0 %* >> > if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl >> > if %errorlevel% == 9009 echo You do not have Perl in your PATH. >> > if errorlevel 1 goto script_failed_so_exit_with_non_zero_val 2>nul >> > goto endofperl >> > Now is my scratch-drive drive D: (install-files are there, as well as >> > build-dir etc...), and I've build Strawberry Perl 5.12.2.0 on >> > drive E:, so there is my perl (pointed to this location in my PATH). >> > >> > So this latest version of Strawberry Perl (5.12.2.0) isn't ready for >> > PAR::Packer 1.009 install? >> > >> > Regards, Abel. >> > >> > 2011/4/12 Roderich Schupp via RT <[email protected]> >> > >> > > <URL: https://rt.cpan.org/Ticket/Display.html?id=67380 > >> > > >> > > On 2011-04-11 16:14:08, [email protected] wrote: >> > > > "%~dp0perl.exe" -x -S %0 %* >> > > >> > > This is the culprit. It means: "call perl.exe on the same drive >> > > in the same directory as this batch file" which is totally bogus. >> > > >> > > pp.bat is generated by pl2bat.bat which usually comes with your >> > > Perl distribution. I checked with ActiveState Perl 5.10.1 and >> > > Strawberry Perl 5.12.0 and their pl2bat.bat doesn't generate >> > > such a line, so I suggest you look for some rogue pl2bat.bat >> > > in your PATH. >> > > >> > > Cheers, Roderich >> > > >> >> >> >> >
