This discussion is archived
6 Replies Latest reply: Apr 8, 2013 10:54 PM by Krishna-Oracle RSS

./runInstaller.sh: line 5: ./runInstaller: No such file or directory

GlennD. Newbie
Currently Being Moderated
Does anyone know how to fix this error - Thanks Glenn


$ ll
total 260
-rwxr-xr-x. 1 oracle oinstall 28 Sep 22 2011 addLangs.sh
-rwxr-xr-x. 1 oracle oinstall 619 Sep 22 2011 addNode.sh
-rwxr-xr-x. 1 oracle oinstall 275 Sep 22 2011 attachHome.sh
-rwxr-xr-x. 1 oracle oinstall 7499 Sep 22 2011 clusterparam.ini
-rwxr-xr-x. 1 oracle oinstall 181 Sep 22 2011 detachHome.sh
drwxr-xr-x. 2 oracle oinstall 4096 Sep 22 2011 images
-rwxr-xr-x. 1 oracle oinstall 60689 Sep 22 2011 lsnodes
-rwxr-xr-x. 1 oracle oinstall 2058 Sep 22 2011 oraparam.ini
-rwxr-xr-x. 1 oracle oinstall 6437 Sep 22 2011 oraparamsilent.ini
drwxr-xr-x. 2 oracle oinstall 4096 Sep 22 2011 resource
-rwx------. 1 oracle oinstall 101 Apr 5 20:43 ri.sh
-rwx------. 1 oracle oinstall 98 Apr 5 20:43 ri.sh~
-rwxr-xr-x. 1 oracle oinstall 107 Sep 22 2011 runInstaller.sh
-rwxr-xr-x. 1 oracle oinstall 145976 Sep 22 2011 unzip

$ ./runInstaller.sh -record -destinationFile /tmp/11gR2.rsp
./runInstaller.sh: line 5: ./runInstaller: No such file or directory

$ cat ./runInstaller.sh
#!/bin/sh
CUR_DIR=$(pwd)
RUNINSTALLER_DIR=`dirname $0`
cd $RUNINSTALLER_DIR
./runInstaller $*
cd $CUR_DIR

$ head -5 ./runInstaller.sh
#!/bin/sh
CUR_DIR=$(pwd)
RUNINSTALLER_DIR=`dirname $0`
cd $RUNINSTALLER_DIR
./runInstaller $*

