You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

  • /usr/local/vcl
  • /etc/vcl/vcld.conf
  • /etc/init.d/vcld 

Download the Backend VCL Code

  • Download VCL backend code from the Apache Subversion repository and save it to /usr/local/vcl
svn export https://svn.apache.org/repos/asf/incubator/vcl/trunk/managementnode/ /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

  1. Change directories to /tmp:
    cd /tmp 
  2. 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
  3. Unpack the source package using tar:
    tar xzf libwww-perl-5.827.tar.gz
  4. The previous command should have created a libwww-perl-5.827 directory, change to this directory:
    cd libwww-perl-5.827
  5. Create a makefile with the following command:
    perl Makefile.PL
  6. Compile the module:
    make
  7. Test the module:
    make test
  8. Install the module:
    make install

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:

Can't locate HTTP/Headers.pm in @INC (@INC contains:

Once all of the required modules are installed, you should see something like this:

BIN PATH: /usr/local/vcl/lib/VCL
pre-execution: config file being used: /etc/vcl/vcld.conf
Uncaught exception from user code:
        VCLD : /etc/vcl/vcld.conf does not exist, exiting --  No such file or directory
BEGIN failed--compilation aborted at /usr/local/vcl/lib/VCL/utils.pm line 616.
 at /usr/local/vcl/lib/VCL/utils.pm line 616

There are a few different ways to install Perl modules. 

  • No labels