Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Launch Script Problem

Status
Not open for further replies.

gwinn7

Programmer
Feb 10, 2001
1,004
US
I attempted to install Mcafee Viruscan for Linux, but ran into the following problem...

"bash: ./installscan : bad interpreter: No such file or directory."

This error appeared after running the following in a bash shell:

"./installscan"

The path I was in to launch the installation script was the current path and, as root and the owner, I have full rights to the files in that folder. The beginning of the script "installscan" does have the she-bang (#!bin/sh) at the top of the script.

Could someone answer as to why this problem is occuring and what I need to do to get the script to run?

I have check other resources on the matter, but no luck. Can you help?

Thanks in advance,
Gary
gwinn7
A+, N+, I+
 
I assume that the script permission was set to executable ?

chmod o+x installscan

Good luck
L.
 
Sounds like Daniel's got the right idea, but you might want to post the first few lines of the script here, if Daniel's suggestion is not the right solution.

-Venkman
 
Opps sorry:

chmod o+x installscan .... should read:

chmod u+x installscan

Fat fingers (or thick head?)

L.


 
Well, I looked at all suggested options, but nothing seemed to work. I will have to post a few lines of the script in my next post.

Thank you for your responses.

Gary
gwinn7
A+,N+,I+



 
Are you sure /bin/sh actually exists? What do you get if you type it at the command line? Cheers.
 
OK, here is some of the actual script. Its the first few lines...

#!/bin/sh



#############################################################

#

# Company : Network Associates. All Rights Reserved.

# Author : M. Lucas

# Function : Script to install uvscan

# Creation date : 20/04/99

# Shell used : Bourne Shell

#

#############################################################





# Default installation location

default_dir="/usr/local/uvscan"

export default_dir



# Default install switches

switches="--secure -vr --summary"

all_fs="/"


KEN: Yes, the /bin/sh actually exists.

Any further ideas?

Thanks,
Gary
gwinn7
A+,N+,I+
 
Hmm! Ok I've installed this application on a number of RH 7.3's and a Cobalt RAQ without any problems, .... so things to check:

1) Does /usr/local/ exist on your server ? if not create it with (as root): mkdir -p /usr/local

2) Be sure that you have downloaded the "commandline scanner for Linux" not Solaris package.

3) Try again being sure that all the above is in place.

When you get it working I have a slightly modified AVUpdate.pl script that mails you when an update has been applied if your interested.

Good luck

Laurie.
 
Thanks Laurie! I will check all that out and get back to you!

Gary
gwinn7
A+,N+,I+

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top