Thread

Posted on Mon May 29 19:05:33 2006 by freshness
Cannot 'Make' Imager
Hey there,

First off, I have little or no Unix experience! I've been left in the lurch after our IT chap decided he no longer enjoyed his job at my company, and this has landed on my shoulders.

I've been trying to configure CPAN on Fedora Core 2 all afternoon.

I upgraded it to the latest version, but whenever I try to install *any* perl module (for example Imager) I get the following error:

cpan> install Imager Running install for module Imager Running make for T/TO/TONYC/Imager-0.51.tar.gz Is already unwrapped into directory /root/.cpan/build/Imager-0.51 Has already been processed within this session Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible
To me, it feels like CPAN can't find the MAKE command (excuse my naive Unix approach here...!!) I have been crawling Google and MSN for most of the day, but sadly this is going a few inches above my head.

The configuration path to MAKE is '/usr/bin/make' which is just the default path that the CPAN configuration script suggested. How can I verify this path is correct?
Direct Responses: 2374 | Write a response
Posted on Tue May 30 03:21:31 2006 by tonyc in response to 2372
Re: Cannot 'Make' Imager
If you've done a previous "install Imager" in that CPAN session it won't attempt to do the build again but just complain like the above.

First step would be to start a new CPAN session and try "install Imager" again, and post the results of that.

If that produces the same results try doing it manually, from CPAN do:

look Imager # this starts a new shell with the current directory in the expanded Imager source tree perl Makefile.PL make

And then post the results of that.

