Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

Install Subversion Client

...

Check if a Subversion client is already installed on the management node by running the svn command.  If not already installed, you can try to install it using yum with the following command:

...

If yum is not available, visit http://subversion.tigris.org and follow their the instructions for downloading and installing a Subversion client.

...

Download VCL backend code from the Apache Subversion repository and save it to /usr/local/vcl.

No Format
svn export https://svn.apache.org/repos/asf/incubator/vcl/trunk/managementnode/ /usr/local/vcl/

...

Run install_perl_libs.pl Script

There is a script A script is provided in the VCL repository called install_perl_libs.pl which will attempt to download and install the required perl libraries. To run   Run the script:

No Format
perl /usr/local/vcl/bin/install_perl_libs.pl

...

No Format
==============================================================================
URL: http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.609.tar.gz
Module filename: DBI-1.609.tar.gz
Module name: DBI-1.609
Module package: DBI
Checking if DBI is installed
Module is already installed: DBI
==============================================================================

Additional output will be displayed if a module has not been successfully installed.  You will need to troubleshoot if any modules were not installed successfully.

...

How to

...

Test if Required Perl Modules are Installed

Run the following command to execute the utils.pm file:

Code Block

perl /usr/local/vcl/lib/VCL/utils.pm

Executing utils.pm does not actually do anything but this will tell you if VCL will be able to run.  If any Perl modules are missing you will see "Can't locate"

...

lines:

No Format

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

Once all of the required modules are installed, you should see something like thisoutput similar to the following:

No Format
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

What to do if a Module is Missing

  1. Determine the name of the missing module by looking at the "Can't locate" line
  2. Search for the missing module on search.cpan.org and install it manually

How to Install a Perl Module Manually

...

  1. Enter the CPAN shell:
    perl -MCPAN -e shell
  2. 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.
  3. Search for a module using the "m" command:
    m /Zlib/
    You should find the module you were looking for on a line like this:
    No Format
    Module          Compress::Zlib  (P/PM/PMQS/IO-Compress-2.020.tar.gz)
    
  4. Install the module:
    install Compress::Zlib
  5. Answer yes if asked to install any prerequisite modules
    The last line you should see should be:
    No Format
    /usr/bin/make install  -- OK
    

How to Test if Required Perl Modules are Installed

Run the following command:

Code Block

perl /usr/local/vcl/lib/VCL/utils.pm

A module is missing if you see any "Can't locate" lines:

...

  1. 
    

Download Required Utilities

...

  1. Create the /etc/vcl directory:
    mkdir /etc/vcl 
  2. Copy the generic vcld.conf file to /etc/vcl:
    cp /usr/local/vcl/etc/vcl/vcld.conf /etc/vcl
  3. 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
  4. Save the vcld.conf file:
    <escape>
    :wq
    <enter>

Install the VCL Daemon (vcld) Service

...