Solved

Error installing ralus on Centos 5.3

Posted on 2009-04-08
8
3,346 Views
Last Modified: 2012-05-06
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?
0
Comment
Question by:vAdmin
  • 4
  • 3
8 Comments
 
LVL 77

Expert Comment

by:arnold
ID: 24100022
The script you are executing is perl (.pl) not sh.
either do
./installralus.pl
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.

0
 
LVL 2

Author Comment

by:vAdmin
ID: 24100214
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.
Exiting.

0
 
LVL 77

Expert Comment

by:arnold
ID: 24100272
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?
http://www.symantec.com/connect/forums/trouble-installing-ralus-12-linux

Do you have VXIF_HOME defined?
0
 
LVL 2

Author Comment

by:vAdmin
ID: 24100393
If I do chmod it returned:
chmod: changing permissions of `installralus.pl': Read-only file system
Here is the file:

#!/perl/me/explicitly
use strict;

use FindBin;
use lib $FindBin::Bin;

BEGIN {
      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()) {
            $err->put();
      }
}

Main();

0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 24100913
You have to use perl
You also have to set VXIF_HOME and the directory to which it points must exist:
VXIF_HOME=/somewhere/something
export VXIF_HOME
mkdir -p $VXIF_HOME
perl installralus.pl
0
 
LVL 2

Author Comment

by:vAdmin
ID: 24101050
It worked, thank you very much arnold. Those instructions are not in the support pages of symantec nor centos. Thank you very, very much.
0
 
LVL 3

Expert Comment

by:Mike R.
ID: 24263148
vAdmin: To what directoy did you set VXIF_HOME ?
0
 
LVL 2

Author Comment

by:vAdmin
ID: 24263190
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?
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now