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

Whilst trying to nmake the module "Gtk2-Perl-0.06", I was unfurtunate enuf to recieve an error message. I'm not the best with these kinda things so any help would be greatly appreciated. The message was:
mkdir -p blib/arch/auto/Gtk2 Too many parameters - blib gcc -shared -g -o blib/arch/auto/Gtk2/Gtk2.so -DXS_VERSION=\" +0.06\" `pk g-config gtk+-2.0 --libs` NMAKE : fatal error U1081: 'gcc' : program not found Stop.
Thanks, Eoin...

Replies are listed 'Best First'.
Re: Nmake......STOP!!
by gjb (Vicar) on Jan 04, 2003 at 20:12 UTC

    Since you're using gcc, which shell are you running, is this the Command Prompt or something more civilized?

    On NT, mkdir takes /a as a flag, not -p, so the makefile is for some un*x.

    If you're using cygwin, don't use nmake but the gnu make which comes with it.

    Hope this helps, -gjb-

      I'm running ActivePerl under Windows Me. And the Nmake i'm using is for Windows but I still don't know whats wrong.
      I was only intrested in the module so I could look into using graphics in some programs, could you perhaps recomend a different module I could use.
      Thanks, Eoin...

        Aha, that means the makefile is not appropriate for nmake. There are a number of differences between (un*x) make and nmake with respect to syntax, etc.

        Normally, you get the appropriate makefile using perl Makefile.PL. That generates a makefile, in case of ActiveState Perl a makefile for nmake since those guys still don't support any other compiler than VC++ and its utilities such as nmake.

        If there's a file Makefile.PL, run perl Makefile.PL</p> and then <code>nmake test, nmake install (if the former succeeds. That might work or not, but I'm not optimistic. It assumes that everything will be build and ocmpiled with VC++ and Gtk stuff is very un*x.

        I hope this clarifies things a bit, good luck, -gjb-

Re: Nmake......STOP!!
by PodMaster (Abbot) on Jan 05, 2003 at 04:37 UTC
    perl -V:make -V:cc will tell you which compiler/make program you have to use. It all depends on how perl was compiled.


    MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
    ** The Third rule of perl club is a statement of fact: pod is sexy.

Re: Nmake......STOP!!
by tachyon (Chancellor) on Jan 05, 2003 at 11:35 UTC

    gcc is the GNU C Compiler. 'gcc': program not found means that you don't have it installed. While many perl modules are pure Perl (so all you need to install them is nmake) some have C or XS source code that requires comilation into a binary executable as part of the install process.

    Get a copy of Win32 gcc from here http://www.mingw.org/

    This still won't help you as the first error refers to the command mkdir -p /blah/subdir/subdir/subdir The -p option for mkdir is a *nix one and means make any required parent directories if they don't exist, so that the final subdir can be generated. This smells like a very unix oriented install shell script that is not going to run on Win32 without (extensive) modification.

    You best bet will be to find a precompiled binary for Win32. Try ActiveState for a ppm or the Gtk website You are (probably) going to need the Win32 version of the GIMP to run this ( GTK == Gimp Tool Kit ) anyway.

    cheers

    tachyon

    PS: You are young. Now is the time to dual boot that system of yours and get Linux. IMHO Mandrake is the easiest to install, configure and use - you can even have a GUI that looks just like windows if you want.