in reply to Re: help installing GD and GD::Graph locally
in thread help installing GD and GD::Graph locally

Ugh. Sorry to waste everyone's time. Looks like I probably need a newer version of libgd installed.

Will try to get a newer version of libgd (the C library) built and installed in my own ~/opt and then try building/installing GD again.

Thanks for investigating, Rob.

In the meantime, regarding installing your own modules into your own local ~/perllib directory: is it supposed to be

perl Makefile.PL PREFIX=/home/me/perllib # or perl Makefile.PL LIB=/home/me/perllib # ?

In perlmodinstall it says to use PREFIX, but the Camel book (in the CPAN chapter) mentions LIB, INSTALLMAN1DIR, INSTALLMAN3DIR, INSTALLBIN, and INSTALLSCRIPT. In the Cookbook, in item 12.21, I believe it says to use LIB, and that PREFIX is for when you've got your own Perl installed somewhere in /home/you.

Replies are listed 'Best First'.
Re^3: help installing GD and GD::Graph locally
by syphilis (Archbishop) on Nov 11, 2006 at 01:02 UTC
    perl Makefile.PL PREFIX=/home/me/perllib # or
    perl Makefile.PL LIB=/home/me/perllib # ?


    I've not had any need to use either - but I think PREFIX is the one you're after. Give it a try and just check where it puts things. For me, on Win32, when I do 'perl Makefile.PL PREFIX=D:/test', everything gets placed in 'D:/test/lib' - so it becomes necessary for me to use lib 'D:/test/lib'; in my script if that script needs to load such a module.

    You might also consider 'INSTALL_BASE' if 'PREFIX' doesn't do what you want. From 'perldoc ExtUtils::MakeMaker':
    INSTALL_BASE can be passed into Makefile.PL to change where your modul +e will be installed. INSTALL_BASE is more like what everyone else calls "prefix" than PREFIX is. To have everything installed in your home directory, do the following. perl Makefile.PL INSTALL_BASE=~

    Cheers,
    Rob
      perl Makefile.PL PREFIX=/home/me/perllib # or
      perl Makefile.PL LIB=/home/me/perllib # ?

      From 'perldoc ExtUtils::MakeMaker'{snip}

      Ah. ExtUtils::MakeMaker is the relevant doc I need to read for this. Thanks!