Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Downloading your modules:
To download modules, please check

To install onto a web server always check before hand if it's compiled in C or if it's strictly .pl files. On cpan near the download link you will find a browse button, click that to view the contents of the module. If all you see are folders and .pl files, download it.

When downloading from this site more often than not you will be download in a .tar format, which is ok for both *nix and Windows. Windows users may have to unzip the file twice.

Unzip the contents as you would any file.

On your server in your home directory (often /www/) create the folder 'lib' in lowercase letters.

Open your folder with your module and look for the 'lib' directory. Depending what module you downloaded there might be a single folder or a huge list of folders here. Behind these folders are the modules themselves, each are broken down into their own folder.

Make web directory 'lib'
Connect to your site via FTP (if you need to connect via the browser, you will need to transfer each file into their respect folder EXACTLY as you downloaded them) and transfer all the FOLDERS with their contents into your 'lib' directory on your server. Use ASCII as perl files are text.

Using your modules:
Near the top of your script, use: use lib "/location/lib/" ;

If your script isn't working and you want to be sure your modules are installed correctly and your script and locate them, use the line (if you have CGI::Carp): use CGI::Carp qw(fatalsToBrowser);

In reply to Installing Modules on a Web Server by sulfericacid

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others having an uproarious good time at the Monastery: (5)
    As of 2018-09-24 02:27 GMT
    Find Nodes?
      Voting Booth?
      Eventually, "covfefe" will come to mean:

      Results (191 votes). Check out past polls.

      • (Sep 10, 2018 at 22:53 UTC) Welcome new users!