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.
Check if a Subversion client is already installed on the management node by running the command: svn. If not already installed, you can try to install it using yum with the following command:
yum install subversion
If yum is not available, visit http://subversion.tigris.org/ and follow their instructions for downloading and installing a Subversion client.
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/
The VCL Perl code running on a management node requires several additional Perl modules available from CPAN - The Comprehensive Perl Archive Network. A search engine for CPAN modules is available at search.cpan.org.
There is a script called install_perl_libs.pl which will attempt to download and install the required perl libraries. To run the script:
perl /usr/local/vcl/bin/install_perl_libs.pl
A large amount of output will be displayed on the console the first time the script is run. It will pause if any of the module installations ask for configuration information. Accept all of the defaults by pressing enter when this happens.
Run the script a 2nd time to check if all of the modules the script is configured to install were successfully installed. Output similar to the following should be displayed for each module:
============================================================================== 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 ==============================================================================
You will need to troubleshoot if any modules were not installed successfully.
The following is a list of modules known to be required. They should be installed in the order in which they appear because some are prerequisites for subsequent modules.
/usr/bin/make install -- OK
Module Compress::Zlib (P/PM/PMQS/IO-Compress-2.020.tar.gz)
/usr/bin/make install -- OK
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
Starting vcld daemon: BIN PATH: /usr/local/vcl/bin pre-execution: config file being used: /etc/vcl/vcld.conf FQDN is not listed pre-execution: process name is set to: vcld pre-execution: verbose mode is set to: 1 pre-execution: testing mode is set to: 0 pre-execution: log file being used: /var/log/vcld.log pre-execution: PID file being used: /var/run/vcld.pid Created process 23696 renamed to vcld ... [ OK ]
2009-06-16 16:57:15|15792|vcld:main(165)|lastcheckin time updated for management node 18: 2009-06-16 16:57:15