Solved

Error installing ralus on Centos 5.3

Posted on 2009-04-08
8
3,423 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 78

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 78

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
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 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
 
LVL 78

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Hosting 16 73
expand ext4 on centos 6 5 51
how to include conditional log rotate in liunx. 17 66
Can't "Unset" Proxy in Apache headers for PCI compliance... 4 31
Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

680 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