Installing Modules
- Study the module documentation.
- Most modules include a README file in the
tar archive with special installation instructions.
- On Unix, modules are distributed as C source code
that must be compiled.
CPAN.pm downloads, compiles, lists,
installs, and handles dependencies (downloads other
needed modules automatically).
This module is bundled with Perl 5.
- On Win32 machines, there is rarely a C compiler.
So ActiveState has pre-compiled around 400 of the
most popular modules, and has done pod2html.
PPM (Perl Package Manager)
is Win32's module installer.
Lab
Install the current version of Tk on your computer.
- If your company uses a proxy server, you must
tell PPM its name:
- Open your browser's preferences/options dialog.
- Find the name of your proxy server and
port number, e.g. web-proxy, 8088.
- In a DOS window, in the Perl directory:
C:\perl> set http_proxy=http://web-proxy:8088
- Run PPM. In a DOS window:
C:\perl> ppm
PPM...
PPM> install Tk