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 23/03/2006, à 21:03

tonyo

Interpréteurs bash

Bonjour,

j'essaye d'installer des programmes fait pour des architectures linux/Sun, et les scripts d'installation commencent par des lignes du style :
"#!/bin/ksh"
ou
"#!/bin/sh -f"
ou encore
"#!/bin/csh -f"

en exécutant tous ces scripts j'obtiens une erreur avant même le lancement dans le style " /bin/ksh: bad interpreter"

Alors j'aimerais savoir s'il est possible d'exécuter ce style de script avec ubuntu ?

tonyo

Hors ligne

#2 Le 24/03/2006, à 12:46

zeugme

Re : Interpréteurs bash

Et pourquoi ne pas les installer ces interpreteurs manquants ???

Hors ligne

#3 Le 24/03/2006, à 14:46

gapz

Re : Interpréteurs bash

Tout ce que je peux rajouter, c'est qu'effectivement une fois installer (apt-get install ksh...) tout tes scripts peuvent fonctionner à merveille. Biensur il faut que l'executable sous bien présent dans ton /bin/


Real programmers code in binary :: http://gapz.tuxfamily.org

Hors ligne

#4 Le 24/03/2006, à 20:42

tonyo

Re : Interpréteurs bash

alors, j'ai réussi pour un des deux scripts d'install, en installant csh.
Par contre j'ai un autre script qui ne veut pas se lancer. Pour donner plus d'indications, j'ai une marche à suivre d'installation qui devrait m'aider (mais je ne vois pas le problème...)

Voila les instructions données :

This document describes the basic system requirements and installation 
procedure for each computer system supported by this delivery.


CONTENTS

  1. Media Contents
  2. Before You Begin
       o Operating System Requirements
       o Disk Space Requirements
           - MSC.Nastran 2004
               - Optional Components
               - Architectural Components
           - FLEXlm License Server V9.2
               - Optional Components
               - Architectural Components
       o Installation Notes
           - MSC.Nastran 2004
           - FLEXlm License Server V9.2

  3. Installing the Software
       o Installing from a Local CD
       o Installing from a Remote CD
       o Repeating an Installation


1. MEDIA CONTENTS

The CD-ROM contains the following files:

    File Set          Description
    ------------      ---------------------------------------------------------
    INSTALL.htm       HTML version of this document.
    INSTALL.txt       This document.
    README.txt        IMPORTANT information too late to be included in
                      MSC.Nastran documentation.
    mscsetup          Installation utility.
    msc.seq           Manufacturing information.
    mscsetup.tar      Tar archive containing above files.
    flexlm/           Directory containing FLEXlm License Server V9.2 File
                      Sets.  See "Disk Space Requirements FLEXlm License Server
                      V9.2" for a complete listing.
    msc2004/          Directory containing MSC.Nastran 2004 File Sets.
                      See "Disk Space Requirements MSC.Nastran 2004" for a
                      complete listing.
    tools/            Directory containing installation utilities.

2. BEFORE YOU BEGIN

Operating System Requirements

  Information about your system can be displayed by running the mscinfo
  utility (see "Installing the Software" below).

                                                MSC
                                                Architecture  Installation
    Platform          Operating System          Name          Notes
    ----------------- ------------------------- ------------  -------------
    Compaq Alpha      Tru64 UNIX 5.0            alpha

                      Tru64 UNIX 5.0                          Installing DMP
                      Compaq MPI 1.8.1

    Cray C90, T90     UNICOS 10.0               unicosc90

    Cray IEEE T90     UNICOS 10.0               unicosts

    Cray SV1          UNICOS 10.0               unicos

    Fujitsu VPP       VPP 5000                  uxpv

    HP 9000           PA-RISC 1.1  HP-UX 10.20  hpux

                      PA-RISC 2.0  HP-UX 10.20  hpux

                      PA-RISC 2.0  HP-UX 11.00  hpux

                      PA-RISC 2.0  HP-UX 11.00  hpux          Installing DMP

    IBM RS/6000       Power   AIX 4.3.2         aix

                      Power2  AIX 4.3.2         aix

                      Power   AIX 4.3.2         aix           Installing DMP
                              POE 2.4

                      Power2  AIX 4.3.2         aix           Installing DMP
                              POE 2.4

    Intel HP-UX       Itanium HP-UX 11.0        hpuxia64     

    Intel HP-UX       Itanium HP-UX 11.0        hpuxia64      Installing DMP

    Intel Linux       Linux Kernel 2.2.5+       linux         Distributions
                      ld-linux.so.2                           Runtimes
                      libc.so.6
                      libm.so.6
                      PD KSH 5.2.12 (or later)                PD KSH

    Intel Linux       Itanium                   linux            

    Intel Linux       Itanium                   linux         Installing DMP

    NEC SX-5          SUPER-UX 12.1             superux

                      SUPER-UX 12.1             superux       Installing DMP
                      MPI/SX 5.0

    SGI R4K/R5K       IRIX 6.5                  irix

    SGI R8K/R10K      IRIX64 6.5                irix64

                      IRIX64 6.5                irix64        Installing DMP
                      Array Services 3.3
                      MPT 1.3

    Sun SPARC Solaris UltraSPARC  Solaris 8     solaris

                      UltraSPARC  Solaris 8     solaris       Installing DMP
                                  HPC 5.0


Disk Space Requirements

 MSC.Nastran Version 2004
   Optional Components

                                                                   Size Install
    Full Std Min File Set                               File Set   (KB)  Notes
    ---- --- --- -----------------------------------  ------------ ---- -------
     Y    Y   Y  MSC.Nastran Executables.             (See below.)
     Y    Y   Y  Base files.                          base.tar     1636 
     Y    Y      MSC.Nastran DMP Executables.         (See below.)
     Y    Y      Other Files and Executables.         (See below.)
     Y    Y      Demo - MSC.Nastran examples.         demo.tar      824 
     Y    Y      Misc - Release notes, alters, etc.   misc.tar    41000 
     Y           TPL - MSC.Nastran advanced examples  tpl.tar     73800 
     Y           Beam Server sample source.           bmsrv.tar      53   Yes
     Y           Dr3 Server sample source.            dr3srv.tar     67
     Y           MSC.ACCESS sample program source.    access.tar   1090 
     Y           Utility program source.              util.tar     1629   Yes

   Architectural Components
                                         MSC.Nastran     DMP        Utility
                                         Executables  Executables  Executables
    Platform               File Set       Size (MB)    Size (MB)    Size (MB)
    --------------------  -------------  -----------  -----------  -----------  
    Compaq                alpha.tar          39           39           78 
    Cray C90, T90         unicosc90.tar      53            -          123 
    Cray IEEE T90         unicosts.tar       57            -          126 
    Cray SV1              unicos.tar         61           70          128 
    Fujitsu               fujitsu.tar       153          158          122 
    HP 9000               hpux.tar           95           60          165 
    HP Itanium            hpuxia64.tar       87           89          197  
    IBM                   aix.tar            86           85           69 
    Linux                 linux.tar          37           37           89 
    Linux64               linux64.tar        95           97          188 
    NEC                   superux.tar       115          120           85 
    SGI R4K, R5K          irix.tar           44            -           49
    SGI R8K, R10K         irix64.tar         48           49           70 
    Sun                   solaris.tar       243          246          116 

 FLEXlm License Server V9.2
   Optional Components

    Std Min File Set                               File Set       Size 
    --- --- -----------------------------------  ------------ ------------
     Y   Y  FLEXlm License Server Executables.   (See below.)
     Y   Y  Base files.                          base.tar         472 KB 
     Y      HTML Documentation file              htmlman.tar     2140 KB

   Architectural Components

    Platform                   File Set          Size
    --------------------      -----------     -----------
    Compaq                    alpha.tar         2100 KB
    HP 9000                   hpux.tar          2070 KB
    HP Itanium                hpuxia64.tar      3750 KB
    IBM                       aix.tar           1640 KB
    Linux                     linux.tar         1410 KB
    Linux64                   linux64.tar       5320 KB
    SGI R4K, R5K              irix.tar          2150 KB
    SGI R8K, R10K             irix64.tar        2270 KB
    Sun                       solaris.tar       3090 KB

 Installation Notes

 Please read the following notes before you install MSC.Nastran or FLEXlm.

 o  The following environment variables will affect mscsetup:
    <MSC_ARCH>, <MSC_BASE>, <MSC_CMDSUB>, <MSC_SETUP>, <TMPDIR>.

 o  mscsetup is a very large Korn shell script.  If too many processes are
    running when mscsetup runs, the script may hang or generate utility
    errors.  For best result, close or exit other applications before
    running mscsetup.

    Linux Note: PD KSH 5.2.12 or later is required to use mscsetup.  It must
    be available as /bin/ksh.  If not included with your Linux distribution,
    you can obtain the complete PD KSH distribution from
    "http://www.cs.mun.ca/~michael/pdksh/", or use 
    /mnt/cdrom/tools/linux/ksh (see also /mnt/cdrom/tool/doc/pdksh-2.2.12).

 o  Linux provides a "user" option to the mount command that allows non-root
    users to mount a CD-ROM.  By default, this option also prohibits direct
    execution of CD-ROM-resident files.  You must unmount the CD-ROM and
    remount it as described below if you receive the following error message
    when attempting to run mscsetup:

     ksh: /mnt/cdrom/mscsetup: Permission denied

 o  The "Disk Space Requirements" table listed above and in the Installation
    Review menu do not include the scratch space needed to decompress the
    installation files.  Depending upon the particular installation, up to
    65 MB of additional space may be needed in the installation file system
    or the temporary file system.  The temporary file system is defined by the:

    o -t option of the mscsetup command line, for example,

        ./mscsetup -t <alternate_temporary_directory>

    o TMPDIR environment variable.

    o "/var/tmp" on SGI, or "/tmp" on all others.

 o  mscsetup identifies the system type in the first screen.
    If this identification is incorrect, e.g., a new computer model or a new
    operating system is detected, exit the script.  Before restarting the
    script, set the environment variable <MSC_ARCH> to the correct architecture
    name as shown in the "Operating System Requirements".

 o  Use the Custom Installation option of the Installation Type menu to select
    specific file sets listed in the "Disk Space Requirements".
    Use this option to install multiple architectures on an application server
    that is NFS mounted by other systems.

 o  If you need a node-locked authorization code or a license.dat file,
    you must do one of the following:

     - Perform the installation and generate the "MSC Contract Amendment"
       on the machine that will run MSC.Nastran (in the case of a nodelock
       authorization code) or the FLEXlm license server (in the case of a
       license.dat file).

     - Perform the installation and generate the "MSC Contract Amendment"
       on some other machine and manually change the hostname and ID
       information in the "MSC.Software Contract Amendment" to correctly
       identify the machine that will run the software.

 o  The installation procedure includes the gunzip and wget utilities
    from the Free Software Foundation.  The complete gzip and wget
    distributions can be obtained via the Web at http://www.gnu.org,
    via anonymous ftp at ftp://ftp.gnu.org, or by contacting the Free Software
    Foundation at 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

 MSC.Nastran 2004

 o  This CD-ROM will install MSC.Nastran 2004 on all systems.

    The MSC.Nastran news file, available on the CD-ROM as msc2004.txt
    (MSC2004.TXT;1 on HP systems), describes the capabilities of this release.

 o  General Feature Availability

                                      Shared Memory   Distributed Memory
                   FLEXlm     Beam      Parallel          Parallel
    Platform       Client    Server       SMP               DMP
    --------       ------    ------   -------------   ------------------
    Compaq          Yes       Yes         Yes               Yes
    Cray C90        No        Yes         Yes               No
    Cray IEEE T90   No        Yes         Yes               No
    Cray SV1        No        Yes         Yes               Yes 
    Fujitsu         No        Yes         No                No
    Fujitsu Primep  Yes       Yes         No                Yes
    HP 9000         Yes       Yes         Yes         HP-UX 11.0, V-Class
    HP Itaninum     Yes       Yes         Yes               Yes
    IBM RS/6000     Yes       Yes         Yes               Yes
    Linux           Yes       Yes         No                Yes 
    Linux64         Yes       Yes         No                Yes
    NEC             Yes       No          No                Yes
    SGI R4K, R5K    Yes       Yes         Yes               No
    SGI R8K, R10K   Yes       Yes         Yes               Yes
    Sun             Yes       Yes         Yes         Solaris 8, UltraSPARC

 o  Any non-standard run time libraries needed by MSC.Nastran are included in
    this distribution.

    Linux Note: The LAPACK and BLAS distribution is available from
    http://rufus.w3.org/linux/RPM/dld/5.4/i386/RPMS/i386/lapack-2.0-1.i386.html

 o  The installation test option will only be performed on the current
    architecture.

 o  You must install the MSC.Nastran 2004 Utility program source option if you
    want to customize the accounting procedures for your site.

 o  You must install the MSC.Nastran 2004 Beam Server sample source option if
    you want to build a beam server.

 o  Your current settings for the "authorize", "sdirectory", "buffsize",
    and "memory" keywords will be used as defaults for this installation
    if you install MSC.Nastran 2004 in an installation base directory
    containing previous versions of MSC.Nastran, or in a sibling directory of
    a previous MSC.Nastran installation base directory.

 o  See the "MSC.Nastran 2004 Installation and Operations Guide" for
    information on configuring, customizing, and using MSC.Nastran 2004.

 o  To install MSC.Nastran 2004 for Distributed Memory Parallel (DMP)
    operations, you must select one of the following three installation
    schemes if you want to use more than one host in a single MSC.Nastran
    job:

    1) Install MSC.Nastran on a filesystem that is global to every host.
       This provides the easiest installation and system administration,
       but may present network load issues when the various executables
       are being run and the delivery databases are being read.

    2) Install MSC.Nastran on every host on host-private filesystems.
       This is harder to install and administer, but reduces the network load
       when MSC.Nastran is started.

    3) A combination of the above.

 o  MSC.Nastran 2004 has been tested on Red Hat 7.3, 8.0, 9.0, and SuSE 8.1.
    It is expected to work on other distributions that use the Linux
    Kernel 2.2.5-15 or later.

    Note: The window and desktop manager are not significant to MSC.Nastran.


 FLEXlm License Server V9.2

 o  YOU DO NOT HAVE TO INSTALL THE FLEXlm LICENSE SERVER IF:
    - you are using an uncounted node-lock license.
    - you will reference a FLEXlm server on another node.  A FLEXlm
      installation must be present on the FLEXlm server node.

 o  The default port number for the FLEXlm license server is 1700.  You
    must select an alternate port number if this port is already in use.

 o  You must run mscsetup as root if you want the FLEXlm license server to
    be automatically started at system boot time.  mscsetup will then be able
    to add an entry to your /etc/inittab file to start the FLEXlm license
    server daemons, lmgrd and msc, at system boot time.

 o  Install a network or counted node-lock license file using the "existing
    file" option of the "Authorization Information" menu.

 o  On-line FLEXlm documentation is available from Macrovision, see the URL

        http://www.macrovision.com

 o  After the installation is completed, see the URL

        file:<install-dir>/flexlm/htmlman/index.html

    for information on configuring and using FLEXlm with MSC products.  This
    file is part of the FLEXlm HTML Documentation File option.



3. INSTALLING THE SOFTWARE

mscsetup provides two installation types based on the accessibility of the
CD-ROM to the computer the software is being installed on.

 -  See "Installing from a Local CD" if the CD-ROM is attached to the computer
    you will install the software on, or is NFS-mounted on the computer you
    will install the software on.

 -  See "Installing from a Remote CD" if the CD-ROM is attached to another
    computer AND is not NFS-mounted on the computer you will install the
    software on. You must have "r-command" access to the remote computer that
    the CD-ROM is mounted on to use this capability.


Installing from a Local CD

 1. Log on to the system.  You must log on as root to:
    - Mount the CD (not required on SGI or Sun).
    - Configure your system to automatically start the FLEXlm license server
      daemons at system boot time (only required if you install the FLEXlm
      license server).
    - Install links in /usr/bin.
    - Install the Xnastran and Xmonast app-default files.

 2. Insert the CD-ROM into the CD drive and mount the CD-ROM file system.
    Note: The device names and CD-ROM mount points in the following mount
    commands are examples.  The actual device name on your system may differ.

     Platform           Command
     --------           -------------------------------------------------
     Compaq             mount -rt cdfs -o noversion,rrip /dev/rz4c /CDROM
     Convex             (Not applicable.)
     Cray               (Not applicable.)
     Fujitsu            (Not applicable.)
     HP                 /usr/sbin/mount -rF cdfs /dev/dsk/c2t2d0 /CDROM
     IBM                mount -prv cdrfs /dev/cd0 /CDROM
     Linux              mount -o exec /mnt/cdrom
     NEC                (Not applicable.)
     SGI                (Mounts automatically.)
     Sun                (Mounts automatically.)

    Linux Note: Linux provides a "user" option to the mount command that allows
    non-root users to mount a CD-ROM.  By default, this option also prohibits
    direct execution of CD-ROM-resident files.

 3. Run mscinfo (optional).

     Platform           Command
     ----------         -------------------
     HP                 '/CDROM/MSCSETUP.;1' info
     Linux              /mnt/cdrom/mscsetup info
     Sun                /cdrom/cdrom0/mscsetup info
     All others         /CDROM/mscsetup info

    If you do not want to install the software, proceed to step 6.

 4. Start the installation script.

     Platform           Command
     ----------         -------------------
     HP                 '/CDROM/MSCSETUP.;1'
     Linux              /mnt/cdrom/mscsetup
     Sun                /cdrom/cdrom0/mscsetup
     All others         /CDROM/mscsetup

 5. Follow the prompts to complete the installation.  See also the
    "Installation Notes" above.

 6. Unmount the CD-ROM

     Platform           Command
     ----------------   -------------------
     Linux              umount /mnt/cdrom
     SGI                eject /CDROM
     Sun                eject cdrom0
     All others         umount /CDROM

Je monte le cd (j'en ai fait une image) de la maniere suivante :

sudo mount /mnt/Datos/cd.iso /cdrom -o loop
cd /cdrom

Voici l'erreur quand j'execute le script :

sudo: ./mscsetup: command not found

J'ai aussi remarquer que ksh n'existait pas sur Ubuntu par contre il y a l'executable /usr/bin/kshell. J'ai essayé en faisant un lien entre ksh et kshell ou même en utilisant le ksh fourni sur le cd d'install.

Vous avez une idée ?

Hors ligne

#5 Le 06/10/2006, à 15:20

Morphee

Re : Interpréteurs bash

bon, je lance mon problème sur ce fil, puisque c'est a peu près le meme...

a la fac, on bosse en csh, et j'ai donc installé linux sur ma machine, pour travailler chez moi, mais en fait, je n'ai pas la "bibliothèque" csh dans le fichier bin. Donc je peux pas bosser sur mon tp... Comment puis je le récupérer? en le téléchargeant?
(pis j'ai pas le net chez moi, je me connecte de la fac)

hmm


En fait Linux c'est bien!

Hors ligne