3. Installing Perl

Perl offers distributions for many operating systems, including Win32 and almost all of the different ‘flavors’ of Unix. Installations on any of these systems should be fairly easy, as most offer a simple installation program that guides you through setup.

The complete Perl documentation is included with every Perl install, so if you have any Perl specific questions, you might want to refer to the specific documentation first. As quoted from the Perl FAQs: ‘The complete Perl documentation is available with the Perl distribution. If you have Perl installed locally, you probably have the documentation installed as well: type man perl if you're on a system resembling Unix. This will lead you to other important man pages, including how to set your $MANPATH. If you're not on a Unix system, access to the documentation will be different; for example, it might be only in HTML format. But all proper Perl installations have fully-accessible documentation.’ [1]

3.1. Installing Perl Modules

FotoBilder requires certain Perl modules to be installed on the server before it can run properly. [2]

Important

We've included a tool that can be used to detect whether or not you have the proper modules installed, located at: $FBHOME/bin/checkconfig.pl. If checkconfig.pl doesn't detect all of the required modules, it will tell you which ones you are missing. Note that this tool will fail after checking for modules, because it will also check for a database connection, which hasn't been set up yet. This will be fixed later when we add options to checkconfig.pl to detect for specific sections of installation.

Warning

The Image::Magick module requires the ImageMagick package be installed on your system before it can work. Consult “ImageMagick: Install” for more information.

Debian Install:  If you're using Debian the following command should install every module needed:

# apt-get install libwww-perl \
libsoap-lite-perl libimage-size-perl libdbd-mysql-perl libdbi-perl \
libdigest-md5-perl libapache-mod-perl libimage-info-perl \
perlmagick libstring-crc32-perl libapache-request-perl \
libstorable-perl libcompress-zlib-perl libtime-hires-perl \
libtie-cache-perl

Note

At the time of writing, libstring-crc32-perl is not in the stable distribution of Debian (Woody). If you use Debian Woody, you will have to install String::CRC32 from CPAN. See below for instructions.

All others:  You will need to run CPAN, which can be invoked by running the following command from a root shell prompt:

# perl -MCPAN -e shell
Once the Perl interpreter has loaded (and been configured), you can install modules by issuing the command install MODULENAME. The first thing you should do is upgrade your CPAN:
cpan> install Bundle::CPAN
Once it's done, type:
cpan> reload cpan
Now, install the following modules:
cpan> install DBI DBD::mysql Digest::MD5 Image::Size \
Image::Magick Image::Info LWP::Simple LWP::UserAgent \
SOAP::Lite String::CRC32 Apache::Request Storable \
Compress::Zlib Time::HiRes Tie::Cache



[2] Consult “ perlmodinstall” for more information.