http://www.perlmonks.org?node_id=1195780


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

Okay, tried that. Could not get past first line of step 3. These are the errors...

For a dmake.exe I unzipped a source for Strawberry Perl 5.24.2.1, since somebody said TableMatrix built okay for 5.24. I then renamed the fake original as _dmake.exe and copied in the new dmake.exe to the same directory.

C:\Strawberry\cpan\build\Tk-TableMatrix-1.23-0>perl MakeFile.PL MAKE=d +make ### Note: 'Building Outside of Tk itself' Messages are Expected Here # +### PPM for perl5.026000 Test Compiling config/signedchar.c gcc: error: config/signedchar.c: No such file or directory gcc: fatal error: no input files compilation terminated. Test Compile/Run config/unsigned.c gcc: error: config/unsigned.c: No such file or directory gcc: fatal error: no input files compilation terminated. Test Compiling config/Ksprintf.c gcc: error: config/Ksprintf.c: No such file or directory gcc: fatal error: no input files compilation terminated. Test Compiling -DSPRINTF_RETURN_CHAR config/Ksprintf.c gcc: error: config/Ksprintf.c: No such file or directory gcc: fatal error: no input files compilation terminated. C:/Strawberry/cpan/build/Tk-TableMatrix-1.23-0 does not start with C:/ +Strawberry/perl/site/lib i.e. building outside Tk itself C:/Strawberry/cpan/build/Tk-TableMatrix-1.23-0/pTk does not start with + C:/Strawberry/perl/site/lib i.e. building outside Tk itself Generating Dependencies for MSWin32, win_arch=MSWin32 Test Compiling config/Hstrtoul.c gcc: error: config/Hstrtoul.c: No such file or directory gcc: fatal error: no input files compilation terminated. Test Compiling config/Hstrdup.c gcc: error: config/Hstrdup.c: No such file or directory gcc: fatal error: no input files compilation terminated. Test Compiling config/Hstrcasecmp.c gcc: error: config/Hstrcasecmp.c: No such file or directory gcc: fatal error: no input files compilation terminated. Finding dependencies for tkTable.c Finding dependencies for tkTableCell.c Finding dependencies for tkTableCellSort.c Finding dependencies for tkTableCmds.c Finding dependencies for tkTableEdit.c Finding dependencies for tkTableTag.c Finding dependencies for tkTableUtil.c Finding dependencies for tkTableWin.c Finding dependencies for TableMatrix.xs C:\Strawberry\cpan\build\Tk-TableMatrix-1.23-0>

Replies are listed 'Best First'.
Re^3: Tk::TableMatrix won't build on Strawberry 5.26.0
by syphilis (Archbishop) on Jul 23, 2017 at 02:34 UTC
    These are the errors...

    Yes, that's the same as I get - but, as Anonymous Monk has intimated, you just need to run the remaining commands:
    dmake dmake test dmake install
    (It's not really necessary to run 'dmake' ahead of 'dmake test' - hence I generally leave out that step.)

    Those "error" messages are just part of some configuration testing being done prior to generating the Makefile.
    I think their aim is to determine whether Tk::TableMatrix is being built as part of Tk - which it isn't.

    Cheers,
    Rob
Re^3: Tk::TableMatrix won't build on Strawberry 5.26.0
by Anonymous Monk on Jul 23, 2017 at 01:27 UTC
    what happens when you run 'dmake'?

      As requested, so below is the entire result from running all the commands in sequence despite the first one failing...

      c:\Strawberry\cpan\build\Tk-TableMatrix-1.23-0>perl Makefile.PL MAKE=d +make ### Note: 'Building Outside of Tk itself' Messages are Expected Here # +### C:\Strawberry\perl\bin\perl.exe is installed in C:\STRAWB~1\perl\lib o +kay PPM for perl5.026000 Test Compiling config/signedchar.c gcc: error: config/signedchar.c: No such file or directory gcc: fatal error: no input files compilation terminated. Test Compile/Run config/unsigned.c gcc: error: config/unsigned.c: No such file or directory gcc: fatal error: no input files compilation terminated. Test Compiling config/Ksprintf.c gcc: error: config/Ksprintf.c: No such file or directory gcc: fatal error: no input files compilation terminated. Test Compiling -DSPRINTF_RETURN_CHAR config/Ksprintf.c gcc: error: config/Ksprintf.c: No such file or directory gcc: fatal error: no input files compilation terminated. c:/Strawberry/cpan/build/Tk-TableMatrix-1.23-0 does not start with C:/ +Strawberry/perl/site/lib i.e. building outside Tk itself C:/Strawberry/cpan/build/Tk-TableMatrix-1.23-0/pTk does not start with + C:/Strawberry/perl/site/lib i.e. building outside Tk itself Generating Dependencies for MSWin32, win_arch=MSWin32 Test Compiling config/Hstrtoul.c gcc: error: config/Hstrtoul.c: No such file or directory gcc: fatal error: no input files compilation terminated. Test Compiling config/Hstrdup.c gcc: error: config/Hstrdup.c: No such file or directory gcc: fatal error: no input files compilation terminated. Test Compiling config/Hstrcasecmp.c gcc: error: config/Hstrcasecmp.c: No such file or directory gcc: fatal error: no input files compilation terminated. Finding dependencies for tkTable.c Finding dependencies for tkTableCell.c Finding dependencies for tkTableCellSort.c Finding dependencies for tkTableCmds.c Finding dependencies for tkTableEdit.c Finding dependencies for tkTableTag.c Finding dependencies for tkTableUtil.c Finding dependencies for tkTableWin.c Writing MYMETA.yml and MYMETA.json Writing MYMETA.yml and MYMETA.json Finding dependencies for TableMatrix.xs Generating a dmake-style Makefile Writing Makefile for Tk::TableMatrix Writing MYMETA.yml and MYMETA.json c:\Strawberry\cpan\build\Tk-TableMatrix-1.23-0>dmake test dmake: Error: -- Configuration file `C:\Strawberry\c\bin\startup\star +tup.mk' not found c:\Strawberry\cpan\build\Tk-TableMatrix-1.23-0>dmake install dmake: Error: -- Configuration file `C:\Strawberry\c\bin\startup\star +tup.mk' not found c:\Strawberry\cpan\build\Tk-TableMatrix-1.23-0>
        dmake: Error: -- Configuration file `C:\Strawberry\c\bin\startup\startup.mk' not found

        You need a functional 'dmake'exe' and that one is not functional because 'startup.mk' can't be found.

        You probably just need to copy the 'startup' directory across to Strawberry/c/bin. You should find that 'startup' directory in the same directory that contained 'dmake.exe'.

        Cheers,
        Rob