RALUS installation on Ubuntu 14 fails due to Perl Switch.pm module missing

book

Article ID: 100014302

calendar_today

Updated On:

Description

Error Message

Executing the 'installralus' script reports the following errors:

Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: ../ /home/abiitadmin/ralusagent .. /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at ../VxIF/Utils.pm line 26.
BEGIN failed--compilation aborted at ../VxIF/Utils.pm line 26.
Compilation failed in require at ../VxIF/Interface/Utils/Config.pm line 22.
BEGIN failed--compilation aborted at ../VxIF/Interface/Utils/Config.pm line 22.
Compilation failed in require at ../VxIF/Interface/Generic/ConfigInfo.pm line 28.
BEGIN failed--compilation aborted at ../VxIF/Interface/Generic/ConfigInfo.pm line 28.
Compilation failed in require at ../VxIF/Interface/Generic/InstallerInfo.pm line 24.
BEGIN failed--compilation aborted at ../VxIF/Interface/Generic/InstallerInfo.pm line 24.
Compilation failed in require at ../VxIF/Interface/Generic/ClassFactory.pm line 22.
BEGIN failed--compilation aborted at ../VxIF/Interface/Generic/ClassFactory.pm line 22.
Compilation failed in require at ../VxIF/Interface/Classic/ClassFactory.pm line 4.
BEGIN failed--compilation aborted at ../VxIF/Interface/Classic/ClassFactory.pm line 4.
Compilation failed in require at ../installralus.pl line 16.
BEGIN failed--compilation aborted at ../installralus.pl line 16.


 

Executing the 'install Switch' command within cpan reports the following errors:

Writing Makefile for Switch
Writing MYMETA.yml and MYMETA.json
Can't exec "make": No such file or directory at /usr/share/perl/5.18/CPAN/Distribution.pm line 2084.
CHORNY/Switch-2.17.tar.gz
make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
Can't test successful make
Running without make install
Make had returned bad status, install seems impossible
Failed during this command:
CHORNY/Switch-2.17.tar.gz : make NO



 

Cause

RALUS installation is failing because the Perl Switch.pm module is missing.

The 'install Switch' command within cpan is failing because 'MAKE' is missing.

 

Resolution

Execute the below command to install 'MAKE'

sudo apt-get install build-essential

Once 'MAKE ' is installed

Re-run the 'install Switch' command and it should complete successfully.

Once switch is installed, re-run the RALUS installation and the Remote Agent for Linux Servers will install and start successfully.
 

 

Applies To

Ubuntu 14.x

Issue/Introduction

Remote Agent for Linux Servers (RALUS) installation on Ubuntu 14 fails due to Perl Switch.pm module missing.
Also, the 'install Switch' command within cpan does not complete successfully.