You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 5
Next »
Assumptions
The following instructions assume the VCL database has been installed and configured and that the managment node information has been added to the database as described on the Web code installation page.
Download the Backend VCL Code
Download VCL backend code from the Apache Subversion repository and save it to /usr/local/vcl
Install Required Perl Modules
The VCL Perl code running on management nodes requires several additional Perl modules. These are available from CPAN - The Comprehensive Perl Archive Network. A search engine for CPAN modules is available at search.cpan.org.
The following list of modules should be installed in the order in which they appear:
How to Install a Perl Module Manually
- Change directories to /tmp:
cd /tmp
- Download the module's source package using wget:
wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/libwww-perl-5.827.tar.gz
- Unpack the source package using tar:
tar xzf libwww-perl-5.827.tar.gz
- The previous command should have created a libwww-perl-5.827 directory, change to this directory:
cd libwww-perl-5.827
- Create a makefile with the following command:+
perl Makefile.PL
- Compile the module:
make
- Test the module:
make test
- Install the module:
make install
How to Install a Perl Module Using CPAN
- Enter the CPAN shell:
perl -MCPAN -e shell
- You will need to configure CPAN if it's the first time it is being run. Enter No at the first prompt to auto-configure the CPAN module.
- Search for a module using the "m" command:
m /Zlib/
You should find the module you were looking for on a line like this:
Module Compress::Zlib (P/PM/PMQS/IO-Compress-2.020.tar.gz)
- Install the module:
install Compress::Zlib
- Answer yes if asked to install any prerequisite modules
The last line you should see should be:
/usr/bin/make install -- OK
How to Test if Required Perl Modules are Installed
Run the following command:
perl /usr/local/vcl/lib/VCL/utils.pm
A module is missing if you see any "Can't locate" lines:
Once all of the required modules are installed, you should see something like this:
- Create the /etc/vcl directory:
mkdir /etc/vcl
- Copy the generic vcld.conf file to /etc/vcl:
cp /usr/local/vcl/etc/vcl/vcld.conf /etc/vcl
- Edit the /etc/vcl/vcld.conf file:
vi /etc/vcl/vcld.conf
The following lines must be configured in order to start the VCL daemon (vcld) and allow it to check in to the database:
- FQDN - the fully qualified name of the management node, this should match the name that was configured for the management node in the database
- server - the IP address or FQDN of the database server
- LockerWrtUser - database user account with write privileges
- wrtPass - database user password
- Save the vcld.conf file:
<escape>
:wq
<enter>