in reply to Installing perl modules

Use the PREFIX parameter to the "perl Makefile.PL" command. I'm assuming you have commandline access. If you don't, you will only be able to install PurePerl modules, and then only be ftp'ing them to that directory.

No matter what, you will then have to add a "use lib" statement to all your cgi-bin scripts.

What module(s) did you want to install?

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

Replies are listed 'Best First'.
Re^2: Installing perl modules
by r34d0nl1 (Pilgrim) on Dec 16, 2004 at 15:11 UTC
    You also can find more information when verifying the perlfac: $panic: perldoc -q module . here is the information you would find:

    How do I keep my own module/library directory?
    When you build modules, use the PREFIX option when generating Makefiles:
    perl Makefile.PL PREFIX=/u/mydir/perl
    then either set the PERL5LIB environment variable before you run scripts that use the modules/libraries
    (see the perlrun manpage) or say use lib '/u/mydir/perl'; This is almost the same as

    BEGIN { unshift(@INC, '/u/mydir/perl'); }

    except that the lib module checks for machine-dependent subdirectories.
    See Perl's the lib man-page for more information.
Re^2: Installing perl modules
by Anonymous Monk on Dec 16, 2004 at 15:08 UTC
    I want install Tie::IxHash module.
    And I have *no* any commandline access. It's shared Netfirms webhosting. I have FTP access only.

      In principal, as this is a pure perl module, you could just copy the IxHash.pm file into a lib/Tie directory, say under where your CGI programs are located, and then add the location to your @INC with:

      use lib './lib';
      in your programs. On some platforms you may be forced to give the full path to the 'lib' directory as the notion of '.' might be different for a CGI program.

      /J\

      Then you can probably get away with grabbing the source, changing the package declaration to MyTieIxHash or something, and uploading to MyTieIxHash.pm, and then use tie %hash, 'MyTieIxHash';. YMMV.

      Update: Ah, I didn't see that you can create directories. In that case, create "Tie" directory, put "IxHash.pm" in it, add "use lib '.'" to your script, and you should be good to go.

      --
      edan