in reply to Problem with PerlmakeSNMP module Error 127

You may wish to read your error messages a little more closely:
make: cc: Command not found make: *** [SNMP.0] Error 127
You are missing 'cc', which is the C compiler needed to actually compile your stuff. Consider installing GCC or equivalent. Perhaps someone else can give you additional pointers as to where you might find such a thing for your platform.

Replies are listed 'Best First'.
RE: Re: Problem with PerlmakeSNMP module Error 127
by kilinrax (Deacon) on Oct 11, 2000 at 21:21 UTC
    On most Debian systems /usr/bin/cc is a symlink to /etc/alternatives/cc, which in turn is a symlink to /usr/bin/gcc.
    If the symlinks are there, then I'm stumped. Maybe try 'apt-get install --reinstall gcc'?
RE: (2) Problem with PerlmakeSNMP module Error 127
by ybiC (Prior) on Oct 11, 2000 at 21:16 UTC
    Wow, thanks for the quick answer, Fastolfe   8^).   I saw that, but didn't make the connection.   Thought GCC was part of the Debian base install, but apparantly not.   Don't understand why prior CPAN modules installs didn't choke on this though.

    After lunch (featherbones - mmm,mmmm) I'll look for that Debian package.
        cheers,
        Don   (ybiC)
        striving for Perl Adept

      Perhaps your earlier modules didn't have C components that needed to be compiled? If you do think you have GCC installed, perhaps your configuration process didn't find it? Usually a 'perl Makefile.PL' will catch stuff like the location and names of your compiler. Try typing 'cc' and/or 'gcc' from the command prompt and see if you get something.
RE: (2) Problem with PerlmakeSNMP module Error 127 (Success 8^)
by ybiC (Prior) on Oct 11, 2000 at 23:28 UTC
    You were spot-on,   Fastolfe++.   GCC was *not* installed, easily remedied with apt-get update && apt-get install gcc gcc-doc.

    make now completes cleanly.   But now make test doesn't find a couple MIBs where it expects to.   So I'll tweak Makefile.PL to point to Deb's proper directories and start over.   Hmmm... or not. Don't recognise anything there as pointing to MIB files.

    Update: In the Chatterbox, tye suggested that I make install anyway, in spite of make test errors, and it seems to have worked.   Many thanks to Fastolfe, tye, and other fine Monks who replied to my SOPW post.   8^)
        cheers,
        Don   (ybiC)
        striving for Perl Adept