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

I was learning to create packages, so I first created a package Try::Mymodule using h2xs

The command line was

>h2xs -b 5.5.0 -X Try::Mymodule

Then i tried installing module.. So i first ran Makefile.pl, then i ran nmake15 but when i tried command "nmake test" I got error like

Syntax error at -e line 1, near "'755') Missing right curly or square braket at -e line 1, at the end of line Execution of -e aborted due to compilation errors What does this error means?

In which file should i check for this error?

Version of perl that i am using is 5.12.2

Replies are listed 'Best First'.
Re: Error Installing Module
by syphilis (Archbishop) on Mar 02, 2011 at 09:04 UTC
    What does this error mean?

    I think it means that the Makefile that was created (when you ran 'perl Makefile.PL') was written for some flavour of make *other* than 'nmake'.
    Running perl -V:make will tell you the flavour of make for which the makefile was written. You should either run that flavour of make, or do as Anonymous Monk did and specify that you want an "nmake flavoured" makefile by starting with perl Makefile.PL make=nmake.

    Cheers,
    Rob

      Thanks, Now i installed it..But is there any way by which we can uninstall or modify it?

        But is there any way by which we can uninstall or modify it?

        To uninstall, I would just manually delete the files that were installed by 'make install'. (These files would have been named during the 'make install' process.)

        It's generally unnecessary to remove anything - you can just leave them sit there and they'll do no harm. If you want to make modifications, just modify the source, and then build and install again. (The new install will overwrite the old installation.)

        Cheers,
        Rob
Re: Error Installing Module
by Anonymous Monk on Mar 02, 2011 at 08:03 UTC
    In which file should i check for this error?

    Makefile, but you shouldn't be getting this error. I don't and I'm using 5.12.2