good chemistry is complicated,
and a little bit messy -LW
Installing Modules on a Web Serverby sulfericacid (Deacon)
|on Nov 30, 2002 at 10:30 UTC||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/" ;
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);