in reply to dmake error on portable Strawberry

Re: dmake error on portable Strawberry asks the right question: Which dmake are you running? Check with this one-liner:

C:\Users\alex>perl -E "say for grep -x,map qq[$_\\dmake.exe],split/;/, +$ENV{PATH}" C:\strawberry\c\bin\dmake.exe C:\Users\alex>

The first line contains the dmake that will run. If you want to run dmake from your flash stick (G:), then you should not see dmake in C:\strawberry as first entry. From the dmake error message, it looks like you invoked the dmake in C:\strawberry.

To use portable strawberry, you have to modify the environment. This is done by running portableshell.bat. See also the file README.txt in the top-level directory of the Strawberry-portable zip file. Relevant part:

How to use Strawberry Perl Portable?

  1. Extract strawberry portable ZIP into e.g. c:\myperl\
    Note: choose a directory name without spaces and non us-ascii characters
  2. Launch c:\myperl\portableshell.bat - it should open a command prompt window
  3. In the command prompt window you can:
    • run any perl script by launching
      c:\> perl c:\path\to\script.pl
    • install additional perl modules (libraries) from http://www.cpan.org/ by
      c:\> cpan Module::Name
    • run other tools included in strawberry like: perldoc, gcc, gmake ...
  4. If you want to use Strawberry Perl Portable not only from portableshell.bat, add c:\myperl\perl\site\bin, c:\myperl\perl\bin, and c:\myperl\c\bin to PATH variable

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: dmake error on portable Strawberry
by swl (Prior) on Sep 15, 2018 at 22:25 UTC

    An even shorter one-liner is:

    where dmake

    which on my Win10 system currently gives

    C:\berrybrew\5.28.0_64_PDL\c\bin\dmake.exe C:\Strawberry\c\bin\dmake.exe

    That does not change the fact that the root cause of the issue is that Strawberry perl uses gmake by default, as Haarg notes in 1222452.