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

Hi,
I'm not the administrator on my machine and I keep getting the error Can't locate GD.pm in @INC. I have unzipped GD.pm.tar.gz into my home directory and I now have a folder in this directory called GD, which contains GD.pm plus some other files.
What should I do next?
THanks

Replies are listed 'Best First'.
(jeffa) Re: Including a new module
by jeffa (Bishop) on Jun 15, 2003 at 15:22 UTC
Re: Including a new module
by ctilmes (Vicar) on Jun 15, 2003 at 15:07 UTC
    Read the file "README" in the GD package and follow the instructions therein.
Re: Including a new module
by monsieur_champs (Curate) on Jun 15, 2003 at 16:11 UTC

    Hello, Anonymous Monk. First of all, please consider joining this community.

    Because you're using files with ".tar.gz", I deduce you're using some flavor of (uni|linu)x.

    I think you should consider reading the CPAN.pm module documentation, and using the perl -MCPAN -e 'install Bundle::GD' command.

    Of course, you will need some special command-line options, to allow you install the modules in your $HOME directory, but I think that you can figure them by yourself.

    Good luck, and have a nice day!

    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Just Another Perl Monk

      Because you're using files with ".tar.gz", I deduce you're using some flavor of (uni|linu)x.
      The vast majority of distributions on cpan are such tarballs, so you cannot make such an assumption.

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.

Re: Including a new module
by mobiGeek (Beadle) on Jun 15, 2003 at 20:45 UTC
    Try running this on your system:

    perl -e 'print join("\n", @INC);'

    Look at the output. Is GD.pm in one of those directories?

Re: Including a new module
by nite_man (Deacon) on Jun 16, 2003 at 11:31 UTC
    Try to do a following:
    tar -vzxf GD-...tar.gz cd ./GD-.. perl Makefile.PL PREFIX=/home/you/your_lib make make test make install

    Library GD will be installed in the your home directory, where you have all privilege.

    Using:
    #!/usr/bin/perl -w use lib qw(/home/your/your_lib/path_to_GD);
          
    --------------------------------
    SV* sv_bless(SV* sv, HV* stash);