Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14
Originally Posted by pavlo_7 If you mounted the .iso image in "hd", then you need to: Code: cd hd sh setup.sh I tried that and this is what I got: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined!
    Join Date
    Jul 2007
    Posts
    11

    Quote Originally Posted by pavlo_7 View Post
    If you mounted the .iso image in "hd", then you need to:
    Code:
    cd hd
    sh setup.sh
    I tried that and this is what I got:
    daffydd@Obergruppenfuhrer:~$ cd hd
    daffydd@Obergruppenfuhrer:~/hd$ sh setup.sh
    setup.sh: 9: function: not found
    x86
    daffydd@Obergruppenfuhrer:~/hd$

  2. #12
    Linux Enthusiast
    Join Date
    Jul 2005
    Location
    Maryland
    Posts
    522
    Now it's the software error. Sorry, I don't know what it means. Probably something wrong with the installer (expects different version of OS ?).

  3. #13
    Just Joined!
    Join Date
    Jul 2007
    Posts
    11
    Quote Originally Posted by pavlo_7 View Post


    To create a CD, use k3b. Install it if you do not have it:
    Code:
    sudo apt-get update
    sudo apt-get install k3b
    Then right click on .iso image ==> open it with k3b ==> wait until Md5 Sum finishes calculating ==> Insert empty CD ==> click Start
    O.K. I did this and it still isn't working. It recorded the iso to the cd, but when I click on the setup.sh file it gives me this
    #!/bin/sh
    #
    # Product setup script - Loki Entertainment Software

    # Go to the proper setup directory (if not already there)
    cd `dirname $0`

    # Return the appropriate architecture string
    function DetectARCH {
    status=1
    case `uname -m` in
    i?86) echo "x86"
    status=0;;
    *) echo "`uname -m`"
    status=0;;
    esac
    return $status
    }

    # Return the appropriate version string
    function DetectLIBC {
    status=1
    if [ -f `echo /lib/libc.so.6* | tail -1` ]; then
    if fgrep GLIBC_2.1 /lib/libc.so.6* 2>&1 >/dev/null; then
    echo "glibc-2.1"
    status=0
    else
    echo "glibc-2.0"
    status=0
    fi
    elif [ -f /lib/libc.so.5 ]; then
    echo "libc5"
    status=0
    else
    echo "unknown"
    fi
    return $status
    }

    # Detect the Linux environment
    arch=`DetectARCH`
    libc=`DetectLIBC`

    # Find the installation program
    function try_run
    {
    setup=$1
    shift
    fatal=$1
    if [ "$1" != "" ]; then
    shift
    fi

    # First find the binary we want to run
    failed=0
    setup_bin="setup.data/bin/$arch/$libc/$setup"
    if [ ! -f "$setup_bin" ]; then
    setup_bin="setup.data/bin/$arch/$setup"
    if [ ! -f "$setup_bin" ]; then
    failed=1
    fi
    fi
    if [ "$failed" -eq 1 ]; then
    if [ "$fatal" != "" ]; then
    cat <<__EOF__
    This installation doesn't support $libc on $arch

    Please contact Loki Technical Support at support@lokigames.com
    __EOF__
    exit 1
    fi
    return $failed
    fi

    # Try to run the binary
    # The executable is here but we can't execute it from CD
    setup="$HOME/.setup$$"
    cp "$setup_bin" "$setup"
    chmod 700 "$setup"
    if [ "$fatal" != "" ]; then
    "$setup" $*
    failed=$?
    else
    "$setup" $* 2>/dev/null
    failed=$?
    fi
    rm -f "$setup"
    return $failed
    }


    # Try to run the setup program
    status=0
    rm -f "$setup"
    if ! try_run setup.gtk && ! try_run setup -fatal; then
    echo "The setup program seems to have failed on $arch/$libc"
    echo
    echo "Please contact Loki Technical Support at support@lokigames.com"
    status=1
    fi
    exit $status
    I quess this:
    Quote Originally Posted by pavlo_7
    Probably something wrong with the installer (expects different version of OS ?).
    is probably correct.

  4. $spacer_open
    $spacer_close
  5. #14
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    Use bash instead of sh

    cd hd
    bash setup.sh
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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