DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: ksh: ./install.sh: not found

Hybrid View

  1. #1
    Join Date
    Jan 2015
    Posts
    9

    ksh: ./install.sh: not found

    Hi,

    Im trying to install application in a database. But install.sh was unable to run.

    oracle@xx09:/rpm/application # ./install.sh
    ksh: ./install.sh: not found.



    oracle@xx09:/rpm/application # ls -lrt
    total 240
    -rw-r--r-- 1 oracle dba 23388 Dec 30 2011 antinstall-config.xml
    -rw-r--r-- 1 oracle dba 2314 Dec 30 2011 ant.install.properties.sample
    -rwxrwxr-x 1 oracle dba 4372 Jan 31 2012 install.sh


    ksh is also installed

    I already source the environment but still have the same error.

    Thanks

  2. #2
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    You should make sure that you have the install.sh in the same directory as the
    Oracle software. If you do, then try running the following commands and posting the results.

    Code:
    pwd
    ls -l `pwd`/*.sh
    which ksh
    which sh
    which bash
    env

  3. #3
    Join Date
    Jan 2015
    Posts
    9
    oracle@xx09:/rpm/application # ls -l `pwd`/*.sh
    -rwxrwxr-x 1 oracle dba 4372 Jan 31 2012 /rpm/application/install.sh
    oracle@xx09:/rpm/application # which ksh
    /usr/bin/ksh
    oracle@xx09:/rpm/application # which sh
    /usr/bin/sh
    oracle@xx09:rpm/application # which bash
    /opt/freeware/bin/bash
    oracle@xx09:/rpm/application # env
    _=/usr/bin/env
    LANG=en_US
    LOGIN=oracle
    ZEBRA_EC_TOP=/opt/zebra_ec/bin
    PATH=/usr/java6_64/bin:/usr/java6_64/bin:/usr/java6_64/bin:/usr/java6_64/bin:/usr/java6_64/bin:
    /opt/freeware/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java6_64/jre/bin:/usr/java5_64/bin:
    /usr/DynamicLinkManager/bin:/opt/freeware/sbin/:/app/oracle/product/ofm11/OracleForms/bin:
    /app/oracle/product/ofm11/OracleForms/opmn/bin:/app/oracle/product/ofm11/OracleForms/OPatch
    WEBLOGIC_DOMAIN_HOME=/app/oracle/product/ofm11/user_projects/domains/RetailDomain
    EXTENDED_HISTORY=ON
    LC__FASTMSG=true
    EDITOR=vi
    LOGNAME=oracle
    MAIL=/usr/spool/mail/oracle
    LOCPATH=/usr/lib/nls/loc
    PS1=oracle@xx09:$PWD #
    ORACLE_INSTANCE=/app/oracle/product/ofm11/forms_inst
    USER=oracle
    AUTHSTATE=files
    SHELL=/usr/bin/ksh
    ODMDIR=/etc/objrepos
    JAVA_HOME=/usr/java6_64
    TIMEOUT=900
    HISTSIZE=2000
    TMOUT=10000000
    HOME=/home/oracle
    TERM=xterm
    MAILMSG=[YOU HAVE NEW MAIL]
    ORACLE_HOME=/app/oracle/product/ofm11
    PWD=/rpm/application
    TZ=Europe/Helsinki
    A__z=! LOGNAME="*TMOUT
    NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
    Last edited by gandolf989; 02-04-2015 at 10:44 AM.

  4. #4
    Join Date
    Jan 2015
    Posts
    9
    I try to run test the script..

    oracle@xx09:/rpm/application # ksh install.sh
    install.sh[2]: ^M: not found.
    install.sh[4]: ^M: not found.
    install.sh[8]: ^M: not found.
    install.sh[11]: .^M^M: not found.
    install.sh[13]: ^M: not found.
    install.sh[21]: 0403-057 Syntax error at line 87 : `elif' is not expected

  5. #5
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    You don't seem to have the full Oracle binaries. Also if there is a ^M in the install.sh script then
    it contains carriage returns, which Unix/Linux can't deal with. You need to download a new set
    of Oracle binaries and un-tar them on your Unix/Linux server.

  6. #6
    Join Date
    Jan 2015
    Posts
    9
    Ok..thank you I will try it again to download the file..

  7. #7
    Join Date
    Jan 2015
    Posts
    9
    Thanks for your suggestion..it works

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width