in reply to Installing perl modules

Tutorials » Writing, Installing, and Using Modules » A Guide to Installing Modules » I don't have permission to install a module on the system!

--
edan

Replies are listed 'Best First'.
Re^2: Installing perl modules
by Anonymous Monk on Dec 16, 2004 at 15:50 UTC
    To be more specific:
    Server OS: freebsd
    Web Server is Apache/1.3.26 (Unix) mod_perl/1.26
    Base path to website files is /mnt/web_c/d31/s02/a000ras1/cgi-bin/
    Should i create directory in cgi0bin or in any place? Say, directory called 'module' What should i modify in script?
    #!/usr/bin/perl # ---------------------------------------------------------- # program: makehtml.pl # version: 0.06 m5 build 2000-02-15 # task: Creates HTML documents out of a simple script and some # dummy and content files # language: Perl # license: GPL (GNU General Public License) # ----------------------------------------------------------THIS PROGR +AM IS PUBLISHED UNDER THE TERMS OF THE GNU PUBLIC LICENSE (GPL). # IT COMES WITH ABSOLUTLY NO WARRENTY! USE IT AT YOUR OWN RISK! # ---------------------------------------------------------- use GD; use Tie::IxHash; $identify = "makehtml v0.06 m5 build 2000-02-15"; &init; &run; &done; sub init

    Can i also install Text::WikiFormat or full Wiki modules such way?

      The easiest would be to install under cgi-bin (didn't you say that's the only place you can create directories?). But as long as you add use lib '/path/to/some/dir';, it doesn't matter.

      No, you can't install any module this way. The module you asked about happens to be pure-perl, and just one source file. But it's not a general installation procedure by any means.

      Update:

      1. Create the directory /mnt/web_c/d31/s02/a000ras1/cgi-bin/Tie
      2. Copy IxHash.pm there.
      3. Add the line use lib '/mnt/web_c/d31/s02/a000ras1/cgi-bin'; to your program.
      --
      edan

        Is this correct:
        use GD; use Tie::IxHash; use lib '/mnt/web_c/d31/s02/a000ras1/cgi-bin';

        I can no install Wiki?
        Is this correct:
        use GD; use Tie::IxHash; use lib '/mnt/web_c/d31/s02/a000ras1/cgi-bin'; </code>
        I can no install Wiki?