Solved

Error installing ralus on Centos 5.3

Posted on 2009-04-08
8
3,462 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 79

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 79

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
WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

 
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 79

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

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

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

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 …
Fine Tune your automatic Updates for Ubuntu / Debian
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

630 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