DICOM.pm Installation Instructions

The standard distribution comes as a gzipped tar file, which will extract into a directory called dicomperl:
gunzip dicomperl.tar.gz
tar xvf dicomperl.tar

The contents of the dicomperl directory are:
 DICOM.pm Definition of main class.
 DICOM_GUI.pm Graphical user interface, derived from DICOM class
 DICOM_VRfields.pm Definitions of Value Representations
 DICOM_element.pm Definition of each element making up the header.
 DICOM_fields.pm Text definition of the DICOM dictionary
 DICOM_private.pm User-defined extensions of the DICOM dictionary
 README.txt  
 dicom.pl Sample application demonstrating use of the DICOM class.
 install Simple Unix shell script to copy distribution files.
 modifyheaders Example program that edits the headers of multiple files.

Running the install script is optional. It does three things:

  1. Copies the four .pm files to a directory of your choice.
  2. Edits the first line of each file to set the path to the Perl interpreter.
  3. Edits the 'use lib' line of the demo .pl program to the directory that the module files were copied to.
To run the installation script, make it executable and run it:
chmod +x ./install
./install

The script will ask you where you want to place the module (.pm) files that comprise the library. These files will be edited and copied to that directory. Note that the program (.pl) files are not copied.

Windows Users

I haven't yet developed an installation script that will install the module files on a Windows platform. You can manually perform the three steps listed above by copying and editing the files. The command interpreter line (first line in .pl and .pm files) for Windows should just say:
#! perl

The use lib line should look something like:
use lib 'C:\src\perl';