Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Tk::TableMatrix won't build on Strawberry 5.26.0

by syphilis (Archbishop)
on Jul 22, 2017 at 00:54 UTC ( [id://1195751]=note: print w/replies, xml ) Need Help??


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

Anyone know how to work through this?

As an interim solution:

1) Hide Strawberry's fake 'dmake' (strawberry/c/bin/dmake.exe) and make sure you have a functioning 'dmake.exe' in your path:
set PATH=%PATH%;C:\path\to_dmake
2) cd to the Tk-TableMatrix-1.23 source directory (which you'll find in your cpan build directory).

3) Run:
perl Makefile.PL MAKE=dmake dmake test dmake install
Then reinstate Strawberry's fake 'dmake' if you so wish.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Tk::TableMatrix won't build on Strawberry 5.26.0
by aplonis (Pilgrim) on Jul 22, 2017 at 14:40 UTC

    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>
      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
      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>

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-19 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found