Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2002
    Location
    west haven
    Posts
    33

    Unanswered: What is wrong with this script install.sh

    Hi all,

    OS Solaris 8. Sun Sparc 20 - 256 MB 9.1 GB

    I have installed Oracle 8.1.6 Rel 2 on the SUN Sparc. Everything is fine and a customised DB has been created. Now I
    have to install an Oracle application on the same server. I have a working knowledge of Unix but I don't know scripting.

    I logged in as OPAPPS as required. (.chsrc). I have set the path with all possible directories and made it a member of
    group DBA as requested.

    I put the CD in the CDROM and then cd /cdrom
    # install.sh

    BUT I get this message: install.sh not found.

    ------------------------------
    install.sh is there on the CD. This is the contents of install.sh from the CD

    #!/bin/sh
    os=`uname | tr A-A a-z`
    case "$os" in
    sunos) platform=solaris
    ;;
    hp-ux) platform=hp-ux
    ;;
    osf1) platform=decunix
    ;;
    esac

    #The environment variable $SRCHOME cannot be set during installation
    unset SRCHOME
    unset SHLIB_PATH

    CMDDIR=`dirname $0`

    if [ "CMDDIR" = "." ]; then
    CMDDIR=`pwd`;
    fi

    # Replace relatove path with fully qualified path
    if [ ! "`echo $CMDDIR|grep '^/'`" ]; then
    CMDDIR=`pwd`/$CMDDIR;
    fi

    if [ x${PATH} != x ] ; then
    PATH=$PATH:/usr/bin: /bin
    export PATH
    else
    PATH=/usr/bin:/bin
    fi

    cd $CMDDIR/$platform/Disk1/install/$platform
    ./runinstaller $*
    -----------------------------------------------------
    directory structure on CD
    -r-xr-xr-x 1 root sys 638 Aug 23 2000 install.sh
    dr-xr-xr-x solaris
    dr-xr-xr-x hpunix
    dr-xr-xr-x decunix
    dr-xr-xr-x nls732


    solaris/disk1/install/solaris and the file

    -r-xr-xr-x runinsta.
    -r-xr-xr-x oraparm.ini
    dr-xr-xr-x images
    d .
    d ..

    Would anybody know why I get install.sh NOT found when it is there?.

    Thanks for your hel

  2. #2
    Join Date
    Jun 2001
    Location
    The Netherlands
    Posts
    38
    The most probable cause is the current directory not being in your path.
    You can solve this by changing to the location where the install.sh script is located and executing it by entering ./install.sh.

  3. #3
    Join Date
    Apr 2002
    Posts
    2
    try

    ./install.sh

Posting Permissions

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