$ uname -a
Linux unknown20cf3028fda2 2.6.32-358.2.1.el6.x86_64 #1 SMP Tue Mar 12 12:10:36 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux
  • 1. Re: ./runInstaller.sh: line 5: ./runInstaller: No such file or directory
    EdStevens Guru
    Currently Being Moderated
    Glenn D. wrote:
    Does anyone know how to fix this error - Thanks Glenn


    $ ll
    total 260
    -rwxr-xr-x. 1 oracle oinstall 28 Sep 22 2011 addLangs.sh
    -rwxr-xr-x. 1 oracle oinstall 619 Sep 22 2011 addNode.sh
    -rwxr-xr-x. 1 oracle oinstall 275 Sep 22 2011 attachHome.sh
    -rwxr-xr-x. 1 oracle oinstall 7499 Sep 22 2011 clusterparam.ini
    -rwxr-xr-x. 1 oracle oinstall 181 Sep 22 2011 detachHome.sh
    drwxr-xr-x. 2 oracle oinstall 4096 Sep 22 2011 images
    -rwxr-xr-x. 1 oracle oinstall 60689 Sep 22 2011 lsnodes
    -rwxr-xr-x. 1 oracle oinstall 2058 Sep 22 2011 oraparam.ini
    -rwxr-xr-x. 1 oracle oinstall 6437 Sep 22 2011 oraparamsilent.ini
    drwxr-xr-x. 2 oracle oinstall 4096 Sep 22 2011 resource
    -rwx------. 1 oracle oinstall 101 Apr 5 20:43 ri.sh
    -rwx------. 1 oracle oinstall 98 Apr 5 20:43 ri.sh~
    -rwxr-xr-x. 1 oracle oinstall 107 Sep 22 2011 runInstaller.sh
    -rwxr-xr-x. 1 oracle oinstall 145976 Sep 22 2011 unzip

    $ ./runInstaller.sh -record -destinationFile /tmp/11gR2.rsp
    ./runInstaller.sh: line 5: ./runInstaller: No such file or directory

    $ cat ./runInstaller.sh
    #!/bin/sh
    CUR_DIR=$(pwd)
    RUNINSTALLER_DIR=`dirname $0`
    cd $RUNINSTALLER_DIR
    ./runInstaller $*
    cd $CUR_DIR

    $ head -5 ./runInstaller.sh
    #!/bin/sh
    CUR_DIR=$(pwd)
    RUNINSTALLER_DIR=`dirname $0`
    cd $RUNINSTALLER_DIR
    ./runInstaller $*

    $ uname -a
    Linux unknown20cf3028fda2 2.6.32-358.2.1.el6.x86_64 #1 SMP Tue Mar 12 12:10:36 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux
    I'd say the error message is pretty self-evident. It tells you it can't find the file 'runInstaller' in the current directory, and in your listing of the current directory there is no file named 'runInstaller'.

    Exactly what product are you trying to install? What is the current directory you showed?
  • 2. Re: ./runInstaller.sh: line 5: ./runInstaller: No such file or directory
    Kh$n Journeyer
    Currently Being Moderated
    You hAVE Problem with your installation binnaries. download new source and unzip it. than try ./runInstaller.

    Edited by: Kh$n on Apr 5, 2013 4:19 AM
  • 3. Re: ./runInstaller.sh: line 5: ./runInstaller: No such file or directory
    Amar_Singh Newbie
    Currently Being Moderated
    If ./runInstaller.sh is not working then try:
    sh runInstaller.sh

    OR
    Run ./runInstaller.sh without any other parameters to see if its runinstaller causing errors or the parameters passed to it giving errors.
  • 4. Re: ./runInstaller.sh: line 5: ./runInstaller: No such file or directory
    EdStevens Guru
    Currently Being Moderated
    Glenn D. wrote:
    Does anyone know how to fix this error - Thanks Glenn


    $ ll
    total 260
    -rwxr-xr-x. 1 oracle oinstall 28 Sep 22 2011 addLangs.sh
    -rwxr-xr-x. 1 oracle oinstall 619 Sep 22 2011 addNode.sh
    -rwxr-xr-x. 1 oracle oinstall 275 Sep 22 2011 attachHome.sh
    -rwxr-xr-x. 1 oracle oinstall 7499 Sep 22 2011 clusterparam.ini
    -rwxr-xr-x. 1 oracle oinstall 181 Sep 22 2011 detachHome.sh
    drwxr-xr-x. 2 oracle oinstall 4096 Sep 22 2011 images
    -rwxr-xr-x. 1 oracle oinstall 60689 Sep 22 2011 lsnodes
    -rwxr-xr-x. 1 oracle oinstall 2058 Sep 22 2011 oraparam.ini
    -rwxr-xr-x. 1 oracle oinstall 6437 Sep 22 2011 oraparamsilent.ini
    drwxr-xr-x. 2 oracle oinstall 4096 Sep 22 2011 resource
    -rwx------. 1 oracle oinstall 101 Apr 5 20:43 ri.sh
    -rwx------. 1 oracle oinstall 98 Apr 5 20:43 ri.sh~
    -rwxr-xr-x. 1 oracle oinstall 107 Sep 22 2011 runInstaller.sh
    -rwxr-xr-x. 1 oracle oinstall 145976 Sep 22 2011 unzip

    $ ./runInstaller.sh -record -destinationFile /tmp/11gR2.rsp
    ./runInstaller.sh: line 5: ./runInstaller: No such file or directory

    $ cat ./runInstaller.sh
    #!/bin/sh
    CUR_DIR=$(pwd)
    RUNINSTALLER_DIR=`dirname $0`
    cd $RUNINSTALLER_DIR
    ./runInstaller $*
    cd $CUR_DIR

    $ head -5 ./runInstaller.sh
    #!/bin/sh
    CUR_DIR=$(pwd)
    RUNINSTALLER_DIR=`dirname $0`
    cd $RUNINSTALLER_DIR
    ./runInstaller $*

    $ uname -a
    Linux unknown20cf3028fda2 2.6.32-358.2.1.el6.x86_64 #1 SMP Tue Mar 12 12:10:36 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux
    Actually, why are you trying to execute runInstaller.sh in the first place? The Installation Guide is pretty explicit. For example, if installing database 11.2, See http://docs.oracle.com/cd/E11882_01/install.112/e24321/inst_task.htm#BABJGGJH, where it says


    =========================================
    4.5.1 Running Oracle Universal Installer


    - If the installation files are on installation media, enter commands similar to the following, where directory_path is the path of the database directory on the installation media:

    $ /directory_path/runInstaller

    - If the installation files are on the hard disk, change the directory to the database directory and enter the following command:

    $ ./runInstaller
    =========================================


    Nowhere does it say to execute runInstaller.sh
  • 5. Re: ./runInstaller.sh: line 5: ./runInstaller: No such file or directory
    Justin_Mungal Journeyer
    Currently Being Moderated
    Like Ed mentioned, you are not supposed to execute runInstaller.sh. It looks like you're just trying to install Oracle from the wrong directory...
    [oracle@oracle1 database]$ pwd
    /home/oracle/database
    [oracle@oracle1 database]$ ls -l
    total 64
    drwxr-xr-x 12 oracle oinstall  4096 Sep 19  2011 doc
    drwxr-xr-x  4 oracle oinstall  4096 Sep 22  2011 install
    -rwxr-xr-x  1 oracle oinstall 28122 Sep 22  2011 readme.html
    drwxr-xr-x  2 oracle oinstall  4096 Sep 22  2011 response
    drwxr-xr-x  2 oracle oinstall  4096 Sep 22  2011 rpm
    -rwxr-xr-x  1 oracle oinstall  3226 Sep 22  2011 runInstaller <-- This is what you should be executing.
    drwxr-xr-x  2 oracle oinstall  4096 Sep 22  2011 sshsetup
    drwxr-xr-x 14 oracle oinstall  4096 Sep 22  2011 stage
    -rwxr-xr-x  1 oracle oinstall  5466 Aug 23  2011 welcome.html
    [oracle@oracle1 database]$ cd install
    [oracle@oracle1 install]$ ls -l
    total 260
    -rwxr-xr-x 1 oracle oinstall     28 Sep 22  2011 addLangs.sh
    -rwxr-xr-x 1 oracle oinstall    619 Sep 22  2011 addNode.sh
    -rwxr-xr-x 1 oracle oinstall    275 Sep 22  2011 attachHome.sh
    -rwxr-xr-x 1 oracle oinstall   7499 Sep 22  2011 clusterparam.ini
    -rwxr-xr-x 1 oracle oinstall    181 Sep 22  2011 detachHome.sh
    drwxr-xr-x 2 oracle oinstall   4096 Sep 22  2011 images
    -rwxr-xr-x 1 oracle oinstall  60689 Sep 22  2011 lsnodes
    -rwxr-xr-x 1 oracle oinstall   2058 Sep 22  2011 oraparam.ini
    -rwxr-xr-x 1 oracle oinstall   6437 Sep 22  2011 oraparamsilent.ini
    drwxr-xr-x 2 oracle oinstall   4096 Sep 22  2011 resource
    -rwxr-xr-x 1 oracle oinstall    107 Sep 22  2011 runInstaller.sh <-- I think you are trying to execute this. That is not correct.
    -rwxr-xr-x 1 oracle oinstall 145976 Sep 22  2011 unzip
    [oracle@oracle1 install]$ ./runInstaller.sh
    ./runInstaller.sh: line 5: ./runInstaller: No such file or directory <-- I get the same error as you, so I consider my suspicions confirmed at this point.
    I hope this helps.
  • 6. Re: ./runInstaller.sh: line 5: ./runInstaller: No such file or directory
    Krishna-Oracle Pro
    Currently Being Moderated
    Hi Glenn,
    You are executing runInstaller from wrong location

    You need to execute from say
    11.2.0.3.0/database/install/runInstaller -record -destinationFile /tmp/11gR2.rsp

    This runInstaller will call runInstaller.sh available inside install folder
    You have tried to execute runInstaller.sh available under install folder and hence you are getting this error

    Hope it will help you better

    Thanks,
    Krishna

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points