in reply to CPAN.pm and make

CPAN.pm is dying because:

  1. CPAN.pm called make
  2. make called your C compiler
  3. your C compiler tried to compile GD.c
  4. GD.c didn't manage to declare 'font'
  5. your C compiler exited with a non-zero value to indicate that it failed to do what was asked (compile GD.c)
  6. make noticed that the C compiler failed
  7. make reported to stderr that it failed to do what was asked (build GD.o as part of building something else): "make: *** [GD.o] Error 1"
  8. make exited with a non-zero value to indicate this failure to the program that ran it
  9. CPAN.pm noticed that make failed
  10. CPAN.pm notified you that make failed (just in case make didn't manage to make that fact clear already): "/usr/bin/make  -- NOT OK"
So the error had nothing to do with the fact that make is located in /usr/bin.

I left out a few steps, but I hope the explanation was still clear. ;)

                - tye

Replies are listed 'Best First'.
Re: Re: CPAN.pm and make (trees)
by silent11 (Vicar) on Apr 15, 2003 at 14:54 UTC
    Tye, thanks for the explination, I tried to install CPANPLUS and I guess that module has problems too.

    ~sigh~ Is there an easy way to manage modules on linux?

    ... ... Writing Makefile for CPANPLUS Now, please type 'ile test' to test, and 'ile install' to install. Makefile:88: *** missing separator. Stop. /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible [root@localhost silent11]#


    -silent11

      Gah! Browsing CPANPLUS's Makefile.PL (if you are using IE, then you'll have to download that file in order to view it despite the "Content-Type: text/plain", *sigh*), I can see why problems getting the thing installed might be more common than for some modules. 14kB of script just to build the Makefile?

      Well, I almost never use CPAN, CPANPLUS, PPM, nor the others. I download modules and do the rather simple "perl Makefile.PL; make test; make install". Actually, I do use PPM from time-to-time, but I almost always download the *.ppm file myself and run "ppm *.ppm" (in part because PPM will almost never find/download anything for me).

      I don't see much advantage to avoiding these rather simple steps, especially when I've had and seen so many problems trying to get these short-cuts to work or even seen them blow things away (by downloading and installing new versions of Perl, for example).

      *shrug*

                      - tye
      FWIW, I've never had any problem using CPAN.pm on any Unix box. I don't think you will either, if you install a Perl other than the ActiveState distro. (Don't know how I got the impression you were.)

      Makeshifts last the longest.