Hi,

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
>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.

MonkPaul.


In reply to Re: downloading GD::Graph by MonkPaul
in thread downloading GD::Graph by Lhamo_rin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.