Depending on how your system is setup a number of different components could be missing, including make, compilers, binutils, build-time libraries/headers. The look/perl Makefile.PL/make should reveal which it is.
Direct Responses: 2375 | Write a response
Posted on Tue May 30 12:07:14 2006 by freshness in response to 2374
Re: Cannot 'Make' Imager
Thanks for the info. I tried CPAN again, and then the manual method described above. this is what I get:
[root@p15169903 root]# look Imager imagery [root@p15169903 root]# perl Makefile.PL Can't open perl script "Makefile.PL": No such file or directory [root@p15169903 root]# make make: *** No targets specified and no makefile found. Stop. [root@p15169903 root]#
Direct Responses: 2376 | Write a response
Posted on Tue May 30 12:26:14 2006 by freshness in response to 2375
Re: Cannot 'Make' Imager
My apologies, I totally misread the last (and most important) part of your post! Here is the output from CPAN after following your instructions:
cpan> look Imager Going to read /root/.cpan/sources/authors/01mailrc.txt.gz CPAN: Compress::Zlib loaded ok Going to read /root/.cpan/sources/modules/02packages.details.txt.gz Database was generated on Mon, 29 May 2006 00:26:39 GMT CPAN: HTTP::Date loaded ok Going to read /root/.cpan/sources/modules/03modlist.data.gz Running look for module Imager Trying to open a subshell in the build directory... CPAN: checksum security checks disabled because Digest::SHA not installed. Please consider installing the Digest::SHA module. Scanning cache /root/.cpan/build for sizes Imager-0.51/ Imager-0.51/log.c Imager-0.51/t/ Imager-0.51/t/t75polyaa.t Imager-0.51/t/t56postfix.t Imager-0.51/t/t102png.t Imager-0.51/t/testtools.pl Imager-0.51/t/t21draw.t Imager-0.51/t/t20fill.t Imager-0.51/t/t50basicoo.t Imager-0.51/t/t91pod.t Imager-0.51/t/t37w32font.t Imager-0.51/t/t90cc.t Imager-0.51/t/t104ppm.t Imager-0.51/t/Test/ Imager-0.51/t/Test/More.pm Imager-0.51/t/Test/Builder.pm Imager-0.51/t/t101jpeg.t Imager-0.51/t/t15color.t Imager-0.51/t/t106tiff.t Imager-0.51/t/t35ttfont.t Imager-0.51/t/t57infix.t Imager-0.51/t/t64copyflip.t Imager-0.51/t/t00basic.t Imager-0.51/t/t07iolayer.t Imager-0.51/t/t92samples.t Imager-0.51/t/t021sixteen.t Imager-0.51/t/t30t1font.t Imager-0.51/t/t108tga.t Imager-0.51/t/t82inline.t Imager-0.51/t/t61filters.t Imager-0.51/t/t01introvert.t Imager-0.51/t/t023palette.t Imager-0.51/t/tr18561b.t Imager-0.51/t/t022double.t Imager-0.51/t/t05error.t Imager-0.51/t/t40scale.t Imager-0.51/t/t107bmp.t Imager-0.51/t/t59assem.t Imager-0.51/t/t80texttools.t Imager-0.51/t/t81hlines.t Imager-0.51/t/t68map.t Imager-0.51/t/t60dyntest.t Imager-0.51/t/t36oofont.t Imager-0.51/t/t16matrix.t Imager-0.51/t/tr18561.t Imager-0.51/t/t38ft2font.t Imager-0.51/t/t1000files.t Imager-0.51/t/t66paste.t Imager-0.51/t/t65crop.t Imager-0.51/t/t69rubthru.t Imager-0.51/t/t70newgif.t Imager-0.51/t/t58trans2.t Imager-0.51/t/t67convert.t Imager-0.51/t/t105gif.t Imager-0.51/t/t020masked.t Imager-0.51/t/t103raw.t Imager-0.51/t/t55trans.t Imager-0.51/testimg/ Imager-0.51/testimg/short4.bmp Imager-0.51/testimg/trmiddesc.gif Imager-0.51/testimg/badused1.bmp Imager-0.51/testimg/bad4oflow.bmp Imager-0.51/testimg/short24.bmp Imager-0.51/testimg/short8.bmp Imager-0.51/testimg/simple.pbm Imager-0.51/testimg/winrgb24off.bmp Imager-0.51/testimg/newgimpgrad.ggr Imager-0.51/testimg/209_yonge.jpg Imager-0.51/testimg/nocmap.gif Imager-0.51/testimg/short1.bmp Imager-0.51/testimg/comp4.bmp Imager-0.51/testimg/trimgdesc.gif Imager-0.51/testimg/badused4a.bmp Imager-0.51/testimg/bad8useda.bmp Imager-0.51/testimg/winrgb8off.bmp Imager-0.51/testimg/badbits.bmp Imager-0.51/testimg/winrgb4off.bmp Imager-0.51/testimg/comp4.tif Imager-0.51/testimg/badused4b.bmp Imager-0.51/testimg/base.jpg Imager-0.51/testimg/palette.png Imager-0.51/testimg/winrgb8.bmp Imager-0.51/testimg/bad4wid0.bmp Imager-0.51/testimg/bad1wid0.bmp Imager-0.51/testimg/maxval_65536.ppm Imager-0.51/testimg/tiffwarn.tif Imager-0.51/testimg/comp8.tif Imager-0.51/testimg/gimpgrad Imager-0.51/testimg/badcomp4.bmp Imager-0.51/testimg/expected.gif Imager-0.51/testimg/bad24oflow.bmp Imager-0.51/testimg/bad8comp.bmp Imager-0.51/testimg/short8rle.bmp Imager-0.51/testimg/scalei.gif Imager-0.51/testimg/bad1oflow.bmp Imager-0.51/testimg/maxval_256.ppm Imager-0.51/testimg/screen3.gif Imager-0.51/testimg/maxval_4095_asc.ppm Imager-0.51/testimg/loccmap.gif Imager-0.51/testimg/bad8oflow.bmp Imager-0.51/testimg/penguin-base.ppm Imager-0.51/testimg/exiftest.jpg Imager-0.51/testimg/winrgb4.bmp Imager-0.51/testimg/badplanes.bmp Imager-0.51/testimg/screen2.gif Imager-0.51/testimg/winrgb2.bmp Imager-0.51/testimg/test_gimp_pal Imager-0.51/testimg/palette_out.png Imager-0.51/testimg/scale.gif Imager-0.51/testimg/comp4bad.tif Imager-0.51/testimg/maxval_asc.ppm Imager-0.51/testimg/comp8.bmp Imager-0.51/testimg/bad24comp.bmp Imager-0.51/testimg/badcomp1.bmp Imager-0.51/testimg/zerotype.jpg Imager-0.51/testimg/longid.tga Imager-0.51/testimg/bandw.gif Imager-0.51/testimg/winrgb2off.bmp Imager-0.51/testimg/bad24wid0.bmp Imager-0.51/testimg/bad4widbig.bmp Imager-0.51/testimg/winrgb24.bmp Imager-0.51/testimg/bad8wid0.bmp Imager-0.51/testimg/scale.ppm Imager-0.51/testimg/junk.ppm Imager-0.51/testimg/short4rle.bmp Imager-0.51/testimg/maxval.ppm Imager-0.51/testimg/maxval_0.ppm Imager-0.51/lib/ Imager-0.51/lib/Imager/ Imager-0.51/lib/Imager/Font/ Imager-0.51/lib/Imager/Font/Image.pm Imager-0.51/lib/Imager/Font/BBox.pm Imager-0.51/lib/Imager/Font/Wrap.pm Imager-0.51/lib/Imager/Font/Truetype.pm Imager-0.51/lib/Imager/Font/Type1.pm Imager-0.51/lib/Imager/Font/FreeType2.pm Imager-0.51/lib/Imager/Font/Win32.pm Imager-0.51/lib/Imager/Color/ Imager-0.51/lib/Imager/Color/Table.pm Imager-0.51/lib/Imager/Color/Float.pm Imager-0.51/lib/Imager/Tutorial.pod Imager-0.51/lib/Imager/Draw.pod Imager-0.51/lib/Imager/Filters.pod Imager-0.51/lib/Imager/Regops.pm Imager-0.51/lib/Imager/Font.pm Imager-0.51/lib/Imager/ExtUtils.pm Imager-0.51/lib/Imager/Transformations.pod Imager-0.51/lib/Imager/Engines.pod Imager-0.51/lib/Imager/Fountain.pm Imager-0.51/lib/Imager/APIRef.pm Imager-0.51/lib/Imager/ImageTypes.pod Imager-0.51/lib/Imager/Color.pm Imager-0.51/lib/Imager/Matrix2d.pm Imager-0.51/lib/Imager/Expr/ Imager-0.51/lib/Imager/Expr/Assem.pm Imager-0.51/lib/Imager/Expr.pm Imager-0.51/lib/Imager/interface.pod Imager-0.51/lib/Imager/Files.pod Imager-0.51/lib/Imager/Fill.pm Imager-0.51/lib/Imager/Inline.pod Imager-0.51/lib/Imager/Cookbook.pod Imager-0.51/lib/Imager/regmach.pod Imager-0.51/lib/Imager/Transform.pm Imager-0.51/lib/Imager/API.pm Imager-0.51/Flines/ Imager-0.51/Flines/t/ Imager-0.51/Flines/t/t00flines.t Imager-0.51/Flines/Flines.xs Imager-0.51/Flines/Makefile.PL Imager-0.51/Flines/Flines.pm Imager-0.51/maskimg.c Imager-0.51/dynfilt/ Imager-0.51/dynfilt/pluginst.h Imager-0.51/dynfilt/dt2.c Imager-0.51/dynfilt/Makefile.PL Imager-0.51/dynfilt/dt2.exp Imager-0.51/dynfilt/dyntest.exp Imager-0.51/dynfilt/mandelbrot.c Imager-0.51/dynfilt/mandelbrot.exp Imager-0.51/dynfilt/flines.exp Imager-0.51/dynfilt/dyntest.c Imager-0.51/dynfilt/compile.txt Imager-0.51/dynfilt/flines.c Imager-0.51/CountColor/ Imager-0.51/CountColor/Makefile.PL Imager-0.51/CountColor/CountColor.xs Imager-0.51/CountColor/CountColor.pm Imager-0.51/CountColor/t/ Imager-0.51/CountColor/t/t00countcolor.t Imager-0.51/log.h Imager-0.51/imext.h Imager-0.51/feat.c Imager-0.51/fontfiles/ Imager-0.51/fontfiles/dodge.ttf Imager-0.51/fontfiles/NameTest.ttf Imager-0.51/fontfiles/dcr10.afm Imager-0.51/fontfiles/MMOne.pfb Imager-0.51/fontfiles/ExistenceTest.afm Imager-0.51/fontfiles/dcr10.pfb Imager-0.51/fontfiles/ExistenceTest.ttf Imager-0.51/fontfiles/ImUgly.ttf Imager-0.51/fontfiles/ExistenceTest.pfb Imager-0.51/raw.c Imager-0.51/ext.h Imager-0.51/DynTest/ Imager-0.51/DynTest/DynTest.xs Imager-0.51/DynTest/Makefile.PL Imager-0.51/DynTest/linstretch.c Imager-0.51/DynTest/t/ Imager-0.51/DynTest/t/t00dyntest.t Imager-0.51/DynTest/DynTest.pm Imager-0.51/win32.c Imager-0.51/convert.c Imager-0.51/image.c Imager-0.51/gaussian.c Imager-0.51/filterlist.perl Imager-0.51/imexttypes.h Imager-0.51/Mandelbrot/ Imager-0.51/Mandelbrot/t/ Imager-0.51/Mandelbrot/t/t00mandel.t Imager-0.51/Mandelbrot/Mandelbrot.xs Imager-0.51/Mandelbrot/Makefile.PL Imager-0.51/Mandelbrot/mandel.c Imager-0.51/Mandelbrot/Mandelbrot.pm Imager-0.51/regmach.c Imager-0.51/trans2.c Imager-0.51/tiff.c Imager-0.51/imerror.h Imager-0.51/samples/ Imager-0.51/samples/samp-image.cgi Imager-0.51/samples/samp-tags.cgi Imager-0.51/samples/inline_replace_color.pl Imager-0.51/samples/replace_color.pl Imager-0.51/samples/anaglyph.pl Imager-0.51/samples/README Imager-0.51/samples/border.pl Imager-0.51/samples/interleave.pl Imager-0.51/samples/slant_text.pl Imager-0.51/samples/align-string.pl Imager-0.51/samples/samp-form.cgi Imager-0.51/samples/samp-tags.html Imager-0.51/samples/tk-photo.pl Imager-0.51/samples/samp-scale.html Imager-0.51/samples/samp-scale.cgi Imager-0.51/imextdef.h Imager-0.51/MANIFEST.SKIP Imager-0.51/Makefile.PL Imager-0.51/MANIFEST Imager-0.51/typemap Imager-0.51/imext.c Imager-0.51/Imager.pm Imager-0.51/imperl.h Imager-0.51/bigtest.perl Imager-0.51/iolayer.h Imager-0.51/quant.c Imager-0.51/imageri.h Imager-0.51/hlines.c Imager-0.51/draw.c Imager-0.51/pnm.c Imager-0.51/error.c Imager-0.51/polygon.c Imager-0.51/stackmach.c Imager-0.51/io.c Imager-0.51/spot.perl Imager-0.51/regops.perl Imager-0.51/Changes Imager-0.51/dynaload.c Imager-0.51/color.c Imager-0.51/palimg.c Imager-0.51/ppport.h Imager-0.51/README Imager-0.51/fills.c Imager-0.51/feat.h Imager-0.51/tga.c Imager-0.51/transform.perl Imager-0.51/stackmach.h Imager-0.51/font.c Imager-0.51/imgdouble.c Imager-0.51/META.yml Imager-0.51/Imager.xs Imager-0.51/draw.h Imager-0.51/datatypes.c Imager-0.51/img16.c Imager-0.51/png.c Imager-0.51/filters.c Imager-0.51/errep.perl Imager-0.51/doco.perl Imager-0.51/rgb.c Imager-0.51/imexif.c Imager-0.51/regmach.h Imager-0.51/imdatatypes.h Imager-0.51/conv.c Imager-0.51/imio.h Imager-0.51/gif.c Imager-0.51/apidocs.perl Imager-0.51/jpeg.c Imager-0.51/map.c Imager-0.51/rotate.c Imager-0.51/plug.h Imager-0.51/imexif.h Imager-0.51/dynaload.h Imager-0.51/bmp.c Imager-0.51/freetyp2.c Imager-0.51/imager.h Imager-0.51/limits.c Imager-0.51/iolayer.c Imager-0.51/tags.c Removing previously used /root/.cpan/build/Imager-0.51 CPAN: Module::Signature loaded ok Package came without SIGNATURE Working directory is /root/.cpan/build/Imager-0.51 [root@p15169903 Imager-0.51]# perl Makefile.PL /usr/include/gdbm doesnt exist or is unaccessible - removed. done. gif: includes not found - libraries not found ungif: includes not found - libraries not found jpeg: includes not found - libraries not found png: includes not found - libraries not found tiff: includes not found - libraries not found freetype2: includes not found - libraries not found T1-fonts: includes not found - libraries not found TT-fonts: includes not found - libraries not found w32: includes not found - libraries not found EXIF support enabled Checking if your kit is complete... Looks good Writing Makefile for Imager::CountColor Writing Makefile for Imager::Filter::DynTest Writing Makefile for Imager::Filter::Flines Writing Makefile for Imager::Filter::Mandelbrot MakeMaker (v6.17) Writing Makefile for Imager::plugins Writing Makefile for Imager [root@p15169903 Imager-0.51]# perl Makefile.PL /usr/include/gdbm doesnt exist or is unaccessible - removed. done. gif: includes not found - libraries not found ungif: includes not found - libraries not found jpeg: includes not found - libraries not found png: includes not found - libraries not found tiff: includes not found - libraries not found freetype2: includes not found - libraries not found T1-fonts: includes not found - libraries not found TT-fonts: includes not found - libraries not found w32: includes not found - libraries not found EXIF support enabled Writing Makefile for Imager::CountColor Writing Makefile for Imager::Filter::DynTest Writing Makefile for Imager::Filter::Flines Writing Makefile for Imager::Filter::Mandelbrot MakeMaker (v6.17) Writing Makefile for Imager::plugins Writing Makefile for Imager [root@p15169903 Imager-0.51]# make /usr/bin/perl /usr/lib/perl5/5.8.3/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.3/ExtUtils/typemap +-typemap typemap Imager.xs > Imager.xsc && mv Imager.xsc Imager.c /usr/bin/perl apidocs.perl lib/Imager/APIRef.pm cp imio.h blib/lib/Imager/include/imio.h cp feat.h blib/lib/Imager/include/feat.h cp lib/Imager/Files.pod blib/lib/Imager/Files.pod cp dynaload.h blib/lib/Imager/include/dynaload.h cp lib/Imager/Engines.pod blib/lib/Imager/Engines.pod cp stackmach.h blib/lib/Imager/include/stackmach.h cp lib/Imager/Font/FreeType2.pm blib/lib/Imager/Font/FreeType2.pm cp lib/Imager/Font/Image.pm blib/lib/Imager/Font/Image.pm cp lib/Imager/Fill.pm blib/lib/Imager/Fill.pm cp imageri.h blib/lib/Imager/include/imageri.h cp lib/Imager/Color/Table.pm blib/lib/Imager/Color/Table.pm cp typemap blib/lib/Imager/typemap cp imexttypes.h blib/lib/Imager/include/imexttypes.h cp lib/Imager/Regops.pm blib/lib/Imager/Regops.pm cp lib/Imager/Font/Wrap.pm blib/lib/Imager/Font/Wrap.pm cp lib/Imager/Fountain.pm blib/lib/Imager/Fountain.pm cp lib/Imager/APIRef.pm blib/lib/Imager/APIRef.pm cp lib/Imager/Tutorial.pod blib/lib/Imager/Tutorial.pod cp lib/Imager/Font/Type1.pm blib/lib/Imager/Font/Type1.pm cp lib/Imager/Transform.pm blib/lib/Imager/Transform.pm cp lib/Imager/API.pm blib/lib/Imager/API.pm cp lib/Imager/Draw.pod blib/lib/Imager/Draw.pod cp Imager.pm blib/lib/Imager.pm cp lib/Imager/Expr/Assem.pm blib/lib/Imager/Expr/Assem.pm cp imperl.h blib/lib/Imager/include/imperl.h cp draw.h blib/lib/Imager/include/draw.h cp lib/Imager/Color/Float.pm blib/lib/Imager/Color/Float.pm cp lib/Imager/Inline.pod blib/lib/Imager/Inline.pod cp lib/Imager/ImageTypes.pod blib/lib/Imager/ImageTypes.pod cp lib/Imager/Filters.pod blib/lib/Imager/Filters.pod cp lib/Imager/Font.pm blib/lib/Imager/Font.pm cp imerror.h blib/lib/Imager/include/imerror.h cp imager.h blib/lib/Imager/include/imager.h cp imextdef.h blib/lib/Imager/include/imextdef.h cp lib/Imager/Font/BBox.pm blib/lib/Imager/Font/BBox.pm cp log.h blib/lib/Imager/include/log.h cp imext.h blib/lib/Imager/include/imext.h cp lib/Imager/Font/Truetype.pm blib/lib/Imager/Font/Truetype.pm cp lib/Imager/Cookbook.pod blib/lib/Imager/Cookbook.pod cp lib/Imager/regmach.pod blib/lib/Imager/regmach.pod cp regmach.h blib/lib/Imager/include/regmach.h cp ppport.h blib/lib/Imager/include/ppport.h cp plug.h blib/lib/Imager/include/plug.h cp lib/Imager/Expr.pm blib/lib/Imager/Expr.pm cp imdatatypes.h blib/lib/Imager/include/imdatatypes.h cp iolayer.h blib/lib/Imager/include/iolayer.h cp imexif.h blib/lib/Imager/include/imexif.h cp lib/Imager/Font/Win32.pm blib/lib/Imager/Font/Win32.pm cp lib/Imager/ExtUtils.pm blib/lib/Imager/ExtUtils.pm cp ext.h blib/lib/Imager/include/ext.h cp lib/Imager/interface.pod blib/lib/Imager/interface.pod cp lib/Imager/Transformations.pod blib/lib/Imager/Transformations.pod cp lib/Imager/Color.pm blib/lib/Imager/Color.pm cp lib/Imager/Matrix2d.pm blib/lib/Imager/Matrix2d.pm cp imconfig.h blib/lib/Imager/include/imconfig.h make[1]: Entering directory `/root/.cpan/build/Imager-0.51/CountColor' cp CountColor.pm ../blib/lib/Imager/CountColor.pm /usr/bin/perl /usr/lib/perl5/5.8.3/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.3/ExtUtils/typemap + CountColor.xs > CountColor.xsc && mv CountColor.xsc CountColor.c gcc -c -I.. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr +/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march= +i386 -mcpu=i686 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/usr/lib/perl5/5.8.3/i386-linu +x-thread-multi/CORE" CountColor.c /bin/sh: line 1: gcc: command not found make[1]: *** [CountColor.o] Error 127 make[1]: Leaving directory `/root/.cpan/build/Imager-0.51/CountColor' make: *** [subdirs] Error 2
Direct Responses: 2377 | Write a response
Posted on Tue May 30 13:26:54 2006 by tonyc in response to 2376
Re: Cannot 'Make' Imager
You need to install the C compiler, gcc.

This should be a package you can install in Fedora.
Direct Responses: 2379 | Write a response
Posted on Tue May 30 15:15:11 2006 by freshness in response to 2377
Re: Cannot 'Make' Imager
Ok, I have installed the gcc compiler using:
yum install gcc
This appeared to work without error. When I now go into CPAN and do
install Imager
I get the following error:
Can't exec "/bin/make": No such file or directory at (eval 263) line 5218.
I've also done a 'yum install make' and this reports as 'make is installed and is the latest version'. It still seems like a path issue. If make is installed, would it be located somewhere other than "/bin/make" ?
Direct Responses: 2388 | Write a response
Posted on Wed May 31 02:07:39 2006 by tonyc in response to 2379
Re: Cannot 'Make' Imager
Do the following:
1. from a shell do:
which make
write down the response (probably /usr/bin/make, which I'll use below)
2. start the CPAN shell
3. do:
o conf make /usr/bin/make
4. try to do:
install Imager
5. if that works do:
o conf commit
to save the configuration changes
Direct Responses: 2390 | Write a response
Posted on Wed May 31 09:35:26 2006 by freshness in response to 2388
Re: Cannot 'Make' Imager
Tonyc - thank you so much, it's installed. I will now go and test! Thanks again!!
Write a response