Skip Menu |

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 76640
Status: resolved
Priority: 0/
Queue: Perl-Dist-Strawberry

Owner: Nobody in particular
Requestors: marcmontu [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: %~dp0 on cpanm.bat
Download (untitled) / with headers
text/plain 1.4k
On Windows Vista, just after downloading the portable version ( - May 2011) I've attemped to use cpanminus, as sugested at I've installed it through command 'cpan App::cpanminus', and it seems to install ok. But when try to use it I receive the following message: C:\MyFolder\Portable\PortableApps\gVimPortable>cpanm '"C:\MyFolder\Portable\PortableApps\strawberry-perl-\perl\site\bin\perl.exe"' is not recognized as an internal or external command, operable program or batch file. You do not have Perl in your PATH. But it seems that I do have perl in my path: C:\MyFolder\Portable\PortableApps\gVimPortable>perl -v This is perl 5, version 12, subversion 3 (v5.12.3) built for MSWin32-x86-multi-thread : : I've managed to solve the issue, by replacing 2 lines at strawberry-perl-\perl\site\bin\cpanm.bat: "%~dp0perl.exe" -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9 with "perl.exe" -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9 and "%~dp0perl.exe" -x -S %0 %* with "perl.exe" -x -S %0 %* I've performed a search on perl installation and there are around 150 similar lines, but on .bat files that show no problem as they are on perl\bin folder, which contains the perl.exe (%~dp0 means the directory where the batch file is stored). I was wondering if it is possible to change the cpanm.bat file that is shipped with strawberry perl portable. Thanks, mMont
Subject: Re: [ #76640] %~dp0 on cpanm.bat
Date: Tue, 17 Apr 2012 22:37:13 +0200
To: bug-Perl-Dist-Strawberry [...]
From: Kmx <kmx [...]>
Please try strawberry portable, portable 5.12 is buggy
Download (untitled) / with headers
text/plain 206b
Indeed, with version the problem doesn't occurs. The cpanm.bat file seems to be the same, with "%~dp0perl.exe", but now the file lies in perl\bin folder so there is no error. Thanks for your help!

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to