module installation

Discussion in 'Perl Misc' started by Rose, Feb 17, 2008.

  1. Rose

    Rose Guest

    Thanks to Ben's and Michele's advice, I'm reconfirming the modeule
    installation.

    cpan[61]> install Imager

    Imager is up to date (0.62).

    Indeed the problem may arise because intially I did by:

    install Bundle:Imager

    following some web "instructions".

    and later I also tried:

    install GD
    install PGPLOT

    and so.

    When I tried to uninstall them, I went to perl directory but could not find
    the modules and therefore could not "delete" them. Now I guess maybe the
    installation was not clean and makes the problem happen.


    the author's codes are:

    use Imager;
    use Imager::plot;

    $plot = Imager::plot->new(Width => 550,
    Height => 350,
    GlobalFont => 'ImUgly.ttf');

    my @X = 0..100;
    my @Y = map { sin($_/10) } @X;
    my @Z = map { 1+cos($_/10) } @X;

    $plot->AddDataSet(X => \@X, Y => \@Z);
    $plot->AddDataSet(X => \@X, Y => \@Y,
    style=>{marker=>{size => 2,
    symbol => 'circle',
    color => Imager::Color->new('red'),
    },
    });

    $img = Imager->new(xsize=>600, ysize => 400);
    $img->box(filled=>1, color=>'white');

    $plot->{'Ylabel'} = 'angst';
    $plot->{'Xlabel'} = 'time';
    $plot->{'Title'} = 'Quality time';

    $plot->Render(Image => $img, Xoff => 40, Yoff => 370);
    $img->write(file => "testout.png");



    cpan[63]> install Imager:plot

    Running install for module 'Imager::plot'
    Running make for A/AD/ADDI/Imager-Plot-0.09.tar.gz
    Has already been unwrapped into directory
    /root/.cpan/build/Imager-Plot-0.09-IXL2Mr
    '/usr/bin/perl Makefile.PL' returned status 65280, won't make
    Running make test
    Make had some problems, won't test
    Running make install
    Make had some problems, won't install
     
    Rose, Feb 17, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. alex
    Replies:
    1
    Views:
    808
    Dieter D'Hoker
    Jun 25, 2004
  2. Raphael Bossek
    Replies:
    1
    Views:
    316
    Nicholas Wieland
    Aug 21, 2003
  3. Tom Anderson

    alternate module installation

    Tom Anderson, Mar 5, 2004, in forum: Python
    Replies:
    0
    Views:
    317
    Tom Anderson
    Mar 5, 2004
  4. =?iso-8859-1?q?Gonzalo_Sainz-Tr=E1paga_=28GomoX=29

    Local module installation

    =?iso-8859-1?q?Gonzalo_Sainz-Tr=E1paga_=28GomoX=29, Feb 17, 2005, in forum: Python
    Replies:
    0
    Views:
    296
    =?iso-8859-1?q?Gonzalo_Sainz-Tr=E1paga_=28GomoX=29
    Feb 17, 2005
  5. Maric Michaud
    Replies:
    0
    Views:
    7,222
    Maric Michaud
    Jun 24, 2006
Loading...

Share This Page