Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Downloading your modules:
To download modules, please check search.cpan.org.

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/" ;

Testing:
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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (1)
As of 2024-04-16 14:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found