Stranice: [1]   Idi dole
  Štampaj  
Autor Tema: .csh skript  (Pročitano 2324 puta)
Slavisha
Gost
« poslato: Četvrtak, 10. Novembar 2005. 14:32:26 »

Na netu sam nashao neku evaluacionu verziju programa, koja je prevashodno namenjena za upotrebu na Red Hat 9.0, RHL1,2,3 i na srodnim platformama. Mislim da FC4 srodan i pogodan datim OS. Skinuo sam sa neta tu verziju i za instalaciju je potrebno setovati nekoliko promenljivih okruzenja, shto sam odradio bez vecih poteshkoca i potrebno je startovati skript sa extenzijom .csh i to upotrebom naredbe source ime_skripta.csh(tako je naznacheno u uputsvu). Medjutim, dobijam greshku tipa
bash: smashenv.csh: line 81: syntax error: unexpected end of file

Pregledao sam fajl, ali nisam mogao da ustanovim o chemu se radi (uostalom, nemam iskustva u pisanju skriptova)
a skript izgleda
    #!/bin/csh
    #-----------------------------------------------------------------------------
    # SMASH
    #
    # DOLPHIN
    #      INTEGRATION
    #
    # Copyright (c) Dolphin Integration. All rights reserved.
    # Unauthorized use, duplication or distribution is strictly prohibited by law.
    #
    #-----------------------------------------------------------------------------
    # $Author: smash $ $Date: 2004/08/10 09:51:23 $ $Revision: 1.8.4.1 $
    #-----------------------------------------------------------------------------
    # Description:

    #   SMASH environment settings
    #-----------------------------------------------------------------------------
    #
    # The only environment variables needed to run SMASH are the following:
    #
    #   path            must contain the bin directory of the SMASH installation
    #   LM_LICENSE_FILE must contain the SMASH license server (if applicable)
    #
    # In the example settings below:
    #
    #   uncomment the needed lines or add them to your environment setup
    #   replace <install_dir> with the SMASH installation directory
    #   set <hostname> and <port> with the appropriate values
    #
    # To run SMASH, type the following command:
    #
    #   smash
    #
    #-----------------------------------------------------------------------------

    if (! $?SMASH_HOME) then
        echo "ERROR: SMASH_HOME environment variable must be defined to the"
        echo "       base installation directory of SMASH."
        exit
    endif

    if (! -x ${SMASH_HOME}/bin/smash) then
        echo "ERROR: SMASH_HOME environment variable must be defined to the"
        echo "       base installation directory of SMASH."
        echo "ERROR: $SMASH_HOME does not seem to be the correct directory,"
        echo "       $SMASH_HOME/bin/smash not found in this directory."
        exit
    endif

    #
    # PATH
    #
    set path=(${SMASH_HOME}/bin $path)
    #
    # LD_LIBRARY_PATH
    #
    if ($?LD_LIBRARY_PATH) then
        setenv LD_LIBRARY_PATH ${SMASH_HOME}/lib:${LD_LIBRARY_PATH}
    else
        setenv LD_LIBRARY_PATH ${SMASH_HOME}/lib
    endif

    #
    # Set MainWin related variables
    #
    if (-d ${SMASH_HOME}/mainsoft) then
        setenv MWLOOK windows
        setenv MWWM allwm
        setenv MWHOME ${SMASH_HOME}/mainsoft/mw
        setenv MWNO_FILE_LOCKING True
        source ${MWHOME}/setmwruntime.csh
    endif

    #
    # FLEXlm license file
    #
    #if (! $?LM_LICENSE_FILE) then
    #    setenv LM_LICENSE_FILE <port>@<host>
    #else
    #    setenv LM_LICENSE_FILE <port>@<host>:${LM_LICENSE_FILE}
    #endif

    [/list:u]

    Svaka pomoc mi je dobro doshla. Unapred hvala
    Sačuvana
    Slavisha
    Gost
    « Odgovor #1 poslato: Četvrtak, 10. Novembar 2005. 15:12:04 »

    Ok, to sam razreshio. Nashao sam .sh skripti i to je odradilo radnju.
    Kada pokusham da pokrenem program dobijam sledecu poruku:

    /usr/smash/smash5402_rhl73_mw503/bin/sbin/smash_gui: error while loading shared libraries: /usr/smash/smash5402_rhl73_mw503/bin/mainsoft/mw/lib-linux_optimized/libkernel32.so: cannot restore segment prot after reloc: Permission denied

    Zaboravio sam da napomenem da koristim FC4_64. Ima li leka za ovo? Smiley pozdrav
    Sačuvana
    maddox
    Gost
    « Odgovor #2 poslato: Četvrtak, 10. Novembar 2005. 17:06:06 »

    "Permission denied"
    da li ovo pokreces kao root ili kao obican user. Ako je tako probaj kao root.
    Sačuvana
    Slavisha
    Gost
    « Odgovor #3 poslato: Četvrtak, 10. Novembar 2005. 19:40:44 »

    pokrecem kao root i nece Smiley
    Sačuvana
    kmilos
    Administrator
    Elitni član
    *****
    Van mreže Van mreže

    Poruke: 1.111


    Pogledaj profil
    « Odgovor #4 poslato: Četvrtak, 10. Novembar 2005. 21:14:16 »

    Moguće da je SELinux problem onda, pokušaj da ga isključiš privremeno...
    Sačuvana

    Stranice: [1]   Idi gore
      Štampaj  
     
    Prebaci se na:  

    ?>