Bad interpreter
the problem i face is explained here but i dontknow how to build a soft link and wat shoild be the name of the soft link.so please explain me
====================
user621122 wrote:
:bad interpreter: no such file or directory1/rapidwiz/bin/runWizard.sh: /bin/sh
Line 1 of the runWizard.sh looks like
#!/bin/sh
However, your system does not appear to have /bin/sh defined. That may be a permissions problem. It may also be a problem with hidden characters.
For missing files or permissions, I find it a pretty common issue with /bin/ksh (many Linux systems have /bin/pdksh but not /bin/ksh), but it's pretty rare for /bin/sh to be missing. This may happen when a custom jail is built (eg: chroot) or when called from a special environment.
As the user who is to run the runWIzard, ls -l the /bin/sh ... if it does not exist, ask the sysadmin (perhaps yourself) to create a link to the bash - should be pretty close to compliant.
The second variant, hidden characters, occurs when the shell script is edited in Windows and then run in *nix. If that is the case, it may be corrected by running dos2unix on the runWizard.sh - see the man page for dos2uni
Hi,
Please see these threads.
Facing Error Installing Oracle Apps 11i. :bad interpreter: No such file
Re: Facing Error Installing Oracle Apps 11i. :bad interpreter: No such file
/bin/sh: bad interpreter: Permission denied- Rapidwiz
/bin/sh: bad interpreter: Permission denied- Rapidwiz
Regards,
Hussein
Similar Messages
-
Bad interpreter: Operation not permitted on Lion 10.7.3
My unix scripts are now dead, after the upgrade to 10.7.3. A typical error message is /bin/bash: bad interpreter: Operation not permitted Googling this issue shows other people are having build scripts fail and are fixing this by renaming links to libraries. My scripts are simple, they just run an executable, or used to... something like this:
#! /bin/bash
./myprogram << EOF
$1
EOFThe interpreter is the thing that comes after "#!"; in your case, /bin/bash. Are you able to open a shell in Terminal? If so, what is your shell, and what do you get from
ls -Oel /bin/bash
and
codesign -vv /bin/bash -
Bad interpreter: Permission denied whn installin ORACLE 11g on linux 32 bit
Hello All,
I have a VMWare that i installed into it Oracle enterprise Linux 5 32 bit, i am trying to install Oracle 11g R2 on it, i have the .iso oracle file, l linked the CD/DVD drive of the VMware to the location of this ISO file, and i applied all the steps mentioned in this link : http://www.oracle-base.com/articles/11g/OracleDB11gR2InstallationOnEnterpriseLinux5.php
i did: cd media and i found the runInstaller file but wen trying to run it: ./runInstaller i am facing the below :
[root@oel5 media]# cd V17489-01/
[root@oel5 V17489-01]# ls
doc install response rpm runInstaller sshsetup stage welcome.html
[root@oel5 V17489-01]# ./runInstaller
-bash: ./runInstaller: /bin/sh: bad interpreter: Permission denied
your help is appreciated please.
Regards,The problem is that gnome-mount will not give you execute rights on CD/DVD content. The solution is at the below link in the Tips section:
Installing Oracle 11g R2 on Ubuntu 10 Howto
Logout your current X-session and login as user Oracle
Insert the Oracle Installation DVD
Or from a remote terminal session:
Insert the Oracle Installation DVD
sudo umount /dev/sr0
Create a new session as user Oracle
ssh -Y oracle@server_address
sudo mount /dev/sr0 /media
/media/database/runInstaller
If you see "runinstaller" instead of "runInstaller" you can try the following:
sudo mount -o loop,norock /dev/cdrom /media
more also here:
runInstaller ".oui: No such file" / "bad interpreter: Permission denied"
Edited by: Joe Shmoe on Nov 5, 2010 11:45 AM -
Facing Error Installing Oracle Apps 11i. :bad interpreter: No such file
Dear all
i am facing the following error during installing oracle 11i . when i run "./rapidwiz" command
face the following error
:bad interpreter: no such file or directory1/rapidwiz/bin/runWizard.sh: /bin/sh
I am on Oracle Linux 5.3
Please help..
Thanks
Regards
Gaurav GuptaHi,
Please see (Note: 243485.1 - bash: ./ : bad interpreter: No such file or directory).
Regards,
Hussein -
/bin/sh: bad interpreter: Operation not permitted error OS X Lion
I am trying to install omnetpp-4.2.2 on OS X Lion. When I try to configure I get the following error msg:
-bash: ./configure: /bin/sh: bad interpreter: Operation not permitted.
Sudo ./configure didn't help. Highly appreciate your help.bad interpreter: Operation not...: Apple Support Communities
-
hi,
i m new to oracle on linux
Oracle 10gR2 on RedHat Enterprise Linux 5
while running ./runInstaller
this error displays
bash: /media/database/runInstaller: /bin/sh: bad interpreter: Permission denied
can any one help me, please answer here or [email protected]It's got nothing to do with who he's running the installer as (though he should indeed run it as the oracle user, of course).
It's got everything to do with the fact that a lot of distros these days automount their CDs with the noexec switch set. Meaning that no-one apart from root is allowed to execute programs from the mounted media. Centos 5 does it, so RHEL5 would do it too. OpenSuse10.3 doesn't do it; Fedora 8 does; Debian 4 does.
If your distro uses an old-fashioned fstab (Debian 4 does, for example), you could edit that and stick an explicit 'exec' switch in as one of the mount options (plain old "user", commonly specified, implies "noexec").
But RHEL5 and Fedora 8, for example, use a new udev-magic way of dynamically mounting removable media, so there's nothing listed in /etc/fstab until after a cd or dvd has been automounted... and by that stage, it's too late to edit what the mount options should be!
The fix for these sorts of distros is to become root and manually unmount any Oracle CDs or DVDs that have been automounted. You can then simply re-mount them by issuing a command such as
mount -o loop /dev/cdrom /media...and, because this manual mount doesn't include explicit noexec switches, you'll find that if you now become the oracle user, you'll be allowed to execute the runInstaller program normally. -
RunInstaller ".oui: No such file" / "bad interpreter: Permission denied"
Hi,
The Oracle "runInstaller" script gives the following errors:
a) bad interpreter: Permission denied
b) .oui: No such file
Solution:
- insert the DVD
- umount /media/<tab>
- mount -o norock /dev/cdrom /media
Reason:
a) "gnome-mount" mounts iso9660 with "noexec" privileges.
b) Some DVD's require the mount "norock" option to prevent filename conversions.
The above is ok for the purpose of installing, but annoying if you don't know the solution. The thing with gnome-mount and HAL seems quit complex. I tried to change the gnome-mount defaults to include "exec" privileges, but without success.
yum install gconfig-editor
("gcon-editor" GUI - look under system/storage)
With DVD mounted to change settings for a particular volume , or without to change default for all:
gnome-mount --display-settings -d /dev/cdrom
gnome-mount --write-settings -d /dev/cdrom -m mnt
gnome-mount --erase-settings -d /dev/cdrom
Changing the default mount point inside /media worked, but it made no difference to set "exec" mount option (-o exec)
An entry in /etc/fstab overwrite these settings:
/dev/cdrom /media/mnt iso9660 norock,exec 0 0
which gives an error if the media is not present at shutdown or startup
How to change the defaults for gnome-mount to include "exec" for /dev/cdrom?
Kind regards.
Edited by: waldorfm on May 5, 2010 10:32 AMYes. Actually I thought I would post this because I was not able to "google" a solution. Apparently other people experienced the same problem and were not able to install from DVD.
-
I have done all pre requisite configurations in Enterprise Linux R5 for the installation of Oracle Database 10g R2. When I run this ./runInstaller command from terminal window of Oracle user account. I got following error.
-bash: ./runInstaller: /bin/sh: bad interpreter: permission denied
Kindly send me the solution of this problem on urgent basis.
Thanks.
Shahzadls -la runInstaller
Check permission, that user can run.(execute)
By the way, if you use "oracle" user rune it...
Please Extract Oracle Source by oracle user.
Or user root user and change permission source ...
root$ cd SOURCE
root $ ls -la runInstaller
root$ chown -R oracle:oinstall .
example:
$ cd Disk1/
$ ls -la runInstaller
-rwxr-xr-x 1 oracle oinstall 1756 Mar 12 2008 runInstaller -
/bin/sh: bad interpreter: Permission denied- Rapidwiz
hi Gurus,
I am trying to install apps 11.5.10.2 from an external hard drive onto oracle enterprise linux , installed on vmware workstation 6, and i got error--- /bin/sh: bad interpreter: Permission denied.When trying to run the rapidwiz.
Can somebody pls help me with full discription of this problem and what the solution might be. Secondly please help with the steps required when installing 11i on oracle enterprise linux as i know nothing about linux configuration.Thanks GuysNot Sure if this issue is still open.
Recently I faced the same issue while executing/running ./rapidwiz (from stage area ) from External usb disk with ext2 file system. Basically I was trying to install R12.0.4 on OEL 5 Platform,
I was getting the same error PERMISSION DENIED /bin/sh bad interpreter. I started experimenting many different things to start with chmod,chown ...and also having a manual entry in /etc/fstab for the external drive but nothing worked out.
After hour's(3-4)of googling around I could finally fix it OLAH ...
Firstly if some one see's the similar issue (assuming the similar senario as well ...stage created on External usb HD)
1) Check the out put of the "mount" command.
If it is /media/usbdisk (rw, noexec,nosuid) * -- this the culprit ** you would never be able to run/execute any program or executable within this disk.
2) Fix it -- use below command.
mount -0 remount rw /media/usbdisk .
3) And upon re-running " mount" cmd, u'll see below output.
**/media/usbdisk (rw) -- observe we don't c the noexec, nosuid from first run.
--uh!! Phew !!
And the installation start ...with no issue's ... I hope this will be usefull for other novie like me ..:-) -
Error: bad interpreter: No such file or directory
Solved....if you ever executing any file from the $iAS/bin directory and get the "bad interpreter: No such file or directory" then all you do is edit that file in vi or whatever, the look at the first line where it said #!/bin/ksh (in by case, it uses Korn shell I guess to interpret the script, in fact I don't have ksh install) and check to see if you have that particular file in /bin directory. If not, all you do is just make a sym link to /bin/sh under the name of /bin/ksh (assuming you have bash shell installed). The problem will be solved then.
Hope this help some of you out as it does for me as a newbie in Oracle products. :)Hi,
Rather, you can refer the below note and use the attached SQL script to create OPS$ user. It is for windows but works for unix also.
50088 - Creating OPS$ users on Windows NT-Oracle
use the attachement ORADBUSER.SQL.
OR refer the below post. I have replied to the similar query (Oracle Procedure usign SQLPLUS)..
[Re: Backup recovery test|Re: Backup recovery test]
Regards,
Rajesh Narrkhede -
/bin/env: bad interpreter [Solved]
Hi, I have a script that I wrote for backing up important config files, it used to run fine now I get this error message:
/bin/env: bad interpreter
The script uses python2.7 the shebang is:
#!/bin/env python2.7
My $PATH is:
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/kde/bin:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/qt/bin
2.7 is not the default but as you see I am specifying that in the shebang, I retyped the line to make sure there wasn't any weird characters and no help.
I executed:
find /usr -type f -name 'python*' -perm -a+x
and here is the output as you can see it is listed.
/usr/lib/libreoffice/program/pythonloader.uno.so
/usr/lib/gimp/2.0/plug-ins/python-console.py
/usr/lib/gimp/2.0/plug-ins/python-eval.py
/usr/lib/weechat/plugins/python.so
/usr/lib/vmware-installer/2.0/python/python
/usr/lib/xchat/plugins/python.so
/usr/bin/python2.7-config
/usr/bin/python3
/usr/bin/python3.2
/usr/bin/python3.2mu
/usr/bin/python2.7
/usr/bin/python3.2mu-config
/usr/bin/python2.4
Anyone have an idea what this might be?
thanks in advance for your help.
--jerry
Last edited by jk121960 (2012-06-17 21:48:50)jk121960,
/bin/env moved to /usr/bin/env.
Mektub -
[SOLVED]Pacstrap causing error "bad interpreter"
Hi,
I am not "extremely" new to Arch as I've installed Arch on a machine(not mine) a couple of years back. But I don't exactly remember the steps. I used Lubuntu in my machine(HP dm1z) for a long time and I can be considered as a newbie here. So I went through the Installation Guide and started installing. Intro over.
So the problem is when I try to install the base system using pacstrap:
pacstrap /mnt base
it gives me the error
zsh: /usr/bin/pacstrap: bad interpreter: /bin/bash: no such file or directory
The installation media I use is a USB stick and I used Win32DiskImager to burn the image on to it. I tried the iso on vmplayer in my windows machine and was able to install it successfully.
What could be the issue?
Last edited by jrbalu (2013-06-02 03:56:39)I failed to mention it but I was checking the beginner's guide also. There seems to be not much help in the beginner's guide too, if the error I mentioned above occurs. I googled as vast as I can but failed to find a solution.
-
#service fwocfs start bad interpreter error
I am trying to autoscan of firewire storage device in RAC configuration but i am getting this error;
#service fwocfs start
/sbin/service:/etc/init.d/fwocfs: bad interpreter: No such file or directory.
Thanks.My first guess would be that you downloaded it on Windows and you converted it to a DOS file format by mistake.
To verify, execute the following command:
od -c /etc/init.d/fwocfs | head -1
If it shows character like '\r \n', then it's in DOS format.
To convert it back to a UNIX text file format, run:
dos2unix /etc/init.d/fwocfs
Werner -
Bad interpreter: Argument list too long
When attempting to run dbca (oracle 9i release 2), the following error is reported. Using Werner's installation guide, the install process has been otherwise problem free.
The target system is:
Redhat 9
Linux version 2.4.20-28.9 ([email protected])
Any suggestions would be greatly appreciated.
dbca
/usr/oracle/oracle.swd.jre/bin/i386/native_threads/jre: /usr/oracle/oracle.swd.jre/bin/i386/native_threads/jre: /bin/sh: bad interpreter: Argument list too long/usr/oracle/oracle.swd.jre/bin/i386/native_threads/jre: line 120: /usr/oracle/oracle.swd.jre/bin/i386/native_threads/jre: Success
qi am also facing the same problem as installation of oracle 9i on red hat the error is comming when running ./dbca to crate database the error is as
"/opt/oracle/product/9.2.0/oracle.swd.jre/bin/i386
native_threads/jre:
/opt/oracle/product/9.2.0/oracle.swd.jre/bin/i386/native_threads/jre:
/bin/sh: bad interpreter :Argument list too long
/opt/oracle/product/9.2.0/oracle.swd.jre/bin/i386/native_threads/jre:
line 120 :
/opt/oracle/product/9.2.0/oracle.swdj.jre/bin/i386/native/_threads/jre
:sucess"
do you have any solution the pls send me on [email protected] -
Bad interpreter error when trying amxmlc HelloWorld.mxml
Hi,
I'm getting the following error when I try to 'amxmlc
HelloWorld.mxml' on Mac OSX....
: bad interpreter: No such file or directorylc: /bin/sh
I have both Flex and AIR SDKs downloaded and in my path envs.
Anyone know what's wrong please?
Tks
Alexforget that - I was using the open source SDK and I guess it
doesn't work with that. Working fine with the non open source
one.
Maybe you are looking for
-
Getting values from jsp in portlet
Hi, I want to know if I submit values from a jsp page how can get those values in the portlet class (extends Generic portlet). I have tried accessing using actionRequest.getParameter() and also renderRequest.getParameter(). But I get null value . Do
-
Class Loading on specific diretory
I am writing a plugin based engine and I want to load up my classes(plugins) from a specific directory besides "classes/com/bla/bla/bla" So, I am using this code: URL[] url = new URL[1]; try { url[0] = new URL("file:think/"); catch (MalformedURLExcep
-
BUG?: unexpected token in connection pane for cursor declaration
If I declare a cursor with an order clause in the declaration part of a procedure in a package I will get the unexpected token. The code compiles without errors. SQL Developer 15.57. Windows XP SP2 Oracle 10g example: declare procedure test( param in
-
Cant startup mount error in alert.log urgent
Hi I am trying to start mount my db but here are some messages aI get from the alert.log, I am so new to oracle and I think i have altered some files by shuting starting oracle.I have just made some backup before the error occured like starting the d
-
SITUATION GOES LIKE THIS. IN THE PARK, IPAD4(wifi) STOLEN NOTE IPADWIFI ONLY. ALL LOCATION SERVICES ARE ON ----------------- WIFI IS ALSO ON BUT NOT CONNECTED TO ANY NETWORK!!! IM SEARCHING FOR MY IPAD USING FIND MY IPAD ON ENTERING A WIFI ZONE WILL