Installation fichier setup

stoner -  
 stoner -
Bonjour,

Je souhaiterai installer ce fichier setup.sh sous ubuntu 10.10 mais je n y parviens pas

en terminal a la racine du repertoire du setup
S-Linux$ sudo sh setup.sh
[sudo] password :

setup.sh: 9: function: not found
x86_64

/S-Linux$ sudo bash setup.sh
This installation doesn't support glibc-2.1 on x86_64

qqqn aurais une idée

merci

4 réponses

  1. zipe31 Messages postés 34620 Date d'inscription   Statut Contributeur Dernière intervention   6 501
     
    Salut,

    Sans plus de détails concernant le fichier (il sort d'où ?), ton architecture, etc.

    gogole est ton ami ;-))
    0
  2. stoner
     
    il sors d une iso decompresser.

    mon architecture 10.10 64bits
    0
    1. zipe31 Messages postés 34620 Date d'inscription   Statut Contributeur Dernière intervention   6 501
       
      il sors d une iso decompresser.
      Oui mais encore ???
      0
  3. stoner
     
    tu as besoin de quoi comme detail ? je vois pas ce que je peux te donner de plus ..

    La liste des fichier de l iso ? ?
    0
    1. zipe31 Messages postés 34620 Date d'inscription   Statut Contributeur Dernière intervention   6 501
       
      Savoir déjà ce que tu essaies d'installer par exemple...
      0
    2. stoner
       
      un jeu
      0
    3. zipe31 Messages postés 34620 Date d'inscription   Statut Contributeur Dernière intervention   6 501
       
      Oui mais lequel ?
      0
    4. stoner
       
      soldier of fortune
      0
  4. stoner
     
    je n y parviens toujour pas This installation doesn't support glibc-2.1 on x86_64

    j ai tenter en copiaant collant dans un fichier setup.sh

    #!/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
    __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
    status=1
    fi
    exit $status

    ensuite j ai donc fait ca en terminal

    /SoldierOfFortune/Soldier.Of.Fortune-Linux$ sudo apt-get install ia32-libs
    Lecture des listes de paquets... Fait
    Construction de l'arbre des dépendances
    Lecture des informations d'état... Fait
    ia32-libs est déjà la plus récente version disponible.
    ia32-libs passé en « installé manuellement ».
    0 mis à jour, 0 nouvellement installés, 0 à enlever et 90 non mis à jour.
    /SoldierOfFortune/Soldier.Of.Fortune-Linux$ sudo chmod +x setup.sh
    /SoldierOfFortune/Soldier.Of.Fortune-Linux$ bash setup.h
    bash: setup.sh: Aucun fichier ou dossier de ce type

    This installation doesn't support glibc-2.1 on x86_64
    0