/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

Similar Messages

  • /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

  • Bash: /mnt/cdrom/runInstaller: /bin/sh: bad interpreter: Permission denied

    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.

  • -bash: ./runInstaller: /bin/sh: bad interpreter: permission denied

    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.
    Shahzad

    ls -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 Guys

    Not 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 ..:-)

  • Bash: ./jdev: /bin/sh: bad interpreter: Permission denied

    Unzipped the jdevj2eebase1013.zip
    Set permissions as per install guide.
    Try to run jdev get this error
    bash: ./jdev: /bin/sh: bad interpreter: Permission denied
    Note the install guide says to run $ jdev
    from command line, surely this means
    $ ./jdev
    instead. Tried it verbatim but get
    hj54@devhost:~/downloads/oracle/10g/jdeveloper10.1.3pre/jdev/bin> jdev
    bash: jdev: command not found
    Distro is Novell Linux Desktop ( Suse 9.0 )

    ls -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

  • Yaourt wont build any packages..../configure: /bin/sh: bad interpreter

    im tying to build a package with yaourt and it isnt working.
    [mark@markspc ~]$ yaourt -S indicator-applet
    ==> Resuming previous build
    ==> Downloading indicator-applet PKGBUILD from AUR...
    ==> Last 5 comments ordered by date (asc):
    Comment by: lumpy211 on Fri, 13 Nov 2009 19:51:52 +0000
    Phrodo,
    It doesn't work for me either, it just crashes even with libindicator.
    Comment by: max.bra on Sun, 15 Nov 2009 10:48:19 +0000
    don't use now (0.2.0-1)
    it doesn't work and install file directly onto the system overwriting a gdm package file (no real package creation and no real remove/clean)
    trying to do better. hold on.
    Comment by: max.bra on Mon, 16 Nov 2009 21:08:35 +0000
    The situation is slightly better.
    now indicator-applet-session work as expected. tested with empathy and pidgin.
    indicator-applet (the icon with the letter envelope) even that seems to work (tested with /usr/libexec/im-client) but nothing on arch trigger compatible events. as usual applications are patched upstream. standard compiling of available sources, also lacks of initial menu applet found in Ubuntu to launch applications.
    no localization at the moment, only English.
    I added a dbus rule which may represent a security lack. I ask those who have more knowledge of dbus to give advice on.
    suggestions are appreciated
    Comment by: max.bra on Mon, 16 Nov 2009 21:43:13 +0000
    However I do not think it's worth to be used on arch.
    Dropping
    Comment by: piezoelectric on Tue, 17 Nov 2009 01:52:06 +0000
    It's a nice utility for multi-user environments. Especially those with inexperienced users.
    First Submitted: Tue, 20 Oct 2009 20:30:35 +0000
    indicator-applet 0.2.0-2 : A small applet to display information from various applications consistently in the panel. (Canonical Ayatana Project)
    ( Unsupported package: Potentally dangerous ! )
    ==> Edit the PKGBUILD (highly recommended for security reasons) ? [Y/n]("A" to abort)
    ==> ----------------------------------------------
    ==>n
    ==> indicator-applet dependencies:
    - gconf (already installed)
    - gnome-panel (already installed)
    - indicator-messages (building from AUR)
    - indicator-session (building from AUR)
    ==> WARNING: This PKGBUILD contains install file that can be dangerous.
    indicator-applet.install
    ==> Edit indicator-applet.install (highly recommended for security reasons) ? [Y/n] ("A" to abort)
    ==> ----------------------------------------------
    ==>n
    ==> Continue the building of indicator-applet ? [Y/n]
    ==> ----------------------------------------------
    ==>y
    ==> Building missing dependencies from AUR:
    ==> Resuming previous build
    ==> Downloading indicator-messages PKGBUILD from AUR...
    tar: Record size = 15 blocks
    First Submitted: Mon, 16 Nov 2009 20:51:33 +0000
    indicator-messages 0.2.6-1 : A place on the user's desktop that collects messages that need a response. (Canonical Ayatana Project)
    ( Unsupported package: Potentally dangerous ! )
    ==> Edit the PKGBUILD (highly recommended for security reasons) ? [Y/n]("A" to abort)
    ==> ----------------------------------------------
    ==>n
    ==> indicator-messages dependencies:
    - libindicate (building from AUR)
    - libdbusmenu (building from AUR)
    - libindicator (building from AUR)
    ==> WARNING: This PKGBUILD contains install file that can be dangerous.
    indicator-messages.install
    ==> Edit indicator-messages.install (highly recommended for security reasons) ? [Y/n] ("A" to abort)
    ==> ----------------------------------------------
    ==>n
    ==> Continue the building of indicator-messages ? [Y/n]
    ==> ----------------------------------------------
    ==>y
    ==> Building missing dependencies from AUR:
    ==> Resuming previous build
    ==> Downloading libindicate PKGBUILD from AUR...
    tar: Record size = 6 blocks
    First Submitted: Mon, 16 Nov 2009 20:50:29 +0000
    libindicate 0.2.3-1 : A small library for applications to raise \"flags\" on DBus for other components of the desktop to pick up and visualize. (Canonical Ayatana Project)
    ( Unsupported package: Potentally dangerous ! )
    ==> Edit the PKGBUILD (highly recommended for security reasons) ? [Y/n]("A" to abort)
    ==> ----------------------------------------------
    ==>n
    ==> libindicate dependencies:
    - glib2 (already installed)
    - gtk2 (already installed)
    - dbus-glib (already installed)
    - libxml2 (already installed)
    ==> Continue the building of libindicate ? [Y/n]
    ==> ----------------------------------------------
    ==>y
    ==> Install or build missing dependencies for libindicate:
    ==> Building and installing package
    ==> libindicate dependencies:
    - glib2 (already installed)
    - gtk2 (already installed)
    - dbus-glib (already installed)
    - libxml2 (already installed)
    ==> Making package: libindicate 0.2.3-1 x86_64 (Mon Nov 30 21:22:18 GMT 2009)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Found libindicate-0.2.3.tar.gz in build dir
    ==> Validating source files with md5sums...
    libindicate-0.2.3.tar.gz ... Passed
    ==> Extracting Sources...
    -> Extracting libindicate-0.2.3.tar.gz with bsdtar
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    /tmp/yaourt-tmp-mark/aur-libindicate/libindicate/./PKGBUILD: ./configure: /bin/sh: bad interpreter: Permission denied
    ==> ERROR: Build Failed.
    Aborting...
    Error: Makepkg was unable to build libindicate package.
    ==> Install or build missing dependencies for indicator-messages:
    ==> Install or build missing dependencies for indicator-applet:
    [mark@markspc ~]$
    this is the most important bit
    ==> Starting build()...
    /tmp/yaourt-tmp-mark/aur-libindicate/libindicate/./PKGBUILD: ./configure: /bin/sh: bad interpreter: Permission denied
    any reason why this is happening?
    thanks markp1989

    markp1989 wrote:==> Starting build()...
    /tmp/yaourt-tmp-mark/aur-libindicate/libindicate/./PKGBUILD: ./configure: /bin/sh: bad interpreter: Permission denied
    What are your /tmp permissions?
    Also, is your /tmp on a separate partition?  If so, what is the fstab entry for it?
    Last edited by tdy (2009-11-30 22:47:23)

  • [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.

  • 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
    EOF

    The 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

  • 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
    q

    i 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

    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

  • [SOLVED] /usr/bin/env: No such file or directory

    Hi,
    I've tried to install a couple packages from the AUR, but when I run "makepkg -s", I get this error:
    /usr/bin/env: No such file or directory
    make: *** [install] Error 127
    ==> ERROR: A failure occurred in package().
        Aborting...
    I'm sorry if this is something terribly simple, but I can't find any mention of /usr/bin/env anywhere.
    I have coreutils installed, which I believe env is part of.
    Thank you for any help!
    Last edited by dluco (2013-09-24 01:37:11)

    The /usr/bin/env is provided by the coreutils package. 
    You didn't run into issues when there was the move from /bin, /sbin, /usr/sbin → /usr/bin ?  This happened back in the beginning of June!  You need to read the front page news.
    If this is the case, I am venturing to guess that your system is probably not actually up to date, and even that you might have been doing partial updates for some time now…
    Edit: Check /bin, /sbin, and /usr/sbin and see if they are symlinks pointing to /usr/bin.  If they are, you apparently made it through that update unscathed.  If they are not, well…
    Last edited by WonderWoofy (2013-09-23 16:25:19)

  • 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

  • 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
    Alex

    forget 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

  • Using laplace transform function to get transform in s-domain

    I want to know that how it would be possible to get the laplace transform of a function(for e.g. Ramp) in s-domain using the Laplace Transform Real.vi function in LabView 2012. I need to get the laplace transform in s-domain so that i can plot the Po

  • Problems starting OSB 10.1.3 getting to Admin consoles AppsAdapter issue

    Hi, Using OSB 10.1.3 Have a problem when starting my OSB server after rebooting the server machine. Any suggetsions from how to recover from this kind of problem since it pervents me from getting to the Administration console? Here is the error I get

  • Magenta Tint on Workspace

    When I click on any photo in bridge or Lightroom. It turns a horrible Magenta colour. These aren't NEF files, but CR2 or jpeg. Even the gray surround in Camera Raw is Magenta. I've tried reverting to ACR 4.2 but to no avail. Only happened after I did

  • Anchors and Section Headings

    I'm currently building a single scroll porfolio site using anchors and thumbnails to scroll to specific content on my site.  I'd like to create a section heading for each of the major sections on my site that changes when your in viewing content with

  • 8600026 error

    Hello, when I try to sync  my Lumia 800 with Windows Live account, it reports 86000206 error. I tried all helps on MS support web page (http://support.microsoft.com/kb/2464629), but without any success. Any ideas what can be wrong? Thanks, RP