LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-13-2010, 07:47 AM   #1
vivekn
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
Why am I not able to run the shell script?


I am having RHEV hypervisor (I hope some of you would be familiar with it). It is a 64-bit OS. I am having a shell script. I am able to successfully execute it in most of the Linux OS like RHEL, SLES and even Solaris. If I try to execute it on RHEV hypervisor, I am getting the following message:

:../jre/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory.

I am quite new to Linux. Any help or suggestion would be of great help.

Thanks,
Vivek
 
Old 10-13-2010, 08:23 AM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Quote:
:../jre/bin/java: /lib/ld-linux.so.2
1. This is a java script? what does the hash/bang line say in the script?
2. why do you need to run a script on a rhev-h? it's a distribution specific for running VMs, not built for anything else, including custom scripts
 
Old 10-13-2010, 11:40 PM   #3
vivekn
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your quick response!

Hello,

Actually, its a simple shell script. Not a javascript. The output is as follows when I execute it:

./startup.sh:../jre/bin/java: /lib/ld-linux.so.2:bad ELF interpreter: No such file or directory.

What actually I am doing is it is a pre-compiled java and java is used as an interpreter and it exists in the same directory i.e., ../jre/bin.

Hope this is clear enough for you!
 
Old 10-14-2010, 05:26 AM   #4
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
well, it seems like the precompiled java is missing dependencies, and since you cannot satisfy those on a rhev-h system you can either not run the script, or use a rhel host as the hypervisor instead of rhev-h
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
in bash shell how to run shell script during startup rammohan04 Red Hat 2 07-31-2009 02:07 AM
MySQL Updates With Null When Perl Script Run From Shell Script ThisGuyIKnow Programming 6 08-12-2008 09:56 AM
Restrict a Shell Script to run from a shell bharaniks Linux - Security 7 08-26-2007 10:57 PM
how to run a shell script in the perl script sharad Linux - General 1 05-24-2006 03:23 AM
Shell script to run pl/sql script. colly Linux - General 1 09-09-2004 06:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 06:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration