Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 10/01/2013, à 18:56

frere capsule

Ouvrir dans un terminal

Bonjour,

je n'ai plus l'option lors d'un clic droit "ouvrir dans un terminal".
C'est très génant, je peux pas installer un logiciel (matlab)...

Apres un tour sur le forum j'ai essayé d'installer :
nautilus-open-terminal
puis :
nautilus -q

ca donne rien....

Aussi, dans nautilus : edition -> preference -> comportement -> fichier texte exécutable -> demander a chaque fois     ,  est déjà coché , donc c'est pas ca le problème...

En fait mon problème c'est surtout d'installer un logiciel. Celui vient d'une image cd que j'ai monté avec "monteur d'archive".  Il faudrait que je puisse lancer "install".
Je pourrait aller dans le repertoire et taper :   ./install
mais non, je sais pas où se trouve l'archive ainsi monté.
Donc un autre moyen de débloquer mon problème serait que je sache où se trouve l'archive montée ???

Help !!

Dernière modification par frere capsule (Le 10/01/2013, à 19:26)

Hors ligne

#2 Le 10/01/2013, à 19:01

Korak

Re : Ouvrir dans un terminal

Bonjour,

Après avoir installé le paquet "nautilus-open-terminal", il faut redémarrer le PC pour que l'option apparaisse via un clic droit dans Nautilus ou sur le bureau.


OS: Ubuntu 22.04 64 bits + Windows 11 64 bits en dualboot (BIOS UEFI, Secure Boot activé et table de partitions GPT)
PC portable HP 17-CP0308NF   Processeur: AMD Ryzen 7 5700U avec carte graphique AMD Lucienne intégrée au processeur.   Mémoire vive: 16 Go RAM
Quand vous ne trouvez pas la solution à un problème, cherchez des pistes menant à la solution !

Hors ligne

#3 Le 10/01/2013, à 19:11

frere capsule

Re : Ouvrir dans un terminal

Merci Korak,
j'eesaye ca tout de suite :-)

Hors ligne

#4 Le 10/01/2013, à 19:20

frere capsule

Re : Ouvrir dans un terminal

Bah non, ca marche pas. Je n'ai toujours pas l'option "ouvrir dans un terminal"

Dernière modification par frere capsule (Le 10/01/2013, à 19:28)

Hors ligne

#5 Le 10/01/2013, à 19:56

Korak

Re : Ouvrir dans un terminal

Tu essaies bien dans un terminal et pas dans une console?


OS: Ubuntu 22.04 64 bits + Windows 11 64 bits en dualboot (BIOS UEFI, Secure Boot activé et table de partitions GPT)
PC portable HP 17-CP0308NF   Processeur: AMD Ryzen 7 5700U avec carte graphique AMD Lucienne intégrée au processeur.   Mémoire vive: 16 Go RAM
Quand vous ne trouvez pas la solution à un problème, cherchez des pistes menant à la solution !

Hors ligne

#6 Le 10/01/2013, à 20:19

frere capsule

Re : Ouvrir dans un terminal

J'essaye d'installer mon logiciel, il y a un fichier "install", en l'ouvrant dans gedit je vois que c'est un "/bin/sh"
donc un script executable si je ne me trompe pas...
Donc il me semble, que pour installer le logiciel je dois l'ouvrir dans un terminal, une console ca je connais pas....

Et en même temps aucun des deux n'apparait lorsque je clique droit sur le fichier a executer...

Hors ligne

#7 Le 10/01/2013, à 20:21

Korak

Re : Ouvrir dans un terminal

Pour avoir l'option "Ouvrir dans un terminal", tu dois être dans Nautilus ou sur le bureau.

Et tu dois faire un clic droit dans le dossier en question (ou le bureau) et pas sur un fichier.

Exemple sur mon PC:

1357842323.png

Comme tu peux le remarquer à la position du pointeur de la souris, j'ai fais un clic droit dans le répertoire et pas sur un fichier.

Si tu fais un clic droit sur un fichier, l'option "Ouvrir dans un terminal" n’apparaît pas.

Dernière modification par Korak (Le 10/01/2013, à 20:29)


OS: Ubuntu 22.04 64 bits + Windows 11 64 bits en dualboot (BIOS UEFI, Secure Boot activé et table de partitions GPT)
PC portable HP 17-CP0308NF   Processeur: AMD Ryzen 7 5700U avec carte graphique AMD Lucienne intégrée au processeur.   Mémoire vive: 16 Go RAM
Quand vous ne trouvez pas la solution à un problème, cherchez des pistes menant à la solution !

Hors ligne

#8 Le 10/01/2013, à 20:28

frere capsule

Re : Ouvrir dans un terminal

Haaa...
Ok je vois,
Donc je confond surement avec "executer dans un terminal" !

Ca doit etre ca non ?

Probablement je cherce a executer un fichier executable dans un terminal...

Dernière modification par frere capsule (Le 10/01/2013, à 20:39)

Hors ligne

#9 Le 10/01/2013, à 20:35

Korak

Re : Ouvrir dans un terminal

Dans une archive .iso, voici ce que j'ai:

1357842892.png


OS: Ubuntu 22.04 64 bits + Windows 11 64 bits en dualboot (BIOS UEFI, Secure Boot activé et table de partitions GPT)
PC portable HP 17-CP0308NF   Processeur: AMD Ryzen 7 5700U avec carte graphique AMD Lucienne intégrée au processeur.   Mémoire vive: 16 Go RAM
Quand vous ne trouvez pas la solution à un problème, cherchez des pistes menant à la solution !

Hors ligne

#10 Le 10/01/2013, à 20:45

frere capsule

Re : Ouvrir dans un terminal

Je croyais que c'était le fichier qu'il fallait ouvrir dans un terminal ...

J'ai donc bien ouvert l'archive dans un terminal (merci !),
je veux lancer le fichier "install", quelle commande je tape ?????

au cas où, voici le code qui est dans le fichier :

#!/bin/sh
#
#  Name:
#     install   point of entry for MATLAB installation
#
#  Usage:
#     install -h | [-<arch>] [-debug] [ [-t] | [-x] ]
#
#  Description:
#     "install" is the point of entry for all MATLAB installations.
#     The system administrator should be logged in as "root".
#
#     This script is assumed to be called from the CDROM at path
#
#         $CD_ROOT/install  (or equivalent ISO 9660 path)
#
#     The script performs the following functions:
#
#       case 1:  -h
#
#           Outputs the usage.
#
#       case 2: [-<arch>] [-debug] [ [-t] | [-x] ]
#
#           Calls xsetup.
#
#       In general:
#
#       1. Determine the local arch.
#
#       2. Determines the environment variable TMW_CD_FORMAT by looking
#          at the value of the command 'install' and maps the filename
#          variables depending on this values.
#
#       3. Sets environment variables
#
#          CD_ROOT
#          LOCAL_ARCH
#
#       4. Parses any command line options.
#
#          NOTE: Any paths below are mapped appropriately to ISO 9660
#                conforming names.
#
#          Case 1:
#
#              Ends in:
#
#                  $CD_ROOT/update/install/options.sh
#
#          Case 2:
#
#              Depending on the options it calls:
#
#                  $CD_ROOT/update/bin/$LOCAL_ARCH/xsetup
#
#              with options -debug
#
# Options:
#
#     -h
#           Help. Show command usage.
#
#     -<arch>
#           Run this install program assuming this architecture.
#           (This does not change the CD-ROM format type).
#
#     -debug
#
#           Turn on debugging.
#
#     -t
#           Use the terminal install.
#
#     -x
#           Use the X Window install
#
# Notes:
#
#       (UNIX naming - convert to ISO 9660 as required)
#
#       1. required commands: awk, cd, echo, expr, ls, pwd, rm
#       2. Bourne shell must support [ ] notation in if-then
#       3. other required scripts:
#
#               main.sh
#               arch.sh
#               mapname.sh
#               options.sh
#               license.sh
#               util.sh
#               backend
#               batch4
#
#          which are in $CD_ROOT/update/install
#
#
# Copyright 1994-2006 The MathWorks, Inc.
# $Revision: 1.1.6.3 $  $Date: 2009/05/11 14:22:09 $
#--------------------------------------------------------------------------
#
    arg0_=$0
#
#   temp_file is needed by oscheck
    temp_file=/tmp/$$a; cat /dev/null > /tmp/$$a
#
    trap "rm -rf "$temp_file" > /dev/null 2>&1; exit 1" 1 2 3 15
#
#=======================================================================
#
# Functions:
#
#   scriptpath ()
#
#=======================================================================
    scriptpath () { # returns command name of this script, CMDNAME.
                    #
                    # Returns a 0 status unless an error.
                    #
                    # usage: scriptpath
                    #
#
        filename=$arg0_
#
# Now it is either a file or a link to a file.
#
        cpath=`pwd`
#
# Follow up to 8 links before giving up. Same as BSD 4.3
#
        n=1
        maxlinks=8
        while [ $n -le $maxlinks ]
        do
#
# Get directory correctly!
#
            newdir=`echo "$filename" | awk '
                { tail = $0
                  np = index (tail, "/")
                  while ( np != 0 ) {
                      tail = substr (tail, np + 1, length (tail) - np)
                      if (tail == "" ) break
                      np = index (tail, "/")
                  }
                  head = substr ($0, 1, length ($0) - length (tail))
                  if ( tail == "." || tail == "..")
                      print $0
                  else
                      print head
                }'`
            if [ ! "$newdir" ]; then
                newdir="."
            fi
            (cd "$newdir") > /dev/null 2>&1
            if [ $? -ne 0 ]; then
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    echo ''
    echo 'Internal error 1: We could not determine the path of the'
    echo '                  MATLAB root directory.'
    echo ''
    echo "                  original command path = $arg0_"
    echo "                  current  command path = $filename"
    echo ''
    echo '                  Please contact Mathworks Technical Support'
    echo '                  for further assistance.'
    echo ''
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
                return 1
            fi
            cd "$newdir"
#
# Need the function pwd - not the built in one
#
            newdir=`/bin/pwd`
#
            newbase=`expr "//$filename" : '.*/\(.*\)' \| "$filename"`
            lscmd=`ls -l "$newbase" 2>/dev/null`
            if [ ! "$lscmd" ]; then
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    echo ''
    echo 'Internal error 2: Could not determine the path of the'
    echo '                  MATLAB root directory.'
    echo ''
    echo "                  original command path = $filename"
    echo "                  current  command path = $filename"
    echo ''
    echo '                  Please contact Mathworks Technical Support'
    echo '                  for further assistance.'
    echo ''
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
                return 1
            fi
#
# Check for link portably
#
            if [ `expr "$lscmd" : '.*->.*'` -ne 0 ]; then
                filename=`echo "$lscmd" | awk '{ print $NF }'`
            else
#
# It's a file
#
                dir="$newdir"
                CMDNAME="$newbase"
                break
            fi
            n=`expr $n + 1`
        done
        if [ $n -gt $maxlinks ]; then
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    echo ''
    echo 'Internal error 3: More than $maxlinks links in path to'
    echo "                  this script. That's too many!"
    echo ''
    echo "                  original command path = $filename"
    echo "                  current  command path = $filename"
    echo ''
    echo '                  Please contact Mathworks Technical Support'
    echo '                  for further assistance.'
    echo ''
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
            return 1
        fi
        cd "$cpath"
        return 0
    }
#=======================================================================
#
#**************************************************************************
# Call the main body of the install program
#**************************************************************************
# Determine cpath, dir and CMDNAME
#
    scriptpath
    if [ $? -ne 0 ]; then
        exit 1
    fi
#
    command="$CMDNAME"
#
# Do not use ARCH if it exists in the environment
#
    ARCH=""
#
#========================= archlist.sh (start) ============================
#
# usage:        archlist.sh
#
# abstract:     This Bourne Shell script creates the variable ARCH_LIST.
#
# note(s):      1. This file is always imbedded in another script
#
# Copyright 1997-2007 The MathWorks, Inc.
# $Revision: 1.1.6.3 $  $Date: 2007/11/12 22:52:47 $
#----------------------------------------------------------------------------
#
    ARCH_LIST='glnx86 glnxa64 mac maci maci64 sol2 sol64'
#=======================================================================
# Functions:
#   check_archlist ()
#=======================================================================
    check_archlist () { # Sets ARCH. If first argument contains a valid
			# arch then ARCH is set to that value else
		        # an empty string. If there is a second argument
			# do not output any warning message. The most
			# common forms of the first argument are:
			#
			#     ARCH=arch
			#     MATLAB_ARCH=arch
			#     argument=-arch
			#
                        # Always returns a 0 status.
                        #
                        # usage: check_archlist arch=[-]value [noprint]
                        #
	if [ $# -gt 0 ]; then
	    arch_in=`expr "$1" : '.*=\(.*\)'`
	    if [ "$arch_in" != "" ]; then
	        ARCH=`echo "$ARCH_LIST EOF $arch_in" | awk '
#-----------------------------------------------------------------------
	{ for (i = 1; i <= NF; i = i + 1)
	      if ($i == "EOF")
		  narch = i - 1
	  for (i = 1; i <= narch; i = i + 1)
		if ($i == $NF || "-" $i == $NF) {
		    print $i
		    exit
		}
	}'`
#-----------------------------------------------------------------------
	       if [ "$ARCH" = "" -a $# -eq 1 ]; then
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo ' '
echo "    Warning: $1 does not specify a valid architecture - ignored . . ."
echo ' '
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	       fi
	    else
		ARCH=""
	    fi
	else
	    ARCH=""
	fi
#
	return 0
    }
#=======================================================================
#========================= archlist.sh (end) ==============================
#
# Check input arguments $1, ..., $$# for -ARCH
#
    i=1
    while [ $i -le $# ]
    do
        value=`eval echo '$'"$i"`
        if [ `expr "//$value" : '//-.*'` -ne 0 ]; then
            check_archlist argument=$value noprint
            if [ "$ARCH" != "" ]; then
                break
            fi
        fi
        i=`expr $i + 1`
    done
#
# Determine ARCH first so that we can determine which name mapping to use.
# It MUST be inline and is a copy of arch.sh.
#
#                       Determine the Machine Architecture [all]
#                       ----------------------------------
#
# arch.sh needs MATLABROOT
MATLABROOT="$dir/update"
#============================= arch.sh (start) =============================
#!/bin/sh
#
# usage:        arch.sh
#
# abstract:     This Bourne Shell script determines the architecture
#               of the the current machine.
#
#               ARCH      - Machine architecture
#
#               IMPORTANT: The shell function 'check_archlist' is used
#                          by this routine and MUST be loaded first.
#                          This can be done by sourcing the file,
#
#                              archlist.sh
#
#                          before using this routine.
#
# note(s):      1. This routine must be called using a . (period)
#
#               2. Also returns ARCH_MSG which may contain additional
#                  information when ARCH returns 'unknown'.
#
# Copyright 1986-2007 The MathWorks, Inc.
# $Revision: 1.1.6.5 $  $Date: 2009/05/11 14:20:38 $
#----------------------------------------------------------------------------
#
#=======================================================================
# Functions:
#   realfilepath ()
#   matlab_arch ()
#=======================================================================
    realfilepath () { # Returns the actual path in the file system
                      # of a file. It follows links. It returns an
                      # empty path if an error occurs.
                      #
                      # Returns a 1 status if the file does not exist
                      # or appears to be a circular link. Otherwise,
                      # a 0 status is returned.
                      #
                      # usage: realfilepath filepath
                      #
        file=$1
        n=1
#
        dir=`dirname $file`
        dir=`(cd $dir; /bin/pwd)`
        file=`basename $file`
#
# Try up to 8 links
#
        while [ $n -le 8 ]
        do
            (cd $dir) >/dev/null 2>&1
            if [ $? -eq 0 ]; then
                lscmd=`(cd $dir; ls -l $file 2>/dev/null)`
#
# Check for link portably
#
                if [ `expr "//$lscmd" : '//.*->.*'` -ne 0 ]; then
                    link=`echo "$lscmd" | awk '{ print $NF }'`
                    dirnext=`dirname $link`
                    dir=`(cd $dir; cd $dirnext; /bin/pwd)`
                    file=`basename $link`
                elif [ "$lscmd" != "" ]; then
                    echo `(cd $dir; /bin/pwd)`/$file
                    return 0
                else
                    return 1
                fi
            else
                return 1
            fi
            n=`expr $n + 1`
        done
        return 1
    }

#
#=======================================================================
    set_mac_arch() {
        # First check to see if maci64 is even possible on this hardware
        if [ "`/usr/sbin/sysctl -n hw.cpu64bit_capable`" = "0" ]; then
            # maci64 is not possible. So set the arch to maci.
            ARCH="maci"
            return
        fi

        # Now check to see if maci64 is asked for
        if [ "$MACI64" = "0" ]; then
            # only maci is wanted, so arch is maci.
            ARCH="maci"
            return
        fi

        # If we get to this point, maci64 is available and desired. So, check to
        # see if 64 bit binaries are available. First, if $MATLABROOT is NOT
        # set, we can't really check for anything else.
        if [ "$MATLABROOT" = "" ]; then
            ARCH="maci64";
            return
        fi


        # if we get to this point, we need to check the binaries that we have to
        # find out if we have maci64 binaries
        if [ -d "$MATLABROOT/bin/maci64" ]; then
            ARCH="maci64"
            return
        fi

        # if we get to this point, even though maci64 is possible and desired,
        # the maci64 binaries aren't available, so fall back to maci
        ARCH="maci"
    }

#
#=======================================================================
    matlab_arch () {  # Determine the architecture for MATLAB
                      # It returns the value in the ARCH variable.
                      # If 'unknown' is returned then sometimes a
                      # diagnostic message is returned in ARCH_MSG.
                      #
                      # Always returns a 0 status.
                      #
                      # usage: matlab_arch
                      #
        ARCH="unknown"
#
        if [ -f /bin/uname ]; then
            case "`/bin/uname`" in
                SunOS)                                  # Solaris
                    case "`/bin/uname -p`" in
                        sparc)
                            ARCH="sol64"
                            ;;
                        i386)
                            ARCH="sola64"
                            ;;
                    esac
                    ;;
                Linux)
                    case "`/bin/uname -m`" in
                        i*86)
                            ARCH="glnx86"
                            ;;
                        x86_64)
                            ARCH="glnxa64"
                            ;;
                    esac
                    ;;
# Usually uname lives in /usr/bin on the Mac, but sometimes people
# have links in /bin that link uname to /usr/bin.  Because of this
# Mac needs to be listed in the checks for both /bin/uname and /usr/bin/uname
                Darwin)                                 # Mac OS X
                    case "`/bin/uname -p`" in
                        i386)
                            set_mac_arch
                            ;;
                        esac
                    ;;
                *)
                    :
                    ;;
            esac
        elif [ -f /usr/bin/uname ]; then
            case "`/usr/bin/uname`" in
                Darwin)                                 # Mac OS X
                    case "`/usr/bin/uname -p`" in
                        i386)
                            set_mac_arch
                            ;;
                        esac
                    ;;
            esac
        fi
        return 0
    }
#=======================================================================
#
# The local shell function check_archlist is assumed to be loaded before this
# function is sourced.
#
    ARCH_MSG=''
    check_archlist ARCH=$ARCH
    if [ "$ARCH" = "" ]; then
        if [ "$MATLAB_ARCH" != "" ]; then
            check_archlist MATLAB_ARCH=$MATLAB_ARCH
        fi
        if [ "$ARCH" = "" ]; then
            matlab_arch
        fi
    fi
    Arch=$ARCH
#============================= arch.sh (end) ===============================
    if [ "$ARCH" = "unknown" ]; then
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    echo ''
    echo '    Sorry! We could not determine the machine architecture for your'
    echo '           host. '
    echo '      You may be attempting to install on an unsupported OS. '
    echo ''
    echo "      For a list of supported OS's, refer to the Mathworks website at:"
    echo '           http://www.mathworks.com/'
    echo ''
    echo '      or contact Mathworks Technical Support for further assistance.'
    echo ''
    echo ''
    echo '    Sorry! Setup aborted . . .'
    echo ''
#------------------------------------------------------------------------------
        exit 1
    else
        LOCAL_ARCH="$ARCH"
    fi
#                       Check OS version number [all]
#                       -----------------------------
#
#=========================== oscheck.sh (start) ============================
#!/bin/sh
#set -x
#
# usage:        oscheck.sh
#
# abstract:     This Bourne Shell script determines the OS level of the
#               system and responds according to what it finds. There
#               are four numbers of interest:
#
#                   minimum_ver - minimum version allowed to run
#                   release_ver - release version
#                   future_ver  - future version that we know doesn't work
#
#                                 Note: "-" means infinite and is allowed
#                                       only for future_ver
#
#                   version     - current version
#
#		and the environment variable:
#
#		    OSCHECK_ENFORCE_LIMITS - used to determine whether to
#					     ignore the limits when
#					     deciding how to respond.
#
#					  !=  0  (enforce limits: DEFAULT)
#					   =  0  (ignore limits)
#
#               We check for:
#
#                   minimum_ver<=release_ver<=future_ver
#
#               If this condition is not met on the current platform
#               no further analysis is done and the behavior depends
#               on the value of oscheck_debug set in this script.
#               If oscheck_debug=1 an internal error message is
#               generated and you are asked to quit. If oscheck_debug=0
#               then a normal return is done with no messages produced
#               and an attempt is made to start MATLAB.
#
#               Here are the cases tested and the resulting behavior:
#
#               If version > future_ver ||
#                  version == future_ver && release_ver < future_ver
#		     if OSCHECK_ENFORCE_LIMITS != 0
#                        too new warning message
#                        request to stop
#		     else
#                        no message
#                        continue
#               If release_ver <= version <= future_ver
#                    no message
#                    continue
#               If minimum_ver <= version <= release_ver 
#                    standard warning message
#                    continue
#               If version < minimum_ver
#		     if OSCHECK_ENFORCE_LIMITS != 0
#                        too old warning message
#                        request to stop
#		     else
#                        standard warning message
#                        continue
#
#               Arch      - Machine architecture variable must be set
#
# note(s):      1. This routine must be called using a . (period)
#
#               2. token is the version in N.N... form
#
#                  sol64:    uname -r          -> token
#                  glnx86:  /lib/libc.so.6    -> messy parsing to yield token 
#		   glnxa86: /lib/libc.so.6    -> messy parsing to yield token
#		   mac:     uname -r	      -> token(1)
#
#               3. This requires at least the System V Bourne Shell since
#                  internal functions are used.
#
#               4. Algorithm:
#
#		   a. Generate version results.
#                  b. If no results then nothing to do.
#		   c. Otherwise fix error state depending on results
#		      and OSCHECK_ENFORCE_LIMITS.
#		   d. Output any messages.
#		   e. Handle input user interaction when
#		      action required to continue.
#
#               5. Assume that this routine is called using the
#                  unused temporary file defined by
#
#                     $temp_file
#
#               6. The calling routine will exit if the variable,
#                  oscheck_status, is set as follows:            
#
#                      oscheck_status=1
#
#               7. Also, any cleanup associated with of an interrupt
#                  will be handled by the calling routine.
#
#               8. Set oscheck_debug=1 to check for the consistency 
#                  of the data. Set oscheck_debug=0 for shipping.
#
# Copyright 1996-2007 The MathWorks, Inc.
# $Revision: 1.1.6.5 $  $Date: 2008/04/14 17:51:47 $
#----------------------------------------------------------------------------
#

#------------------------------------------------------------------------------
# Function to check for SSE2 instruction, only use on glnx86!!!
#    hasSSE2()   {
#        if !(cat /proc/cpuinfo | grep -q sse2); then
#            echo 'MATLAB requires the SSE2 instruction set.\n'
#            echo 'For system requirements consult http://www.mathworks.com ...'
#            oscheck_status=1
#        fi
#        
#    }
#------------------------------------------------------------------------------

    oscheck_status=0

#------------------------------------------------------------------------------
    instructioncheck() { # check /proc/cpuinfo on glnx86 for
                         # correct level of instructions
                         # Output the flag location. A zero mean
                         # no flag.
        case $Arch in
            glnx86)
                # Example: Be sure that the platform has flag sse2
                #          There are many ways to do this.
                #          Output the flag location.
                expr "`cat /proc/cpuinfo`" : '.* sse2 .*$'
                return
                ;;
            *)
                ;;
        esac
        echo 1
        return
   }
#------------------------------------------------------------------------------

if [ `instructioncheck` -eq 0 ]; then
    echo ''
    echo 'Error: Your computer processor is missing the SSE2 instructions that'
    echo '       are required for MATLAB to run correctly.'
    echo '       For system requirements consult http://www.mathworks.com ...'
    echo ''
    oscheck_status=1
else
    #
    #                   arch   OSprefix minimum_ver release_ver future_ver
    #
        oslist="        sol64   SunOS    5.10         5.10         -"
        oslist="$oslist glnx86  glibc    2.3.4       2.3.6       -"
        oslist="$oslist glnxa64 glibc    2.3.4       2.3.6       -"
        oslist="$oslist mac     Darwin   8.7.0       8.7.0       -"
        oslist="$oslist maci    Darwin   8.7.0       8.7.0       -"
        oslist="$oslist maci64  Darwin   9.0.0       9.0.0       -"
    #
        if [ -f /bin/uname ]; then
            case $Arch in
                glnx86)
    
    # Check to see if the processor has the SSE 2 instruction set.
    # We decided to place the check here as we discovered the need for this check
    # too late in the 2008a release cycle to make changes in the C++ code. 
    
    #            hasSSE2
    #            if ["$oscheck_status" = "1"]; then
    #                return
    #            fi
                
    #
    # Note: R13 used 'uname -r'. If you use ver below, we shipped with 2.1.2
    #
    # This may be run on either glnx86 or glnxa64. Note that things are OK
    # since release_ver on glnx86 <= glnxa64.
    #
    # Example: first line from executing /lib/libc.so.6
    # glnx86:  GNU C Library stable release version 2.2.5, by Roland McGrath et al.
    # glnxa64: GNU C Library stable release version 2.3.2 (20030827), by Roland McGrath et al.
    #
                    ver=`/lib/libc.so.6 | head -n 1 | sed -e "s/^[^0-9]*//" -e "s/[ ,].*$//"`
                    ;;
                glnxa64)
    #
    # Example: first line from executing /lib64/libc.so.6
    # glnxa64: GNU C Library stable release version 2.3.2 (20030827), by Roland McGrath et al.
    #
                    ver=`/lib64/libc.so.6 | head -n 1 | sed -e "s/^[^0-9]*//" -e "s/[ ,].*$//"`
                    ;;
                sol64)
                    ver=`/bin/uname -r`
                    ;;
    	    Darwin)					# Mac OS X
            	ver=`/usr/bin/uname -r | awk '{print $1}'`
                    ;;
                *)
    		ver=`/bin/uname -r | awk '{print $1}'`
                    ;;
            esac
        elif [ -f /usr/bin/uname ]; then
            case "`/usr/bin/uname`" in
    	    Darwin)					# Mac OS X
                    ver=`/usr/bin/uname -r | awk '{print $1}'`
                    ;;
            esac
        fi
    #
    # Be sure that OSCHECK_ENFORCE_LIMITS has a value
    #
        if [ "$OSCHECK_ENFORCE_LIMITS" = "" -o "$OSCHECK_ENFORCE_LIMITS" != "0" ]; then
    	OSCHECK_ENFORCE_LIMITS=1
        fi
    #
    #  Set oscheck_debug=0 for shipping
    #
        oscheck_debug=0
    #
        results=`echo $Arch $ver "$oslist"| awk '
    #---------------------------------------------------------------------------
            BEGIN { str = "0123456789"; strp = str "."
                    astr = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" }
            { arch = $1;
              origver = $2;
    #
    # remove any non-numeric prefix from the version like V, etc.
    #
              ver = ""
              for (j = 1; j <= length(origver); j = j + 1)
                  if (index(strp,substr(origver,j,1)) != 0) {
                      ver = substr(origver,i)
                      break
                  }
              lver = length(ver)
              for (i = 3; i <= NF; i = i + 5) {
                  n[$i] = $(i+1) ""
                  m[$i] = $(i+2) ""
                  r[$i] = $(i+3) ""
                  f[$i] = $(i+4) ""
              }
              mver = m[arch]
              rver = r[arch]
              if (rver == "") exit 
              fver = f[arch]  
    #
    # split the minimum version
    #
              nmver = split(mver,mv,".")
              for (i = 1; i <= nmver; i = i + 1)
                  if (mv[i] == "") mv[i] = 0
    #
    # split the release version
    #
              nrver = split(rver,rv,".")
              for (i = 1; i <= nrver; i = i + 1)
                  if (rv[i] == "") rv[i] = 0
    #
    # split the future version if there is one
    #
              if (fver != "-") {
                  nfver = split(fver,fv,".")
                  for (i = 1; i <= nfver; i = i + 1)
                      if (fv[i] == "") fv[i] = 0
              }
    #
    # split the actual version
    # remove everything in a word after a nondigit
    #
              nver = split(ver,v,".")
              for (i = 1; i <= nver; i = i + 1) {
                  new = ""
                  for (j = 1; j <= length(v[i]); j = j + 1)
                      if (index(str,substr(v[i],j,1)) != 0)
                          new = new substr(v[i],j,1)
                      else
                          break
                  v[i] = new
                  if (v[i] == "") v[i] = 0
              }
    #
    # errmode: 0 - no warning
    #          1 - too old warning
    #          2 - warning
    #          3 - too new warning
    #          4 - internal error (not shipped)
    #
              errmode = 0
    #
    # check: minimum_ver<=release_ver<=future_ver
    #        minimum_ver != "-"
    #        release_ver != "-"
    #
              if (nmver < nrver)
                  ncd = nmver
              else 
                  ncd = nrver
              for (i = 1; i <= ncd; i = i + 1)
                  if (mv[i] + 0 > rv[i] + 0) {
                       errmode = 4
                       break
                  }
                  else if (mv[i] + 0 < rv[i] + 0)
                       break
              if (errmode == 0 && i == ncd + 1 && nmver > nrver)
                  for (i = ncd + 1; i <= nmver; i = i + 1)
                      if (mv[i] + 0 != 0 ) {
                          errmode = 4
                          break
                      }
              if (errmode == 0 && fver != "-") {
                  if (nrver < nfver)
                      ncd = nmver
                  else 
                      ncd = nfver
                  for (i = 1; i <= ncd; i = i + 1)
                      if (rv[i] + 0 > fv[i] + 0) {
                          errmode = 4
                          break
                      }
                      else if (rv[i] + 0 < fv[i] + 0)
                          break
                  if (errmode == 0 && i == ncd + 1 && nrver > nfver)
                      for (i = ncd + 1; i <= nrver; i = i + 1)
                          if (rv[i] + 0 != 0 ) {
                              errmode = 4
                              break
                          }
              }
              if (errmode == 0 && nmver == 1 && mver == "-")
                  errmode = 4
              else if (errmode == 0 && nrver == 1 && rver == "-")
                  errmode = 4
    #
    # check whether release_ver < future_ver (futuremode = 1)
    #
              if (errmode == 0) {
                  futuremode = 1
                  if (fver != "-") {
                      if (nrver < nfver)
                          ncd = nrver
                      else
                          ncd = nfver
                      futuremode = 0
                      for (i = 1; i <= ncd; i = i + 1)
                          if (rv[i] + 0 < fv[i] + 0) {
                              futuremode = 1
                              break
                          }
                     if (futuremode == 0)
                         for (i = ncd + 1; i <= nfver; i = i + 1)
                             if (fv[i] + 0 != 0) {
                                 futuremode = 1
                                 break
                             }
                  }
              }
    #
    # check if version > future_ver ||
    #          version == future_ver && release_ver < future_ver
    #
              if (errmode == 0 && fver != "-") {
                  if (nfver < nver)
                      ncd = nfver
                  else
                      ncd = nver
                  for (i = 1; i <= ncd; i = i + 1)
                      if (v[i] + 0 > fv[i] + 0) {
                          errmode = 3
                          break
                      }
                      else if (v[i] + 0 < fv[i] + 0)
                          break
                  if (errmode == 0 && i == ncd + 1 && ncd == nver) {
                      for (i = ncd + 1; i <= nfver; i = i + 1)
                          if (fv[i] + 0 != 0)
                              break
                      if (i == nfver + 1 && futuremode == 1)
                          errmode = 3
                      else if (i == nfver + 1 && futuremode == 0)
    #
    # case: version == future_ver && release_ver == future_ver
    #
                          exit
                  }
                  else if (errmode == 0 && i == ncd + 1 && ncd == nfver) {
                      for (i = ncd + 1; i <= nver; i = i + 1)
                          if (v[i] + 0 != 0) {
                              errmode = 3
                              break
                          }
                      if (i == nver + 1 && futuremode == 1)
                          errmode = 3
                      else if (i == nver + 1 && futuremode == 0)
    #
    # case: version == future_ver && release_ver == future_ver
    #
                          exit
                  }
              }
    #
    # check if release_ver <= version
    #
              if (errmode == 0) {
                  if (nrver < nver)
                      ncd = nrver
                  else
                      ncd = nver
                  for (i = 1; i <= ncd; i = i + 1)
                      if (rv[i] + 0 > v[i] + 0)
                          break
                      else if (rv[i] + 0 < v[i] + 0)
                          exit
                  if (i == ncd + 1 && ncd == nrver)
                      exit
                  else if (i == ncd + 1 && ncd == nver) {
                      for (i = ncd + 1; i <= nrver; i = i + 1)
                          if (rv[i] + 0 != 0)
                              break
                      if (i == nrver + 1)
                          exit
                  }
              }   
    #
    # check if minimum_ver <= version || version < minimum_ver
    #
              if (errmode == 0) {
                  if (nmver < nver)
                      ncd = nmver
                  else
                      ncd = nver
                  for (i = 1; i <= ncd; i = i + 1)
                      if (mv[i] + 0 > v[i] + 0) {
                          errmode = 1
                          break
                      }
                      else if (mv[i] + 0 < v[i] + 0) {
                          errmode = 2
                          break
                      }
                  if (i == ncd + 1 && ncd == nmver) {
                      errmode = 2
                  }
                  else if (i == ncd + 1 && ncd == nver) {
                      for (i = ncd + 1; i <= nmver; i = i + 1)
                          if (mv[i] + 0 != 0) {
                              errmode = 1
                              break
                          }
                      if (i == nmver + 1) 
                          errmode = 2
                  }
              }   
    	  print errmode, n[arch], ver, mver, rver, fver
            }'`
    #---------------------------------------------------------------------------
    #
    # No results means no error.
    #
        if [ "$results" != "" ]; then
            errmode=`echo $results | awk '{ print $1}'`
            errflag=$errmode
    #
    # Fix errflag depending on the value of $OSCHECK_ENFORCE_LIMITS
    #
            if [ "$errmode" = "1" -a "$OSCHECK_ENFORCE_LIMITS" = "0" ]; then
    	    errflag=2
            elif [ "$errmode" = "3" -a "$OSCHECK_ENFORCE_LIMITS" = "0" ]; then
    	    errflag=0
            fi
    #
            echo $errflag $results $oscheck_debug | awk '
    #---------------------------------------------------------------------------
    	{ errmode = $1
    	  arch = $3
    	  ver = $4
    	  mver = $5
    	  rver = $6
    	  fver = $7
    	  debug = $8
              if (errmode == 1) {
    print " "   
    print "----------------------------------------------------------------------------"
    printf "Warning: %s %-10s - Unsupported version\n", arch, ver
    printf "         %s %-10s - MATLAB built using this version\n", arch, rver
    print "----------------------------------------------------------------------------"
              }
              else if (errmode == 2) {
    print " "   
    print "----------------------------------------------------------------------------"
    printf "Warning: %s %-10s - Your version\n", arch, ver
    printf "         %s %-10s - MATLAB built using this version\n", arch, rver
    print "----------------------------------------------------------------------------"
              }
              else if (errmode == 3) {
    print " "   
    print "----------------------------------------------------------------------------"
    printf "Warning: %s %-10s - Unqualified version\n", arch, ver
    printf "         %s %-10s - MATLAB built using this version\n", arch, rver
    print "----------------------------------------------------------------------------"
              }
              else if (errmode == 4) {
                  if (debug == 0) exit
    print " "   
    print "----------------------------------------------------------------------------"
    printf "Error: %s %-10s - Internal Error - oscheck.sh has inconsistent data\n", arch, ver
    printf "       %s %-10s - Minimum supported version\n", arch, mver
    printf "       %s %-10s - MATLAB built using this version\n", arch, rver
    printf "       %s %-10s - Maximum supported version\n", arch, fver
    print "----------------------------------------------------------------------------"
    print " "
              }
            }' > $temp_file
    #---------------------------------------------------------------------------
    #=======================================================================
    # Functions:
    #=======================================================================
        echon ()    { # echo without a newline - UNIX dependent
                      #
                      # usage: echon
                      #
            if [ "`echo -n`" != "" ]; then
                echo "$1\c"
            else
                echo -n "$1"
            fi
        }
    
    
    #=======================================================================
            if [ -s $temp_file ]; then
                cat $temp_file
                errtype=`cat $temp_file | awk 'NR == 3 {print $5}'`
                case "$errtype" in
                    'Unsupported')
    #---------------------------------------------------------------------------
    echo '-> Your configuration APPEARS to be too OLD to run this MATLAB program!'
    echo '----------------------------------------------------------------------------'
    #---------------------------------------------------------------------------
                        ;;
                    'Unqualified')
    #---------------------------------------------------------------------------
    echo '-> Your configuration APPEARS to be too NEW to run this MATLAB program!'
    echo '----------------------------------------------------------------------------'
    #---------------------------------------------------------------------------
                        ;;
                    'Your')
    		    if [ "$errmode" = "1" ]; then
    #---------------------------------------------------------------------------
    echo '-> Please Note: This program may work on this host but MATLAB will not!'
    echo '----------------------------------------------------------------------------'
    echo 'Please wait . . .'
    echo ' '
    #---------------------------------------------------------------------------
    		        sleep 5
    		    else
    #---------------------------------------------------------------------------
    echo ' '
    #---------------------------------------------------------------------------
    		    fi
    		    ;;
                     *)
                        :
                        ;;
                esac
    #
                case "$errtype" in
                    'Unsupported'|'Unqualified')
    #---------------------------------------------------------------------------
    echo '   For system requirements consult http://www.mathworks.com ...'
    #---------------------------------------------------------------------------
                        ;;
                    'Internal')
    #---------------------------------------------------------------------------
    echo 'Please report this problem to The MathWorks, Inc. Technical Support'
    echo '       phone: (508) 647-7000'
    echo '       email: support@mathworks.com'
    #---------------------------------------------------------------------------
                        ;;
                     *)
                        :
                        ;;
                esac
    #
                case "$errtype" in
                    'Unsupported'|'Unqualified'|'Internal')
    #---------------------------------------------------------------------------
    echo ' '
    echo '***************************************************************************'
    echo '-> Best to quit by pressing <return> at the next prompt ...'
    echo ' '
    echon '   Do you still want to try to continue? (y/[n]) > '
    #---------------------------------------------------------------------------
                        if [ "$batch" != "1" ]; then
                            read ans
                            if [ `expr "//$ans" : '//[Yy].*'` -gt 0 ]; then
                                :
                            else
                                oscheck_status=1
                            fi
                        else
    #---------------------------------------------------------------------------
         echo 'y'               
    #---------------------------------------------------------------------------
                        fi
    #---------------------------------------------------------------------------
    echo ' '
    #---------------------------------------------------------------------------
                        ;;
                     *)
                        :
                        ;;
                esac
    	fi
        fi
        rm -f $temp_file
fi
#============================ oscheck.sh (end) =============================
    if [ "$oscheck_status" = "1" ]; then
        exit 1
    fi
#
# Map names so that this install can be run on the CD/DVD.
#
# Determine value of TMW_CD_FORMAT by looking at the value of the
# 'command' variable which is the ISO 9660 version of 'install'.
#
    cdtype=1
    TMW_CD_FORMAT=;  export TMW_CD_FORMAT
    case "$command" in
        'install')      # ufs, sgi, alpha
            TMW_CD_FORMAT='sgi'
            . "$dir/update/install/mapname.sh"
            dir="$dir/update/install"
            ;;
        'install.')     # sun4, sol2, ibm_rs
            TMW_CD_FORMAT='sun'
            . "$dir/update/install/mapname.sh"
            dir="$dir/update/install"
            ;;
        'INSTALL')      # dec_risc
            TMW_CD_FORMAT='dec'
            . "$dir/UPDATE/INSTALL/MAPNAME.SH"
            dir="$dir/UPDATE/INSTALL"
            ;;
        'INSTALL.;1')   # hp700, hp300
            TMW_CD_FORMAT='hp'
            . "$dir/UPDATE/INSTALL/MAPNAME.SH;1"
            dir="$dir/UPDATE/INSTALL"
            ;;
        *)              # unknown
            cdtype=0
            ;;
    esac
#
    if [ "$cdtype" = "0" ]; then
#------------------------------------------------------------------------------
    echo '-------------------------------------------------------------------'
    echo ''
    echo '    Sorry! Could not determine the Format of the CDROM for'
    echo "           architecture ($ARCH)"
    echo ''
    echo '-------------------------------------------------------------------'
#------------------------------------------------------------------------------
        exit 1
    fi
#
#   Set library path to find the installer's shared libraries
    case "$ARCH" in
        "mac"|"maci"|"maci64")
           if [ "$DYLD_LIBRARY_PATH" != "" ]; then
               DYLD_LIBRARY_PATH="$cd_bin:$DYLD_LIBRARY_PATH"
           else
               DYLD_LIBRARY_PATH="$cd_bin"
           fi
           export DYLD_LIBRARY_PATH
           ;;
        "sol2"|"sol64"|"glnx86"|"glnxa64")
           if [ "$LD_LIBRARY_PATH" != "" ]; then
               LD_LIBRARY_PATH="$cd_bin:$LD_LIBRARY_PATH"
           else
               LD_LIBRARY_PATH="$cd_bin"
           fi
           export LD_LIBRARY_PATH
           ;;
    esac
#
    . "$dir/$main_sh"

Donc c'est bien un executable non???
Comment le lancer ?
j'ai essayé
./install
sudo ./install

Rien n'y fait.......

Hors ligne

#11 Le 10/01/2013, à 20:54

Korak

Re : Ouvrir dans un terminal

Si j'ai bien compris, tu dois lancer la commande:

sudo install -h

OS: Ubuntu 22.04 64 bits + Windows 11 64 bits en dualboot (BIOS UEFI, Secure Boot activé et table de partitions GPT)
PC portable HP 17-CP0308NF   Processeur: AMD Ryzen 7 5700U avec carte graphique AMD Lucienne intégrée au processeur.   Mémoire vive: 16 Go RAM
Quand vous ne trouvez pas la solution à un problème, cherchez des pistes menant à la solution !

Hors ligne

#12 Le 10/01/2013, à 20:55

frere capsule

Re : Ouvrir dans un terminal

non, il me dit :

install : option invalide -- 'h'
Saisissez « install --help » pour plus d'informations.

Hors ligne

#13 Le 10/01/2013, à 21:00

Korak

Re : Ouvrir dans un terminal

Et:

sudo install

ne donne rien?


OS: Ubuntu 22.04 64 bits + Windows 11 64 bits en dualboot (BIOS UEFI, Secure Boot activé et table de partitions GPT)
PC portable HP 17-CP0308NF   Processeur: AMD Ryzen 7 5700U avec carte graphique AMD Lucienne intégrée au processeur.   Mémoire vive: 16 Go RAM
Quand vous ne trouvez pas la solution à un problème, cherchez des pistes menant à la solution !

Hors ligne

#14 Le 10/01/2013, à 21:02

frere capsule

Re : Ouvrir dans un terminal

m...

pourtant je l'avais deja fais, j'avais noté ce que j'avais fais c'était bien "clique droit sur le fichier et executer dans un terminal"....

je vois pas là....

Dernière modification par frere capsule (Le 10/01/2013, à 21:20)

Hors ligne

#15 Le 10/01/2013, à 21:03

frere capsule

Re : Ouvrir dans un terminal

Bah non c'est pareil
sudo install
donne :

install: opérande fichier manquant
Saisissez « install --help » pour plus d'informations.

Hors ligne

#16 Le 10/01/2013, à 21:24

frere capsule

Re : Ouvrir dans un terminal

Ca y'est ... résolu...

J'avais déjà fait cette manip, c'était quasiment identique sauf que :

au lieu de monter avec "monteur d'archive" en clique droit, j'étais passé par Gmount-iso.
Il y a une sacré différence :
lorsque je double clique sur "install" en ayant monté avec "monteur d'archive" : j'ouvre directement le fichier dans gedit.
Alors qu'avec gmount, en double cliquant il me propose : "Lancer dans un terminal"


                                      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

C'est  quand meme dingue yikes yikes yikes yikes yikes yikes yikes yikes yikes yikes

Merci beaucoup Korak pour ton aide,
ca fait un paire de fois que tu me débloque bien mes misères !

Bonne soirée !!!!!

Dernière modification par frere capsule (Le 10/01/2013, à 21:25)

Hors ligne

#17 Le 10/01/2013, à 21:24

frere capsule

Re : Ouvrir dans un terminal

Faudra quand même qu'on comprenne pourquoi ???

mais enfin pourquoi ????????????????

Hors ligne

#18 Le 10/01/2013, à 21:37

frere capsule

Re : Ouvrir dans un terminal

En fait je précise pour ceux qui aurait des soucis pour installer un programme dans ce style là :

pour l'installation,
il faut monter l'archive/l'image iso avec :

Gmount-iso

Mais attention : il faut monter en sudo !!!
(sinon y'a des problèmes de droit)
donc :

sudo Gmount-iso

Dernière modification par frere capsule (Le 10/01/2013, à 21:37)

Hors ligne

#19 Le 10/01/2013, à 22:14

Korak

Re : Ouvrir dans un terminal

gedit est un éditeur de texte. Un genre de bloc note quoi. Ce n'est donc pas étonnant que tu ne sache pas installer un logiciel via gedit.


OS: Ubuntu 22.04 64 bits + Windows 11 64 bits en dualboot (BIOS UEFI, Secure Boot activé et table de partitions GPT)
PC portable HP 17-CP0308NF   Processeur: AMD Ryzen 7 5700U avec carte graphique AMD Lucienne intégrée au processeur.   Mémoire vive: 16 Go RAM
Quand vous ne trouvez pas la solution à un problème, cherchez des pistes menant à la solution !

Hors ligne

#20 Le 10/01/2013, à 22:31

frere capsule

Re : Ouvrir dans un terminal

Oui bien sur...

Mais via gmount-iso , lorsque je double clique on me propose de lancer dans un terminal
Alors qu'avec "monteur d'archive" le fichier (qui est un fichier texte) est ouvert automatiquement avec gedit....

Hors ligne