Go Premium for a chance to win a PS4. Enter to Win

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3527
  • Last Modified:

Error installing ralus on Centos 5.3

I am trying to install the Backup Exec Agent on a CentOS server, but when i run the command
sh ./installralus.pl it returns the following error:

./installralus.pl: line 2: use: command not found
./installralus.pl: line 4: use: command not found
./installralus.pl: line 5: use: command not found
./installralus.pl: line 7: BEGIN: command not found
./installralus.pl: line 8: syntax error near unexpected token `{'
./installralus.pl: line 8: `    if (!$ENV{VXIF_HOME} || (! -d $ENV{VXIF_HOME})) {'
 Any idea?
  • 4
  • 3
1 Solution
The script you are executing is perl (.pl) not sh.
either do
or do
perl installralus.pl.

The top of the install file, might point to perl where it does not exist on your system.
#!/usr/bin/perl while you have it in /usr/local/bin/perl.

vAdminAuthor Commented:
Thank you arnold, If I do ./installralus.pl it returns this:
-bash: ./installralus.pl: /perl/me/explicitly: bad interpreter: Permission denied
If I do perl installralus.pl it return this:
Invalid or undefined environment variable VXIF_HOME. Cannot proceed.

What is the top line of the installralus.pl file?
Do chmod 700 installralus.pl.

Are you sure you should not be running something else to install this?

Do you have VXIF_HOME defined?
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

vAdminAuthor Commented:
If I do chmod it returned:
chmod: changing permissions of `installralus.pl': Read-only file system
Here is the file:

use strict;

use FindBin;
use lib $FindBin::Bin;

      if (!$ENV{VXIF_HOME} || (! -d $ENV{VXIF_HOME})) {
            print STDERR "Invalid or undefined environment variable VXIF_HOME. Cannot proceed.\n";
            print STDERR "Exiting.\n";
            exit 2;

use lib $ENV{VXIF_HOME};
use VxIF::Interface::Classic::ClassFactory;

sub Main {
      my $class_factory = new VxIF::Interface::Classic::ClassFactory();
      my $installer_info = $class_factory->create_installer_info();
      my $result = $installer_info->from_config_file("ralusinst.conf");
      my $task = $class_factory->create_task($installer_info);

      my $err = $task->install();

      if ($err && $err->get_rc()) {


You have to use perl
You also have to set VXIF_HOME and the directory to which it points must exist:
export VXIF_HOME
mkdir -p $VXIF_HOME
perl installralus.pl
vAdminAuthor Commented:
It worked, thank you very much arnold. Those instructions are not in the support pages of symantec nor centos. Thank you very, very much.
Mike R.Commented:
vAdmin: To what directoy did you set VXIF_HOME ?
vAdminAuthor Commented:
I dont remember it was for a testing that I was doing I would need to go back to the server to check that. Why you ask?

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now