Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

downloading GD::Graph

by Lhamo_rin (Friar)
on Jun 19, 2005 at 01:15 UTC ( #468046=perlquestion: print w/replies, xml ) Need Help??

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

I use ActivePerl on my pc and am trying to download GD::Graph. I attempted using PPM but when I do a search it does not show up. So I downloaded the .tz file from CPAN but I do not know what directory to unzip it to. Does somebody know where I should place the unzipped file?

Replies are listed 'Best First'.
Re: downloading GD::Graph
by davidrw (Prior) on Jun 19, 2005 at 02:15 UTC
    Start with these from the Tutorials: To find ppm's, you can increase your repository list w/PPM::Repositories .. also, google will often find a .ppm file for you -- try google(GD::Graph ppm), and then you can open ppm3 from a dos prompt and do install

    In general, to install manually on win32 (though the second tutorial above explains why it's probablly better to use ppm), you just extract the .tar.gz into a temp dir, and change into the extract directory (GD-Graph-*), and do:
    perl Makefile.PL nmake nmake install
    If you don't have a nmake.exe, see the link ww posted -- it has info on obtaining make for win32.
Re: downloading GD::Graph
by biosysadmin (Deacon) on Jun 19, 2005 at 01:56 UTC
    Try using ppm to install GDGraph rather than GD::Graph. There appears to be Activestate docs for the module here and that's the terminology that they use.

    I don't know the GD::Graph module well enough to say for certain, but if there's an XS or other C code in there, the source will need to be compiled before it works. Dropping the module source code into a directory may work for some modules, but it's definitely not the recommended way of installing CPAN modules.

Re: downloading GD::Graph
by PerlBear (Hermit) on Jun 19, 2005 at 04:58 UTC
    This particular repository has GD::Graph and other associated GD modules:
    You can add it to the repositories that the ActiveState PPM accesses by issuing the following command at the PPM prompt:
    ppm rep add theoryx5.8ca
    I have found this particular repository to be very useful. It contains a lot of the modules for the Active State Win32 Perl Installation that the Active State Repository doesnot contain for one reason or another.
Re: downloading GD::Graph
by ww (Archbishop) on Jun 19, 2005 at 02:08 UTC

    If your question is presuming that you can simply unzip and use, in the same way you can unzip, install, and use windows programs, that's not quite so. Use ActiveState's site to read up on how to 'make' CPAN (Linux/Unix source) code to a windows compatible form.

    I think you'll find your answer here.

    This thread at ActiveState, while not precisely on target for your question, gives enough background to suggest some of the issues: message thread

Re: downloading GD::Graph
by Animator (Hermit) on Jun 19, 2005 at 15:40 UTC

      I found in one of my bioinformatics books (Mount, D.W., Bioinformatics sequence and genome analysis 2nd Ed.) a short bit on how to install CPAN modules:

      1. create a directory eg. myperlib but remember the path name i.e /home/export/molbio/myname/myperllib
      2.type -MCPAN -e shell , then configure the CPAN module, i just chose default settings where i was not sure.
      3. then cpan> appears
      4. configure cpan to install modules to your dir you created e.g
      cpan> o conf makepl_arg LIB=/home/export/molbio/myname/myperllib
      5. then ask cpan to get and install the module
      cpan> install GD::Graph
      6.then set perl in the direction of where to look for the installed module, note this is using perl 5, (for tcsh or csh shells)
      cpan> setenv PERL5LIB/home/export/molbio/myname/myperllib
      7. for bash or ssh shells
      cpan> export PERL5LIB=/home/export/molbio/myname/myperllib
      8. the line can also be included, if 6 and 7 fail, in the start of your script
      use lib("/home/export/molbio/myname/myperllib");

      this is to get CPAN to do it automatically, but as you have done, downloading the zip file, you can do it far simpler by doing it yourself:

      1. Extract the files into a folder
      2.type in CMD >perl Makefile.PL LIB=/home/export/molbio/myname/myperllib
      >make test
      >make install

      Hope that helps. I got stuck when it said it needed a dependant module to install, so make sure you get those also.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://468046]
Front-paged by tlm
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2020-09-19 12:37 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (114 votes). Check out past polls.