ashokpj has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

when i try to install Time-Piece module i getting this error. i already install Dev-C++ and Nmake in my system. i am using perl 5.8.8 and windows XP. Help me.

D:\Perl Module\Time-Piece-1.11>nmake test Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. gcc -c -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_F +CRYPT -DNO _HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT +_SYS -DUSE _PERLIO -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -fno-strict-aliasing -O2 + -DVERSI ON=\"1.11\" -DXS_VERSION=\"1.11\" "-IC:\Perl\lib\CORE" Piece.c Piece.xs: In function `_strptime': Piece.xs:758: warning: assignment makes pointer from integer without a + cast dlltool --def Piece.def --output-exp dll.exp g++ -o blib\arch\auto\Time\Piece\Piece.dll -Wl,--base-file -Wl +,dll.base -mdll -L"C:\Perl\lib\CORE" Piece.obj -Wl,--image-base,0x35470000 C:\P +erl\lib\CO RE\perl58.lib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladva +pi32 -lshe ll32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lver +sion -lodb c32 -lodbccp32 -lmsvcrt dll.exp g++: Piece.obj: No such file or directory NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x1'
Thanks ASHOK

Replies are listed 'Best First'.
Re: Error when install module in windows
by syphilis (Archbishop) on Jun 26, 2007 at 05:21 UTC
    Hi,
    Looks like same bug as dealt with here.

    I'm assuming you're running build 820 of ActivePerl. (If that's not the case, and you can't work out how to apply the fix, get back to us.)

    Cheers,
    Rob
Re: Error when install module in windows
by sago (Scribe) on Jun 26, 2007 at 09:17 UTC


    I tried to install Time-piece in my machine (windows XP, perl 5.8.8 and build 820)

    Go to C:\perl\bin\ppm....you will get a ppm window opened.
    In that go to Edit -> Preferences -> Repositories -> Add.

    Then Add the below lines.
    http://ppm4.activestate.com/MSWin32-x86/5.8/820/package.xml
    http://ppm.activestate.com/PPMPackages/zips/8xx-builds-only/Windows/

    In the main screen of ppm window, you have 4 options
    View all packages, View installed packages,View upgraded packages, View packages to install/remove.

    Click view all packages, then type time-piece in the search, once you got the module displayed, right click on it and click install. Then press Ctrl+Enter for installation of module.

    You will see the below message after successfull installation.

    Time-Piece marked for install
    Installing package ...
    Downloading Time-Piece-1.11 ... done
    Unpacking Time-Piece-1.11 ... done
    Generating HTML for Time-Piece-1.11 ... done
    Updating files in site area ... done
    Installing package done

    and the details are

    Time-Piece
    Object Oriented time objects
    Version: 1.11
    Author: Matt Sergeant (msergeant@cpan.org)
    CPAN: http://search.cpan.org/dist/Time-Piece-1.11/

    Installed files:
    C:/Perl/html/site/lib/Time/Piece.html
    C:/Perl/html/site/lib/Time/Seconds.html
    C:/Perl/site/lib/Time/Piece.pm
    C:/Perl/site/lib/Time/Seconds.pm
    C:/Perl/site/lib/auto/Time/Piece/.packlist
    C:/Perl/site/lib/auto/Time/Piece/Piece.bs
    C:/Perl/site/lib/auto/Time/Piece/Piece.dll
    C:/Perl/site/lib/auto/Time/Piece/Piece.exp
    C:/Perl/site/lib/auto/Time/Piece/Piece.lib
Re: Error when install module in windows
by CountZero (Bishop) on Jun 26, 2007 at 11:21 UTC
    On Windows XP Pro, Activestate build 820, gcc 3.4.2 and nmake 7.10.3077 it builds OK, but I remember having "fixed" someting in this set-up when I installed it. Probably the same thing syphilis mentioned.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James